Geometry RUSH!
You're just a pathetic square
You can't MOVE
But you can destroy the evil triangle that turns red by CLICKING on it
Try to get 12 points!
--------------------------------------------
Technical Details
Lecture Details
This time, I made a game that is very simple to play - clicking with the mouse is what it's all about!
But it's not simple. In the game, I used a state machine. I set three states for enemy objects: Patrol, Chase and Death.
In "Patrol", enemy objects move randomly, switch directions every 1 second, and cannot be destroyed. When the enemy object moves only 3 units away from the player object, the enemy object switches to the "Chase" state. At this point, the enemy object will charge directly at the player and will turn red in color, and can be destroyed by mouse clicks. When the enemy is clicked, the enemy object switches to "Death" and is destroyed.
Design Details
Balance
In terms of balancing, I've adjusted the enemy spawn intervals, chase speed, patrol speed, detection range, and the direction switching intervals several times. I eventually tested a version that not only matched the game's BGM, but also the reaction time of most players.
Iteration
This iteration focuses on the detection of enemy object destroy. At first, I used the “Physics2D.OverlapPoint” method to detect if the mouse clicked on an enemy object. But as I kept updating my code, I realized that this method was too complicated. I ended up using the “OnMouseDown” method to detect mouse clicks.
Published | 3 days 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.