Crafty icon indicating copy to clipboard operation
Crafty copied to clipboard

Diamond iso

Open airza opened this issue 9 years ago • 4 comments

I think the documentation might need fixing, but you can do lots of cool new things. In particular, pathfinding (there is kind of an inefficient part of it that is O(n) in the size of the grid instead of O(1) though.). It checks for both empty tiles on the lower part of the grid as well as objects with the component "Obstacle" (There might be some way this can better conform with the rest of the library, but since 2d collision and grid collision don't work the same I wasn't sure.

Also, i made the simplifiying assumption that grids would be 1 ground level and 1 upper level for the purposes of placement and pathfinding - most of the code probably works in 3D for placement but that gets into some deep issues if we have no rotation method.

I've tested it a lot on my game in development, but that game doesn't really try to move the grid or do anything different than the square tiles.

airza avatar Jul 11 '15 17:07 airza

I don't think I squashed the commits right :s

airza avatar Jul 11 '15 17:07 airza

Okay, now the documentation at least isn't lying anymore.

airza avatar Jul 11 '15 17:07 airza

I pulled the latest changes, tested against the game I have in development. Doesn't break centerAt, has documentation, and adds new functionality!

airza avatar Oct 05 '15 22:10 airza

Is there anything I need to do in order to get this merged in? Haven't had the time recently to look at the newsgroup.

airza avatar Jun 08 '16 16:06 airza