You are browsing as a guest. Sign up (or log in) to start making projects!

2h 21m 7s logged

Depth Perception (Devlog 4)

Today, I go over how I added a third dimension to my 2D game.

Idea

When running away from the blood axolotl, you may want to run inside a house or around a house. The game’s current setup doesn’t allow for this! So, by adding depth I can give the player more hiding spots, making them feel safe for longer, there for, making them play longer :hehehe: .

Execution (no, not the player, yet)

What I did was make a new component: Depth (how clever of a name). And in the collision reaction code, if two objects have different depth, than have them not collide. If one of the objects doesn’t have the Depth component, make the objects collide anyway. This makes Depth-less objects collide with everything, so I don’t need a bunch of different floor objects for each depth :yay: !
Than I also made a simple system so that the player can move depths. I’ll have to change it quite a bit in the future but it is fine for now.

Up next

Next I am going to take the parts I’ve been creating and make buildings a thing. Than I’ll make collectables and the blood axolotl :fear: , (probably collectables first).

Final thoughts

Things are going swimmingly. The project should be wrapping up in the coming weeks. The last few things I’ve coded for this project haven’t been supper hard by any means it’s just that I got school and my robotics team is doing a thing for homecoming so I’ve just been kind low on energy :/.

bye!

0
4

Comments 0

No comments yet. Be the first!