Jump to content

Photo

Problems with compiling


3 replies to this topic

#1 MemberAtarian OFFLINE  

MemberAtarian

    Chopper Commander

  • 238 posts

Posted Tue Jan 9, 2018 2:57 PM

Hi,

 

I have created my first test code (with a cat in front of a giant cheese, you can move the cat, I would add mice later), but as I try to compile (no error messages), it creates a .bin that will load in the emulator like a supercharger game (closing bar doors) but at the end, it does nothing but clicking noise. I checked the code if there is some problems, compared it to the example files, but no problem,

 

After that, I compiled the example files (like 6_AnimateAplayfield, 12_SimpleTitlescreenDemo, etc.), but they also creates that stupid barn door and that's all. I installed the latest Batari Basic and Virtual Batari Basic as well.

 

This is the code btw.:

 

 rem batari Basic Program
 rem created 2018.01.09. 20:42:55 by Visual bB Version 1.0.0.554
 
    x=91
    y=80
    f=10
 
   COLUBK=$FE
 
main
        
    player0x=x
    player0y=y
 
    playfield:
 ...........XXXXXXXXXXXXXXXXXXXX.
 ..........XXX.XXXXX.X.X.X.X.XXX.
 ........XXX.XXX.XXXXXX.X.XXXX.X.
 ......XXXXXXXXXXXXXX.XX.XX.X.XX.
 .....XXXXX.XXX..XX..X.XX.XX.X.X.
 ....XXX.XXXXXXXXXXXX.X.XX.XX.XX.
 ...XXXXXXXXXXX..XXXXXXX.X.XXXXX.
 .XXXX.XX..XXXXXXXXXX..XXXX...XX.
 XXXXXXX.XXXX.XXX.XXXXXX.XXXXXXX.
 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
 ................................
end
 
 player0color:
 $FC
 $00
 $00
 $00
 $00
 $00
 $FC
 $FC
end
 
 if f=0 then player0:
         %00100100
         %10111101
         %01111110
         %01111110
         %11100111
         %01011010
         %00111100
         %00100100
end
 
 player0color:
 $FC
 $00
 $00
 $00
 $00
 $00
 $FC
 $FC
end
 
 if f=5 then player0:
 %01000010
 %00111100
 %11111111
 %01111110
 %11100111
 %01011010
 %00111100
 %00100100
end
 
 if f>10 then f=0
 
 drawscreen
 
   if joy0up then y=y-1
    if joy0down then y=y+1
    if joy0left then x=x-1
    if joy0right then x=x+1
 
    if joy0up then f=f+1
    if joy0down then f=f+1
    if joy0left then f=f+1
    if joy0right then f=f+1
 
 goto main


#2 xucaen OFFLINE  

xucaen

    Stargunner

  • 1,261 posts
  • Paying bills...
  • Location:Massachusetts

Posted Tue Jan 9, 2018 3:13 PM

F=10

#3 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Tue Jan 9, 2018 11:16 PM

If you don't find an answer before Monday or Tuesday I'll post more.

 

Are you really sure that you're using these:

 

atariage.com/forums/topic/123849-visual-bb-10-a-new-ide-for-batari-basic/page-28#entry3537039

 

atariage.com/forums/topic/214909-bb-with-native-64k-cart-support-11dreveng/

 

 

If you are using batari Basic with Stella, you shouldn't be seeing any Supercharger closing doors.

 

Also check out this thread:

 

atariage.com/forums/topic/181045-how-to-attach-files-and-images/



#4 Lewis2907 OFFLINE  

Lewis2907

    Moonsweeper

  • 286 posts
  • Location:Senatobia, MS

Posted Wed Jan 10, 2018 7:48 PM

MemberAtarian,

 

I cleaned up your code and added some notes in the section. I would highly recommend RT's Page: http://www.randomter...c-commands.html

 

I noticed you were trying to use player0colors, but that is a tough to do by itself per the RT's page at: http://www.randomter...l#kernelopchart

 

For the dim statements. I recommend going in alphabetical order as it makes it easier to track how many variable you have left. http://www.randomter...mmands.html#dim

 

I did change some colors and equations around, hopefully this is what you are looking for. Lastly I included 32k so you have more space and banks. 

Attached Files


Edited by Lewis2907, Wed Jan 10, 2018 7:50 PM.





0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users