Search found 1 match
- Thu Jun 20, 2019 7:55 pm
- Forum: NESdev
- Topic: Collision detection problem
- Replies: 2
- Views: 6433
Collision detection problem
I use nes.lib and wrote a simple function to detect collision. But there's something wrong that my player could stutter through the wall, here's my main code: unsigned char CheckCollision(unsigned char x, unsigned char y) { vram_adr(get_ppu_addr(NAMETABLE_A, x, y)); vram_read(&tile, 1); vram_adr...