peteym5 Posted October 31, 2007 Share Posted October 31, 2007 (edited) I had this routine for years that can drive the player missile graphics in Turbo Basic XL. It works in single line mode and works with 5 players. 5th being the combination of 4 missiles. It loads the routine to $B000 (45056), but it can be moved, transfered to a string, or whatever for your purposes. The ML routine uses the Memtop (106, $6A) to match the PMBASE so you can put the player/missile into an area that does not interfere with your program or the background graphics. The ML routine saves the vertical position and size of the last player transfer just under the Missile memory area so it can be quickly erased when the next move is made. pmdemo.zip Edited October 31, 2007 by peteym5 Quote Link to comment Share on other sites More sharing options...
cas Posted October 31, 2007 Share Posted October 31, 2007 I had this routine for years that can drive the player missile graphics in Turbo Basic XL. It works in single line mode and works with 5 players. 5th being the combination of 4 missiles. It loads the routine to $B000 (45056), but it can be moved, transfered to a string, or whatever for your purposes. The ML routine uses the Memtop (106, $6A) to match the PMBASE so you can put the player/missile into an area that does not interfere with your program or the background graphics. The ML routine saves the vertical position and size of the last player transfer just under the Missile memory area so it can be quickly erased when the next move is made. Hi, is it permitted to place the routine in the Atari Programmers Wiki? (atariwiki.org) Quote Link to comment Share on other sites More sharing options...
peteym5 Posted October 31, 2007 Author Share Posted October 31, 2007 Yes you certainly can post the routine on the Wiki. My full name is Peter J. Meyer. The ML routine is based upon something that was posted in Compute! magazine in the early 80s'. I added support for adding a 5th player and changed the way it erases the old sprite before drawing a new one. Also only supports one line resolution that I commonly use for programs. Quote Link to comment Share on other sites More sharing options...
cas Posted October 31, 2007 Share Posted October 31, 2007 Yes you certainly can post the routine on the Wiki. My full name is Peter J. Meyer. The ML routine is based upon something that was posted in Compute! magazine in the early 80s'. I added support for adding a 5th player and changed the way it erases the old sprite before drawing a new one. Also only supports one line resolution that I commonly use for programs. Hello Peter, thanks, it can now also be found in the Wiki. Best regards Carsten Quote Link to comment Share on other sites More sharing options...
peteym5 Posted October 31, 2007 Author Share Posted October 31, 2007 Forgot to mention the subroutine call usage, most smart programmers probably can figure it out. But for novices. it is: Z= USR (PMMOVE, Player Number , Source Memory Address, Memory Size, Horizontal Position, Vertical Position ) Player Number can be 1 to 5 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.