Posted by: EvilNando | July 27, 2008

Collision system VERSION 2!



I’ve improved the collision system. Now it is possible to walk inside of corridors that are as wide as a single tile.

Instead of the four cuadrants approach , this time around I created 8-surrounding tiles which are checking the terrain for blocked tiles every time an actor moves around.

The benefit is that now it allows more fine movement.

Note that I still only have 4-directional movement but thats has nothing to do with the collision system, it has to do with the input manager which is only sending new keypresses to the gamestate. probably tomorrow I will change this to accept mutliple keypresses.

Heres a video showing the new collision system in action



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: