Hello.
I’m new to unity, but I made games using Java + libgdx ( game development framework ).
I wrote a bomberman clone and now I want to redo it as a unity project.
Can you tell me what’s the best way to “implement” the tiled map, that I used in my game, which is very similar to this:
I used a 2-dimensional array that contains Tile-Objects ( which have a boolean passable and a boolean destroyable and a type… ). What’s the best way todo this in unity?
Also I wrote my own collision detection in java and since it is tilebased I had a very efficient way of detecting the collision. For example, when the player wants to move up, I only check the collision with the the 3 tiles that are in front of the player ( the direction, the player wants to move, so I check collision for the top left, top, top right tile, outgoing from the tile the player is currently on, when you want to move up ).
Collision in unity works fine, however I don’t exactly know how the collision is done with the 2d rigidbodys ( it’s a 2d game btw. ) and to only check with the tiles, that the player can actually collide with would be the most efficient way I think.
Thanks in advance.
Jan