Closed Byttemos closed 1 month ago
Summary:
Character is now stationary relative to the canvas. The speed and position variables now control a large image, which then moves in the background. Character facing and position increments/decrements have been inverted to fit the new movement scheme.
Slight code cleanup was performed by moving the keyboard input logic to a dedicated function, decluttering the draw function.
Some foliage was introduced to the game in order to verify movement scheme.
Right now the character sprite is moving around the canvas. This limits the usable space (and effectively disqualifies the game as a sidescroller). The character sprite should be fixed in the middle of the screen, and the world should move relative to it.
Requirements for issue: