Hi Malban,
I found that by adding this line before "call ScaleSprite(25)", it fixes the problem:
call MoveSprite(1, 1)
The Vectrex has a problem drawing things right after resetting the pen to the origin - things get messed up the way you're seeing it. Chris Salomon mentions it in his tutorial; his solution is to introduce a delay but he mentions that if you're moving the pen anywhere, that will add a sufficient delay and effectively solve the problem.
The Vectrex BIOS resets the pen after drawing text. So if you draw your sprite immediately afterwards, it will get messed up. Adding the MoveSprite introduces sufficient delay.
It occurs to me that I should implement a "Delay" pseudo-sprite to more cleanly address this problem.
- Bob
I found that by adding this line before "call ScaleSprite(25)", it fixes the problem:
call MoveSprite(1, 1)
The Vectrex has a problem drawing things right after resetting the pen to the origin - things get messed up the way you're seeing it. Chris Salomon mentions it in his tutorial; his solution is to introduce a delay but he mentions that if you're moving the pen anywhere, that will add a sufficient delay and effectively solve the problem.
The Vectrex BIOS resets the pen after drawing text. So if you draw your sprite immediately afterwards, it will get messed up. Adding the MoveSprite introduces sufficient delay.
It occurs to me that I should implement a "Delay" pseudo-sprite to more cleanly address this problem.
- Bob