Joel D. Park Posted May 20, 2010 Share Posted May 20, 2010 Guys, I'm working on a game in bAtariBasic. I had a bunch of space left on my cart so I decided to add some title music. I'm getting a wierd thing however with a data statement. When I add a data statement see (musicdata), it shifts my playfield over for my bonus round. If you delete the bottom line of the musicdata data it will shift back. To get to the bonus, kill the bear once, then the next level, you'll notice the 4 holes in the middle aren't in the right places. default.bas Is there something special I need to do to keep this from happening??? Thanks, Joel Quote Link to comment Share on other sites More sharing options...
Joel D. Park Posted May 20, 2010 Author Share Posted May 20, 2010 Here's the binary if that helps. flipout.bin Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted May 20, 2010 Share Posted May 20, 2010 I'm not sure what's going on in your program. Have you tried this for making music and sound effects yet: http://www.randomterrain.com/atari-2600-memories-batari-basic-vbb.html#music_and_sound_editor Quote Link to comment Share on other sites More sharing options...
RevEng Posted May 21, 2010 Share Posted May 21, 2010 I think you need to get an updated version of bB. When I play your bin, the holes are definitely in the wrong place. But I built your source from scratch without modification, and the holes are in the right place. flipout.bin Quote Link to comment Share on other sites More sharing options...
RevEng Posted May 21, 2010 Share Posted May 21, 2010 Additional thought - you're likely running into a page boundary bug. Try adding a dummy data statement with 16 or 32 zeros in front of your bonus playfield and see if the problem goes away. Quote Link to comment Share on other sites More sharing options...
SeaGtGruff Posted May 21, 2010 Share Posted May 21, 2010 When I compile the code without changing it, I get the same results as you. But when I delete the blank line between the last line of music data and the end statement, it compiles correctly. I don't think the compiler likes that blank line. This is okay: data musicData 12,20,10, 6,-1,5, 12,18,10, 0,-1,10, 12,17,10, 0,-1,10, 12,15,10, 0,-1,10 0,-1,10, 12,20,5, 0,-1,5, 12,20,5, 6,-1,5, 12,18,10, 0,-1,10, 12,17,10, 0,-1,10, 12,15,10, 0,-1,10 0,-1,10, 12,20,5, 0,-1,5, 12,20,5, 6,-1,5, 12,18,10, 0,-1,10, 12,17,10, 0,-1,10, 12,15,10, 0,-1,10 end This is not okay: data musicData 12,20,10, 6,-1,5, 12,18,10, 0,-1,10, 12,17,10, 0,-1,10, 12,15,10, 0,-1,10 0,-1,10, 12,20,5, 0,-1,5, 12,20,5, 6,-1,5, 12,18,10, 0,-1,10, 12,17,10, 0,-1,10, 12,15,10, 0,-1,10 0,-1,10, 12,20,5, 0,-1,5, 12,20,5, 6,-1,5, 12,18,10, 0,-1,10, 12,17,10, 0,-1,10, 12,15,10, 0,-1,10 end Michael 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.