heinermann / JankRobot

Game Jam Memes
0 stars 0 forks source link

Scoring #36

Closed liraymond04 closed 7 months ago

liraymond04 commented 7 months ago

Created a canvas node that allows you to place a painting on it by drawing to the canvas' texture

Also added score calculation by comparing the drawn pixels to the viewport texture to the pixels of the expected painting texture

The canvas node also uses an array of colours that are counted towards score and an array of colours that are expected to be empty to make setting the painting scoring easier

Brush size is also now set in the viewport node, as the size of the brush may need to vary based on the viewport's texture resolution