A golfing game built using pixi.js and matter.js. Live link.
- Clone this repo.
- Run
npm install
in the project directory. - Run
npm run start
and then navigate tolocalhost:4000
in your preferred browser.
- Final Touches
- Maps and polish
- Test maps and bugfixes
- Styling
- First Maps
- Obsticles
- Interface and interface structure
- Map switcher and some restructuring
- Flat ball and viewport / controllable camera
- Map Maker
- Hole Logic
- Basic Golf Logic
By Joacim Johansson and Victor Stranne
_introscreen.scss:18
- Commentated, perhaps remove._pausemenmu.scss:24
- Commentated, perhaps remove.src/js/game/ball.js:41-46
as I understand it, you are getting a decimal color based on the force, then converts it into a hexa deciaml. But I don't quite get how you get different colors for row 44 and 45 as they use the exact same values.src/js/game/ball.js: 41-46:
here you usethis.PowerDisplay
a lot, but I have yet to see it implemented in the code. Where does it originate?src/js/game/ball.js: 70 - 73
Clever use of the the stored postions of the object to calicluate the balls position in relation to it. Used manual numbers myself and took way more space.src/js/game/assets/maps.json:
Did you set this up manually or did you have some 3rd-party tool?src/js/game/Game.js
- Try to have more descriptive comments, and perhaps more than just one word and avoid comments if not really needed, i.e. line 95.src/js/game/Wall.js:29
- Another comment that feels pretty useless :DAll files
- Good naming in general which helps alot, but perhaps add more comments to make it easier for someone else to navigate through the code.General
Very good structure in the project!
Well done guys! Awesome project!
Tested by the following people:
- Amanda Fager
- Gilda Eklöf
- Jakob Gustafsson
- Martin Hansson
Tested by the following muggles (non-coders):
- Christian Sundberg
- Olle Sundberg
- Victoria Idström
- Siri Lindstedt