Jump to content
IGNORED

Struggling to create a sprite in Batari basic


Defender02

Recommended Posts

Good afternoon,

I have recently downloaded Batari basic and Visual batari. I followed the tutorial by Tinkernut, among other tutorials. I know how to draw a background, change its color and so on, but I struggle with sprites. No matter which tutorial I follow, when I try to compile my code with sprites, it says "Syntax error". If I try to run it after that, it says "Could not locate default.bas.bin and couldn't recompile". I am really motivated to start programming Atari 2600 games, so I would really appreciate any help  :)

Kind regards

My code:

 rem Generated 06/11/2023 13:19:55 by Visual bB Version 1.0.0.554
 rem **********************************
 rem *<filename>                      *
 rem *<description>                   *
 rem *<author>                        *
 rem *<contact info>                  *
 rem *<license>                       *
 rem **********************************


 playfield:
 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 ................................
 ................................
 ................................
 ................................
 ................................
 ................................
 ................................
 ................................
 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 ................................
end

 COLUBK=$20
 COLUPF=$212

player0x=50:player0y=50
player1x=20:player1y=20
 player0:
 playerXXX:
 %00011000
 %00111100
 %01111110
 %01111110
 %01111110
 %11111111
 %01111110
 %00011000
end


 player1:
 playerXXX:
 %10011001
 %01100110
 %00111100
 %11111100
 %11001100
 %01001111
 %11101110
 %01101010
end

 

 

The error:

20231106_133607.jpg

Link to comment
Share on other sites

Also be sure to visit this page:

 

https://www.randomterrain.com/atari-2600-memories-batari-basic-vbb.html

 

 

And be sure to look at the Tinkernut World Deluxe example programs on this page:

 

https://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#ex_tinkernut_world_deluxe

  • Like 2
Link to comment
Share on other sites

On 11/6/2023 at 7:40 AM, Defender02 said:

Good afternoon,

I have recently downloaded Batari basic and Visual batari. I followed the tutorial by Tinkernut, among other tutorials. I know how to draw a background, change its color and so on, but I struggle with sprites. No matter which tutorial I follow, when I try to compile my code with sprites, it says "Syntax error". If I try to run it after that, it says "Could not locate default.bas.bin and couldn't recompile". I am really motivated to start programming Atari 2600 games, so I would really appreciate any help  :)

Kind regards

My code:

 rem Generated 06/11/2023 13:19:55 by Visual bB Version 1.0.0.554
 rem **********************************
 rem *<filename>                      *
 rem *<description>                   *
 rem *<author>                        *
 rem *<contact info>                  *
 rem *<license>                       *
 rem **********************************


 playfield:
 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 ................................
 ................................
 ................................
 ................................
 ................................
 ................................
 ................................
 ................................
 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 ................................
end

 COLUBK=$20
 COLUPF=$212

player0x=50:player0y=50
player1x=20:player1y=20
 player0:
 playerXXX:
 %00011000
 %00111100
 %01111110
 %01111110
 %01111110
 %11111111
 %01111110
 %00011000
end


 player1:
 playerXXX:
 %10011001
 %01100110
 %00111100
 %11111100
 %11001100
 %01001111
 %11101110
 %01101010
end

 

 

The error:

20231106_133607.jpg

 

Did you get it working?

Link to comment
Share on other sites

On 11/10/2023 at 7:20 AM, Random Terrain said:

 

Did you get it working?

Goodmorning! Thank you to everyone for your answers  : )

Now it works and I created a simple game where an enemy comes from the left or the right and you have to shoot him. Nothing phenomenal obviously but I'm happy that it works

20231111_134816.jpg

  • Like 2
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...