Nintendo 1504166 Programming Manual - Page 70
OBJ Rotation/Scaling Feature, OBJ Character Data Referenced with Rotation
View all Nintendo 1504166 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 70 highlights
AGB Programming Manual Rendering Functions 6.3.4 OBJ Rotation/Scaling Feature The rotation and scaling feature for OBJ is essentially the same as that for BG. OBJ Character Data Referenced with Rotation OBJ Character Data ** * Double-Size Object Field Object Field x-axis OBJ Center BeHfoorriezoRnotatal tLioinne y-axis dx θ θ dmy dy dmx dx (distance moved in x direction, same line) = ( 1 / α ) cos θ dy (distance moved in y direction, same line) = - ( 1 / β ) sin θ dmx (distance moved in x direction, next line) = ( 1 / α ) sin θ dmy (distance moved in y direction, next line) = ( 1 /β ) cos θ α: Magnification along x-axis β: Magnification along y-axis When an OBJ is displayed, the OBJ character data are referenced horizontally, beginning from the left-uppermost position. Rotation display can be achieved by adding an angle to the reference direction. The center of rotation is fixed at the center of the OBJ field. If a reference point surpasses the specified OBJ size, it becomes transparent. ©1999 - 2001 Nintendo of America Inc. 70 D.C.N. AGB-06-0001-002B4