Animating Sprites....TABLE?

By Chilly Willy

Expert (108)

Chilly Willy's picture

12-10-2022, 22:30

I am still in the growing phase and would appreciate if anyone can direct me to an example of an Animation table setup for sprites in Z80 assembly language.

Here is the scenario for the MSX 1

Sprite 1 y/x/pattern/color
Sprite 2 y/x/pattern/color

This is a two pattern guy running around so I can have a two color animated dude.

Basically it would send a different pattern to each of the two sprites.

I know it sounds complicated but if there examples of various ways I might be able to adapt one of the routines.

Many many thanks

Login or register to post comments

By aoineko

Paragon (1142)

aoineko's picture

13-10-2022, 08:58

I only have example in C.

What information are you looking for? Animate a sprite is just a matter of setting a byte in VRAM at adddress SpriteAttribueTable + ID * 4 + 2 to change it's pattern.

By theNestruo

Champion (430)

theNestruo's picture

13-10-2022, 11:50

Double check my latest answer on your previous question: https://msx.org/forum/msx-talk/development/run-and-jump-routine