Update!


Hi!

My goal is to update the build every day, and this devlog is a great motivator! It also gives me something productive to do when Unity is creating the actual build :)


In this build we have:

Better object pooling

-knives are actually added back into the the pool after the player hits them, or if they somehow spawn off the edge, which leads into...

Objects should spawn further from the edge! 

-I found that sometimes objects would fall past the cutting board, or were generally difficult to get to without the fruit falling off

Objects should also spawn further from each other

-I debated on the most efficient way to do this, because my first thought was checking a new random position against the positions of all previous spawned objects and that didn't seem like the best idea

-what I came up with was using an OverlapSphere to check whether any objects were in the new spawn location

-if there's any objects in the way, I call the spawn function again but I want to make it do this on the next frame so that it doesn't cause any lag

-I'm still not sure if this is the best way to check for nearby objects, but I'm happy with what I came up with!

Hitting knives while powered up should feel more satisfying!

-I used AddExplosionForce so that I would have more control over where the knives go

-the faster you hit them, the further they go

-if you hit them really slowly, they comically get flung upwards which I found funny

-hitting knives no longer slows down the player

Game automatically restarts when player falls off or when the player hits a knife

-currently this is done by restarting the scene, but that can feel laggy so I want to find an alternative eventually

-also eventually I want a "death" animation where the fruit splits in half on contact with a knife

Knives spawn further up and now have a sort of targeting circle below them so that the player has time to react

Lastly, the slider tracking how close you are to powering up your fruit should be more accurate now.


And that's all for today!

My friend agreed to paint textures for the fruit which I can hopefully stitch together to make the texture repeat. I think that this would make for a really beautiful aesthetic. 

Leave a comment

Log in with itch.io to leave a comment.