Main Page
News
History
Limitations
Graphics
Music
Levels
Gameplay
Now Browsing
Links
Download

Center
                                          db     Center offset/2 (x),Center offset/2 (y)

It is possible to change the center of a sprite's collision area, in order to move the weak point of a big Boss when more sprites are connected altogether to build up it, whereas the default center for a single sprite is:

                                          db 4, 4                        ; center offset/2

The reason for these values is: both X and Y coordinates have to be input halved, and since 1/2 it's 8,8 and the center of that is 4,4, then a 16x16 pixel sprite has a center 4,4.

See also:
Alien
Radius

Main Table