Log In  


Hello, this is my first time trying to make a game in Pico8 and I decided to make sort of a recreation of the tanks game from NES called Battle City. Here is the cartrigde I been working on:

Cart #tankwar-0 | 2025-08-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

So, I am having problems with the collision of the game because in the original Battle City there are half-brick tiles that don't ocuppy an 8x8 space on the grid, and every collision tutorial I saw was using FGET and MGET to do the job, but it only serves for 8x8 sprite collision. I tried to do something by verifing what sprite is collinding and if it is between 17-24(my half-wall sprites) it verifies if the next pixel is a black pixel or not. It kinda worked but now the half-walls are getting my tank stuck deppending on the place and what wall is it. Can someone please help me with this?

Was thinking if it has something to do with the way I am loading the map too, because I am just using the normal MAP to fill everything.

1


1

Cart #somahafazo-0 | 2025-08-10 | Code ▽ | Embed ▽ | No License
1


Collision detection for blocks other than 8x8 requires an additional sget() call from the sprite obtained with mget().
sget() retrieves pixel data from a 128x128px sprite sheet (pget() retrieves the screen buffer).

This cart includes fixes and simplified visual debugging code.


1

Thanks so much for the help, I really wanted to fix this issue before trying to add more things.


your game is cool



[Please log in to post a comment]