p5 project assignment 7#

Today I added some x and y variables that makes the character move 4 different ways (up, down, left, and right).

Assignment #8

During this week, I turned my Piskel sprites into gifs and added them to my p5 game, and added move and display functions to them. Also organized the code so it’s easier to understand.

Link to my code

Assignment #8

In this game, the player moves left and right and has to collect light stones to accumulate points. Both the player and the stones are animated using GIFs.

My Code

Assignment 8



My new game features a player character that moves left or right with arrow keys, showing different animations for idle and moving states. Fishes fall from the top of the screen at random speeds and reset when they reach the bottom. Both the player and fish are animated with GIFs.

https://editor.p5js.org/AviIzrael/sketches/c4NoP6RIv