So I've been messing around with simple game development for a while and just found an interesting game idea on squidi.net/three/entry.php?id=85 . I'm using SFML 2.1 with C++ and I have a tilemap in a VertexArray that displays the level. Here is what I have so far and you can see my simple tileset: LINK. I am pretty lost in terms of how to handle collisions between the submarine (which is not on a grid based movement system) and the walls. The problem is that say the sub approaches tile 2 (check the tileset image) from the bottom, if I check a collision between the sub and the whole tile the sub will stop before it even gets to the actual wall in the image. Here is an image to help explain this: LINK.
Sorry for the previous confusion and I hope this isn't as bad as before.
Any help is greatly appreciated.
Thanks,
Karel
Edit: Rewrote the question to try to make it clearer.