A game made with p5.js. You can play the game here: https://bubble-not-so-trouble.netlify.app/!
This game is inspired by Bubble Trouble.
- Press enter to start game, or use the down key to choose level.
- Move player with right and left keys.
- Shoot arrows with space.
- To level up you have to shoot all bubbles until there is no left.
- This game has only two levels so when the second level is done you have won the game.
- When you start a new game you will se your highscore in the score table in the top left corner.
Have fun!
Emelie Petersson and Oskar Turesson
- Group 01: Henric Björkvall and Julia Karlsson
- Group 08: Oskar Sjölin Joss and Terese Thulin
- Isak Frindberg
- Flavio Melchiori
- Sonja Hahn
- Josefine Ahlstrand
By Camilla Kylmänen Sjörén and Maja Alin.
-
player.js: naming of the file. the function preload() is used to preload all files/images in a project, maybe name the file preload.js instead, in case more images or files will be added later on.
-
game.js: 133, 140, 166, 216. add spaces to make the code more readable as the file is very long
-
how-to-play button - now you can only read the rules in the readme
-
Timer.js:28 - if the time runs out the following error appears in the console: “Uncaught TypeError: gameOver is not a function. Timer.js:28”. Maybe try to declare the function before you’re calling on it?
-
game.js:132 - The high score is not stored in local storage. We think this might have to do with the storeItem() function.
-
game:js - Great comments! It was easy to follow! Maybe you could have some more comments in the other files as well.
-
game.js:1, 18 - It might have been even easier to read the code if it was split into a few more files, maybe setup() and start() could be in their own file to make it more readable.
-
variables.js - Good that you put the variables in an own file.
-
Timer.js:16 - Maybe the score should be rounded two decimals, to make it more comparable with others.
-
All in all we think it’s a well written code and we cannot find any other lines to correct 🙂
- First test
- Delete DS_Store
- Added bounce test for bubbles
- Changed file structure
- Added Arrow class
- Updated file structure and Arrow class
- Added collision for arrow and bubbles
- Added Timer class
- Updated player and background
- Added Menu class
- Added EditorConfig
- Update arrows and Count score Function
- Updated Collision check and bubble split
- Added win game
- Fix bubble bounce height and visibility
- Updated game over screen
- Updated Menu class and readme
- Added sound effects
- Small adjustments to Bubble size and collision
- Added highscore
- Cleaned up code
- Added text to menu and updated pull request log
- Fixed bug with leftover code in Timer class
- Place all variables in the constructor
- Added titles to menus and updated readme
See The MIT License.