i am a PINKMAN!
Use the WASD keys to move
Press spacebar to transform
You only have three chances to transform and 5 seconds to transform each time!
Don't collide with evil frogs when you're not a PINKMAN!
--------------------------------------------
Technical Details
Lecture Details
I made a game where the player can move freely while having only one skill key. The player uses the WASD keys to move - just like most PC games. By pressing the spacebar, the player can transform into a Pinkman and destroy the enemies in the game. I was inspired by Power Bean (maybe that's the name) from Pac-Man. This time I had a very smooth development process with no new challenges.
In the game, I used an array list to manage the enemy generation points and wave system. In particular, a “for” loop was used in the WaveManager to control the generation of each wave of enemies, which is an important part of the game mechanics. Also, I used arrays and loops in the UI system to display the number of times the player's transform ability is available, allowing the player to directly see the number of transforms remaining. These functions reduced my workload and also made the game mechanics more flexible and controllable.
Design Details
Balance
I've adjusted the player's transformation duration and enemy generation time several times. At the very beginning, I originally wanted to add cooldowns between each player transformation, but I realized that doing so would cause the player to die very quickly. So I removed the cooldowns and shortened the enemy spawn intervals instead.
Iteration
In terms of iteration, I made several adjustments to the player and enemy movement system. When I first started writing the code, it was impossible to jump to the correct scene when the player died. So I kept modifying the code, added a double detection mechanism, and eventually got the scene to switch correctly.
Plus, I realized that at first the player object would rotate after colliding with enemies. So I added code to lock the rotation of the rigidbody, and finally made it so that the player object would always face to one direction.
Published | 1 day ago |
Status | Released |
Platforms | HTML5 |
Author | cyberfish_07 |
Genre | Action |
Made with | Unity |
Leave a comment
Log in with itch.io to leave a comment.