Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
Hi everyone!
I've been trying to solve this problem for a while now, but am still quite stumped by it.
I'm trying to find the coordinates for the edges of my 8x8 pixel sprite, but am unsure about how to go about doing it.
As far as I understand, the OAM coordinates of a sprite are the coordinates for the top left-hand corner of the sprite.
Let's say I have a single 8x8 sprite with OAM coordinates (8,16). If I wanted to find the coordinates of the top right hand corner of the sprite, I would have to go 8 pixels to the right, right? - but I am unsure of how to calculate the coordinate value of a single pixel on a sprite. If I were to go 1 pixel to the right, would that count as a single x-coordinate?
My eventual aim is to implement AABB collision detection.
Apologies if I'm missing anything - I'm new to ASM programming and game development in general, so I'm learning as I'm going along.
Thanks
Last edited by ExploreZip (2022-03-09 06:35:51)
Offline