How are you guys doing this sort of thing? what data do you have in ROM/RAM? what is the structure of the data in ROM? how are you handling objects generally?
The following is what I have come up with so far.
In ROM the tiles that make up the object needs to be defined:
Code: Select all
WalkLeft:
;frame1
.byte tile#, x-pos, y-pos, attr
.byte tile#, x-pos, y-pos, attr
.byte tile#, x-pos, y-pos, attr
.byte tile#, x-pos, y-pos, attr
;frame2
.byte tile#, x-pos, y-pos, attr
.byte tile#, x-pos, y-pos, attr
.byte tile#, x-pos, y-pos, attr
.byte tile#, x-pos, y-pos, attr
;frame3
.byte tile#, x-pos, y-pos, attr
.byte tile#, x-pos, y-pos, attr
.byte tile#, x-pos, y-pos, attr
.byte tile#, x-pos, y-pos, attr
WalkRight:
;frame1-3
... and so on
Is what I have described a smart or good approach. Do you have something better or smarter or easier way of doing animations, please share.