mehguy Posted August 11, 2014 Share Posted August 11, 2014 I tried writing the sprite x and y coordination, it wouldn't let me run it. playfield: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX end COLUBK = $9C COLUPF = $58 player0x=50:player0y=50 NUSIZ0 = 16 sprites player0: %00101000 %00101000 %01111100 %01111100 %01111100 %00111000 %00101000 %00010000 end loop drawscreen goto loop Quote Link to comment Share on other sites More sharing options...
Cybearg Posted August 11, 2014 Share Posted August 11, 2014 It looks like this line: player0x=50:player0y=50 Might be missing its leading space? Alternately, try including all those declarations within the loop and see if that helps. Some kernels can be finicky about not putting declarations in the drawing loop. Quote Link to comment Share on other sites More sharing options...
+Gemintronic Posted August 11, 2014 Share Posted August 11, 2014 The forum mangles code formatting but it's worth mentioning.. Always double check that the ONLY lines that have no spaces at the beginning are labels and "end" (as in, ending playfield or sprite data). Quote Link to comment Share on other sites More sharing options...
bogax Posted August 11, 2014 Share Posted August 11, 2014 not sure what your problem is this works playfield: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ ................................ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX end COLUBK = $9C COLUPF = $58 player0x=50:player0y=50 NUSIZ0 = 16 sprites player0: %00101000 %00101000 %01111100 %01111100 %01111100 %00111000 %00101000 %00010000 end loop drawscreen goto loop sprites Quote Link to comment Share on other sites More sharing options...
mehguy Posted August 11, 2014 Author Share Posted August 11, 2014 Thanks. I forgot the space before the line. Quote Link to comment Share on other sites More sharing options...
mehguy Posted August 11, 2014 Author Share Posted August 11, 2014 Also, how would I go about making sprites not only a single color. Quote Link to comment Share on other sites More sharing options...
+Gemintronic Posted August 12, 2014 Share Posted August 12, 2014 Also, how would I go about making sprites not only a single color. http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#player1colors_playercolors That website I linked to is a must. After I fire up VisualbB the VERY next thing I do is go there. 1 Quote Link to comment Share on other sites More sharing options...
mehguy Posted August 12, 2014 Author Share Posted August 12, 2014 http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#player1colors_playercolors That website I linked to is a must. After I fire up VisualbB the VERY next thing I do is go there. Ok it's either multicolored sprites or the missle... 1 Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted August 12, 2014 Share Posted August 12, 2014 Ok it's either multicolored sprites or the missile... Or you can use the DPC+ kernel and everything changes: randomterrain.com/atari-2600-memories-batari-basic-commands.html#dpcplus (Meaning you get multicolored sprites and you get to keep the missiles.) Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted August 12, 2014 Share Posted August 12, 2014 Or you can use the DPC+ kernel and everything changes: randomterrain.com/atari-2600-memories-batari-basic-commands.html#dpcplus I'm sure this is for the X value, but it's not specified so it might confuse newbies: Player Graphics (DPC+) ... Player1 only wraps because values larger than 165 cannot be supported, so to prevent crashes, DPC+ wraps automatically. It is up to the programmer to wrap player0, and the missiles and ball. 1 Quote Link to comment Share on other sites More sharing options...
mehguy Posted August 12, 2014 Author Share Posted August 12, 2014 (edited) EDIT: nevermind, i figured it out Edited August 13, 2014 by mehguy 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.