I expanded on the idea of my game from the first p5.js game project. This is a story of the player being a wolf and accused of murder of one of the pack. The player must play to get through the story and reveal the real culprit.
var img; var ballx = 300; var bally = 300; var ballSize = 40; var score = 0; var gameState = "L1"; function preload(){ back1 = loadImage("https://toasttoasttoast.github.io/art74/games/bedroom.png"); money = loadImage("https://toasttoasttoast.github.io/art74/games/money.png"); back2 = loadImage("https://toasttoasttoast.github.io/art74/games/shelves.png"); jar = loadImage("https://toasttoasttoast.github.io/art74/games/jar.png"); back3 = loadImage("https://toasttoasttoast.github.io/art74/games/forest.png"); firefly = loadImage("https://toasttoasttoast.github.io/art74/games/firefly.png"); back4 = loadImage("https://toasttoasttoast.github.io/art74/games/parent.png"); sorry = loadImage("https://toasttoasttoast.github.io/art74/games/sorry.png"); back5 = loadImage("https://toasttoasttoast.github.io/art74/games/foregiven.png"); }