I have implemented some really bad collision that will prevent the pc from continuing through the blocks. The block manager now has a map system that allows you to easily use a grid system to cover the screen in blocks where you want them. I will probably not use these blocks in the future, although I may condense the mapping code an put it into a separate class for future aesthetic purposes like tiles for the background.
You can download the code to compile yourself like always via Dropbox at:
https://www.dropbox.com/sh/f78nortnzbance1/glmWvR9zMi
|
Some obstacles made by joined blocks using the new mapping system (see below) |
|
Colliding with the block |
|
a look at the mapping layout (click to expand images) |
|
the new collision system for the pc (1 of 2) |
|
the new collision system for the pc (2 of 2) |
No comments:
Post a Comment