Peace Pal is a game that guides users through a pain and anxiety management exercise.
It is my first fully functioning javascript project and was created in 4 days during the Ironhack Web Development bootcamp in 2019.
Play the game at https://keighleymcf.github.io/ironhack-game-project/
Vizualisation can help people who experience pain or anxiety to regain control over their pain. This game takes users through the steps of visualizing pain as an external object.
The game was developed using p5. It was written using Javascript, HTML, and CSS. My Trello board contains details of the individual steps of game development: https://trello.com/b/AvRlOTqF/ih-game-project
- mobile friendly version
- replace size controls with slider
- "What texture does the ball have" level: shown using sounds or animations when clicking on the ball's surface (e.g. sparks if metallic)
A feature to move the sphere with a click-and-drag function was developed using p5 but not used for the game in the end. This feature was particularly challenging because in p5, 3D objects are drawn on a different coordinate system than the canvas, so the code needs to translate between the mouse position and the 3D coordinates. The code can be seen here: https://editor.p5js.org/keighleymcf/sketches/c6qxME_f1