Defender02 Posted November 6 Share Posted November 6 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: Quote Link to comment Share on other sites More sharing options...
KevKelley Posted November 6 Share Posted November 6 Get rid of the playerXXX: It should be: player0: %00011000 %00111100 %01111110 %01111110 %01111110 %11111111 %01111110 %00011000 end 1 Quote Link to comment Share on other sites More sharing options...
KevKelley Posted November 6 Share Posted November 6 Same for the player1. I assume the use of playerXXX was just to show an example of what to use without specifying player number. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted November 6 Share Posted November 6 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 2 Quote Link to comment Share on other sites More sharing options...
rsiddall Posted November 6 Share Posted November 6 I believe COLUPF=$212 is wrong, too. Try COLUPF=$21 You might use the attached and compare your code. demo.bas 1 Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted November 10 Share Posted November 10 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: Did you get it working? Quote Link to comment Share on other sites More sharing options...
Defender02 Posted November 11 Author Share Posted November 11 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 2 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.