In the previous part, we have implemented a simple game template that allowes users to control a pixel on the canvas by pressing arrow keys, in this part, we are going to add two more features to make it more like a game:
- physics (gravity)
- drawing charactures with bitmaps
First let's resieze our canvas. By default, its size is 24 by 24, and we can add an optional argument to the
cls command to change its resolution.
This will change the canvas to 32 pixels in width and 32 pixels in height.
v = v' + gt