Changes

Jump to: navigation, search

Talk:R-Type

943 bytes added, 10:43, 21 November 2009
/* Objets/Sprites subsytem */ new section
[[User:Fano|Fano]] 13:08, 20 November 2009 (UTC)
 
== Objets/Sprites subsytem ==
 
The routines used to put sprites/objects to the rendering system (#8D08,#8D70,#8DDE,#8E34) take the following parameters :
*HL sprite graphics address
*D,E sprite dimension in char units (width,height)
*B,C sprite position in char units (y,x)
 
Sprite graphics are composed of theses structures:
*1 byte : attribute (afaik only used for color after AND 3)
*8 bytes : graphics , only presents if attribute <> #36
 
there are 2 routines to solve sprite dimensions and adress from a sprite number in A : #8E97 for basic sprites (héro,modules,weapons,logo,etc...) and #8E90 for levels sprites.Theses routines return pixels address in HL and dimensions in char units in D,E.
 
Sprites tables are composed of theses structures :
*BYTE width
*BYTE height
*WORD pixels address
 
The basic sprites table if located at #BC67 and level sprites adress can be found at (#C4BA)
 
[[User:Fano|Fano]] 10:43, 21 November 2009 (UTC)
115
edits