14:34 - 22/11
I've implemented a health kit power-up!
By making a child object from the obstacle class, I had a little tinker with the code to reverse the effect (and making it green)
Though, this isn't ideal as it didn't really act like it should. It would pass through the player and increment the shields in the same rate as taking damage from the other cubes. So, instead I changed it so when it collides with the avatar it would reset back to a random point (appearing like you've obtained the kit) and add 10+ to the shields.
I've had a little play around with the HTML overlays so that they change colour gradually depending on the situation. Currently the "GAME OVER" turns from default to red and the "Shield HUD" would glow green and back to default after a delay from obtaining the health kit.
THINGS TO DO:
- I would like to include another power-up or some type of special obstacle (slow-mo or speed up)
- Include some background audio & sound effects (when damaged etc)
- Include some type of particle effects for snow
Simple 3D Game
Progress journal for a simple exploration using THREE.js for a University assignment.
More posts
- 23:58 - 05/12Dec 06, 2018
- 17:03 - 22/11Nov 22, 2018
- 15:58 - 13/11Nov 13, 2018
- 22:26 -12/11Nov 12, 2018
- 17:43 - 12/11Nov 12, 2018