Hour 10 - Let's Get Seedy
Today I added seeds to the world of Plantasia! I want to avoid having user interface elements on the screen as much as possible, and instead let the player get what they need by playing around with the world iteslf. To that end, the "seed bank" where you get your seeds isn't a scrolling list in a menu but rather the underside of your island! You just flip the island, pick the seed you want, and flip back to plant it.
Eventually, when there are different plants in the game, choosing seeds will make more sense. For now I'm just randomly generating seed colours and applying that to my one plant model. I think I'll keep colour customisation in the final game, but I might tweak how they're selected. I'm also thinking I'll eventually make the seeds tiny, simplified versions of the plants themselves so it'll be clearer what you're picking.
Some Technical Notes
I also did some refactoring today and replaced all my custom raycast + picking logic with Unity's built-in pointer handling events., such as IDragHandler and IPointerDownHandler. My PlayerController class was starting to get a bit bloated and had a lot of logic that should have belonged to individual objects (such as the island, seeds, etc.)
By implementing these interfaces (which I'm literally using in another project right now, so not sure why I didn't think of them before!) I actually managed to get rid of the PlayerController completely. Not only is the code cleaner, but now game logic is more sensibly encapsulated and should be a lot more robust and extensible going forward.
Files
Get Plantasia
Plantasia
Cultivate your own plant-covered island paradise!
Status | Released |
Author | Karn Bianco |
More posts
- Hour 240 - Plantasia Launches!May 21, 2018
- Hour 180 - Introducing New PlantsMay 03, 2018
- Hour 172 - What's That Sound?Apr 28, 2018
- Hour 160 - Preparing to go PublicApr 24, 2018
- Hour 94 - Savvy with SystemsApr 01, 2018
- Hour 78 - Expanding UniverseMar 11, 2018
- Hour 62 - Harvesting SeedsMar 08, 2018
- Hour 55 - Make It RainMar 06, 2018
- Hour 48 - Androids and SeedsMar 04, 2018
- Hour 38 - Warp Speed!Feb 24, 2018
Leave a comment
Log in with itch.io to leave a comment.