The game controls are very simple; A to move left, D to move right, and W to jump. I guess you could say it's more WAD than WASD because the "S" key is never actually used. Hmm.
Above, you can see the code that we used to call the sprite animations according to the player's movement at that point in time. The frames are named according to the spritesheet provided below:
The game controls are very simple; A to move left, D to move right, and W to jump. I guess you could say it's more WAD than WASD because the "S" key is never actually used. Hmm.
C:\Users\katel\OneDrive\kvscode\new blog\linkblog\images\wasd.png
Above, you can see how we used event listeners to implement the WASD movement.
Above, you can see the code that we used to call the sprite animations according to the player's movement at that point in time. The frames are named according to the spritesheet provided below:
C:\Users\katel\OneDrive\kvscode\new blog\linkblog\images\linksprites.png