#1 Movement, Object Collision & Gravity Fields


As the title suggests, this week we implemented a movement system. The game will be top-down style so you can move around in eight directions: up, down, left, right and any combination of those.


Now you can interact with objects! Players now have collision and can move other objects around.


Since our game wont be physics based, we found a way to stop objects from spinning around when hit at an angle (as our collision boxes are rectangles).

This is what we are referring to

As you can tell by the images above, these objects that you can move around have a certain "drag" (or friction). This was done in order to get the "pushing" motion right. This was also made with another feature in mind, which we'll be talking about now:

Gravity Fields

They were showcased in our last devlog, but now they behave with objects as they should:

Because our objects have friction, they now go directly to the center of a gravity field and stay there.


As always, we included a demo so you can test around how the movement feels overall, and maybe leave a comment if you desire.

DEMO INPUTS:

WASD (move around)

ESC (pause the game)

Next week, we will be showcasing (hopefully) the portal mechanic.

Portals will be inside a Gravity Field and they will transfer any object that comes in to the other portal's end.


So stay tuned for our next update, see you around :D

Files

Build_1_MovementCollisionTest.exe 36 MB
Sep 03, 2022

Get what lies beyond the EVENT HORIZON?

Leave a comment

Log in with itch.io to leave a comment.