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

2h 10m 57s logged

Lights, Camera, Action(?) (Devlog 5)

I made a house in the game! + I made the camera fallow the player! Oh yeah, I also changed the depth system a little bit! (All very thrilling)

Our House

I took the ramps stairs and physics AABB and put them together to make a house. It might look a little questionable at the moment, but it will (probably) look better when I add sprites and texture stuff.

In the Middle of Our Camera

I also updated the camera to follow the player. It’s a very small system but it works well :cat-thumbsup: .

More Depth Perception

I updated the depth system so that objects can fit in a specific range of depths instead of the old “all or one” depth style. So, now the depth component is an enumeration with Single, Range, and All states. This is useful for cases like when I want the base floor of a house to persist when going up stairs to the next floor or when going around a stair case (see the video).
Another exiting thing is that I made a macro for creating Depth components. It works like this: depth!() -> Depth::All, depth!(1) -> Depth::Single(1), depth!(1, 3) -> Depth::Range(1, 3). It’s simple, but it’s the first time I have ever made a macro :yay: !

The Here and Now

That’s it for now, next I will be working on a collectables system. I wonder, because it shouldn’t be very complex, if I could could post two devlogs in one day…

Bye for now!

0
6

Comments 0

No comments yet. Be the first!