More stuff...
Positional walkable forest.
I have point and click functionality, can use XY cords to generate a position based PR# and fill the canvas with trees, move around by using animation frame to go to the next point clicked by the user. I get a screen/canvas XY coord from the mouse click and fill the canvas with a grid of trees based on global XY, moving the center of the canvas relative to where my peep is currently walking...
So, animation empties and fills a new canvas every intersection, there is a function to find trees inside the canvas and draw them, then my prep oval, and a function to move the global center of the canvas., in reverse order!
- Animation frame
- Update global coords
- Fill grid of trees
- Destination point
Rewrite a placeholder. Get screen XY of new destination clicked in the canvas and convert to global destination coords. Move canvas center and fill tree grid then draw trees and peep.
No comments:
Post a Comment