Jump to content
IGNORED

bAtariBasic DataStatement Wierdness


Joel D. Park

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...