Jump to content

Photo

Compiling Error Bb


5 replies to this topic

#1 GemWare Games OFFLINE  

GemWare Games

    Star Raider

  • 51 posts
  • Location:Southern Illinois

Posted Tue Jul 4, 2017 10:59 PM

So I'm working on my first game, and when I try to compile, it doesn't work :? . The "error" is one of the color codes, but it is indented and correct, and nothing works. Please help. (Program has been removed as the problem has been solved. Thanks again to Random Terrain and bogax!)


Edited by GemWare Games, Fri Jul 7, 2017 2:20 PM.


#2 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 28,069 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Tue Jul 4, 2017 11:20 PM

It's probably choking on this stuff:

 

   COLUBK = $02/2
   COLUPF = $F0/240 & $1E/30 & $40/64

 

Why are you dividing and ANDing? Just put in a decimal or hex number for COLUBK and COLUPF without the extra stuff and you shouldn't have a problem.



#3 GemWare Games OFFLINE  

GemWare Games

    Star Raider

  • Topic Starter
  • 51 posts
  • Location:Southern Illinois

Posted Wed Jul 5, 2017 3:23 PM

Oh thanks. Much appreciated!



#4 bogax OFFLINE  

bogax

    Dragonstomper

  • 706 posts

Posted Wed Jul 5, 2017 8:21 PM

I agree with RT use constants for your color instead of those constant expressions

 

division takes a lot of time unless it's division by a power of 2

 

having said that, it compiles fine for me if I include the div mul routines 



#5 GemWare Games OFFLINE  

GemWare Games

    Star Raider

  • Topic Starter
  • 51 posts
  • Location:Southern Illinois

Posted Thu Jul 6, 2017 8:54 PM

Thanks as well! I'm just stumbling in the dark with Batari Basic, just feeling my way through things. I'm quite new to this.



#6 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 28,069 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Thu Jul 6, 2017 11:04 PM

Thanks as well! I'm just stumbling in the dark with Batari Basic, just feeling my way through things. I'm quite new to this.

 
The bB page has some example programs that you might want to play around with:
 
randomterrain.com/atari-2600-memories-batari-basic-commands.html#example_programs

 

More example programs will be added some time this year.






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users