Grevle Posted October 11, 2014 Share Posted October 11, 2014 I have learned some assembler and can put players on screen in the vbi with assembler. Is it possible in the vbi to have lets say player 1 appear to be at two different positions at one time ? As a example using player 1 appear at the left side and the put it at the right side of the screen appearing as another object, all this happening inside the vertical blank intertupt. ? Thus looking like 2 different objects ? is it a name for it ? "sprite multiplexing" ? Quote Link to comment Share on other sites More sharing options...
snicklin Posted October 11, 2014 Share Posted October 11, 2014 You're sort of on the right lines. Yes, you can have sprite multiplexing for extra sprites. However, you would use DLI's (display list interrupts) and not vertical blank interrupts. If you use the VBIs, you would have one player being shown in one frame and one in the next, therefore you would have flickering as it alternated position per frame. However, if you use DLI's (when the electron beam hits the right of the screen), you can then shift the position of the player. If you wanted 1 player to be on the left and right of the screen, you'd have to time the DLI to take place half way through the raster line being displayed. If you wanted 1 player to be in two different vertical positions, you could use a normal DLI (this is the more normal and less complex way of doing it). If you do a search through AA, you should find some examples of people doing this in their code. Quote Link to comment Share on other sites More sharing options...
jacobus Posted October 12, 2014 Share Posted October 12, 2014 I've added an example of this (using Quick not Assembler) to http://atariage.com/forums/topic/230240-quick-development/?p=3090406 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.