Day 3 - Unity Coroutines, SCREEN SHAKE! And regaining my humanity.
Today was a short session of 3 hours.
Once I got the shake working, I was so happy that I rocked out to some heavy tunes while running the screenshake script. Good times.
In the 3 hours, I added an unsophisticated camera shake to our humble camera as well as a sprite with keyboard controls for navigating the game. Everything except moving the player.
To move the player please use the arrow keys or W,S,A,D, or your controller D-Pad. If there's bugs let me know in the comments.
3 Hours.
Thank goodness. I am beginning to plan features accordingly (I simply multiply my expectation by 2!). Now I can get some rest during the night and regain my humanity after a few days of being a vampire hermit. Luckily I'm also a vegetarian, so nobody got hurt.
How the Camera Shake works:
It shakes by a random amount in a random direction each frame for any duration you give it.
To do this I had to disable the tracking for the camera - the follow script simply binds to the players transform - so to shake we had to release the camera from the tyrannical grip of the follow script for the duration.
We utilize a coroutine for the part of the code that causes the shake to happen. This means it will run once every frame until the duration is met and we exit our coroutine. Handy!
While the methods to achieve this were very simple, the resulting effect is "good enough" to merit keeping in our prototype, with a little tweaking.
This prototype is Quick and Dirty, I have to keep reminding myself about that so I don't go needlessly adding complicated details.
Now we can add it for every single action in the game, just to make you feel like you are a mushroom entity that moves like an animal and experiences time much differently than an animal.
In a way, our game helps to translate the fungi super-conciousness experience into something a human can perceive - all with computers and without mushrooms!
Yet, in a more accurate way, it doesn't.
I built a version now for Windows, Mac and Linux, so our lovely team can test it on all our awkward devices.
If you are interested in following along development, you can catch our Dev Logs here for now, but they might change in the future. We'll let you know in a post anyway.
You can view the livestream of the making of this game here: https://twitch.tv/mindcauldrongames
Feel free to drop in for a chat during the stream, we're laid back folks!
You can also follow me at https://twitter.com/mindcauldron
Thanks for your interest folks! Stay safe.
Files
Fungi Garden
You are a mycelium network super-conciousness helping an old tree stay alive.
Status | Prototype |
Author | Darren Kearney |
Genre | Adventure, Puzzle |
Tags | 2D, Hand-drawn, Indie, Prototype, Retro |
More posts
- Day 5 - New Artwork, TileMaps and The Hidden Life of Trees (part 1) - What a tr...Apr 26, 2020
- Day 4 - Audio! Hear the sound of mushrooms growing at 44kHz!*Apr 09, 2020
- Day 2 - Movement, Pixels, Camera, and becoming a Vampire.Apr 07, 2020
- Day 1Apr 06, 2020
Leave a comment
Log in with itch.io to leave a comment.