[Leapy] Sample GameOver screen and changes to landing on lilypads
I implemented a gameover screen when you don't land on a lilypad and i also made some changes to the detection of the lilypads because the last idea was not that good.
Regarding the landing, now instead of checking triggers, i do a OverlapCircle (raycast) every time the frog lands to check if there is a lilypad collision.
This are the changes on the scripts:
Now the frogs updates it's status to check if it's in a safe position and to update the parent object situation.
If the frog is jumping it should remove it's last parent once, so i have a 'shouldSetParent' in dragAndShoot that is set to true twice. One when the jump starts and one when the jump ends, because it may land on a lilypad and should set it's parent.
Here is how the 'shouldSetParent' changes in dragAndShoot.
I don't love how the scripts ended because there might be some mixed logics and responsabilities here. I'll work on this again in the future for a better solution. Feel free to share what do you think about this.
I have a GameManager object/scripts that deals with the end of the game.
And i added a canvas with a blackground and a 'GameOver' text that it's enabled when the frog is not a in safe spot.
This is the result:
Get Leapy
Leapy
More posts
- [Leapy] Final version is live.Jul 29, 2022
- [Leapy] New graphics!Jul 27, 2022
- [Leapy] First playable version!Jul 25, 2022
- [Leapy] All the different lilypads so farJul 23, 2022
- [Leapy] Lilypad spawn system and changes in deleting off-screen lilypadsJul 22, 2022
- [Leapy] Deleting lilypads off-cameraJul 02, 2022
- [Leapy] Landing on lilypadsJun 19, 2022
- [Leapy] Lilypad object and first movementJun 17, 2022
- [Leapy] Repetitive backgroundJun 09, 2022
Leave a comment
Log in with itch.io to leave a comment.