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

1h 49m 26s logged

Playable Player (Devlog 2)

I added a simple player system!

Playable Person the Player Plays as

I set up a unit struct called Player that is used to make the object that all player systems will use as the player. Than I crated a system to query for the velocity of the player and change it based on pressed keys.
Not supper complex, but that’s nice some times

The AABB system is my irl blood axolotl 😭

The AABB system strikes back and stopped working when ever it felt like it. Here is the code with the error:

if self.center().x < other.center().x{
     out *= -1.0;
}
if self.center().y < other.center().y{
     out *= -1.0;
}

the fix is to add .x and .y to the two use of out respectively. It took too long to figure that out :noooo: .

Stay tuned

Up next, I am going to add buildings 🏙️, which I think is hype.

I’ll be back.

0
7

Comments 0

No comments yet. Be the first!