+atari2600land Posted May 28, 2019 Share Posted May 28, 2019 So I got out my 7800 a few days ago, and I've been at this all night trying to make this. Five hours I've been working on this, and I have a title screen done. So here is the first attempt for a title screen for GoSub for the Atari 7800. It's using Atari 7800 BASIC (Like I could do something like this for an advanced machine in assembly.) gosub.bas.bin 7 Quote Link to comment Share on other sites More sharing options...
gambler172 Posted May 28, 2019 Share Posted May 28, 2019 Hi Chris glad to see you here.Now we need some levels. greetings Walter Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 28, 2019 Author Share Posted May 28, 2019 How do I check to see if my sub hit the coral? Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 28, 2019 Author Share Posted May 28, 2019 This is what I have so far. It seems to work for checking up and down, but not so well for left and right. Someone please help me! gosub2.zip Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 29, 2019 Author Share Posted May 29, 2019 I think I have it figured out. Let me know if I don't. gosub3.zip Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 29, 2019 Author Share Posted May 29, 2019 Made stuff smaller so I should have more maze ideas. gosub4.zip Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 29, 2019 Author Share Posted May 29, 2019 Added octopus, missiles, treasure, sound effects. gosub5.zip 2 Quote Link to comment Share on other sites More sharing options...
gambler172 Posted May 29, 2019 Share Posted May 29, 2019 Hi Chris will check tomorrow greetings Walter Quote Link to comment Share on other sites More sharing options...
gambler172 Posted May 29, 2019 Share Posted May 29, 2019 Hi Chris this first level works very well.Keep up the great work. greetings Walter Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 30, 2019 Author Share Posted May 30, 2019 Found and fixed a few bugs. Added a new level and a new title screen. gosub7.zip 2 Quote Link to comment Share on other sites More sharing options...
TrekMD Posted May 30, 2019 Share Posted May 30, 2019 Awesome! Just downloaded the latest binary to try out! Quote Link to comment Share on other sites More sharing options...
gambler172 Posted May 30, 2019 Share Posted May 30, 2019 Hi Chris plays very well.....maybe use another colour for the sub? How about GREY or YELLOW ? Just a suggestion....great to see Gosub ported for the 7800. Lmk...if you need a level designer Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 30, 2019 Author Share Posted May 30, 2019 I think a yellow sub is out of the question because of the Beatles. Anyway, I simplified the code a lot because I discovered the 'memcpy' function. Because of this, the game is now 128k with RAM though. I also changed the coral colors to two shades of green. gosub9.zip Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 30, 2019 Author Share Posted May 30, 2019 begging for help time again. Say I have this in the last bank: if levelnumber=1 then memcpy whichmap screen1map 400 : treasurex=128 : treasurey=30 : xpos=24 : ypos=116 : keyy=200 : keygot{0}=1 if levelnumber=2 then memcpy whichmap screen2map 400 : treasurex=24 : treasurey=45 : xpos=24 : ypos=126 : keyx=134 : keyy=78 : keygot{0}=0 if levelnumber=3 then memcpy whichmap screen3map 400 : treasurex=44 : treasurey=35 : xpos=20 : ypos=126 : keyx=60 : keyy=100 : keygot{0}=0 if levelnumber=4 then memcpy whichmap screen4map 400 : treasurex=77 : treasurey=77 : xpos=20 : ypos=126 : keyy=200 : keygot{0}=1 plotmap whichmap 1 0 0 20 20 And screen1-4maps are in bank 2. How would I get the program to identify the bank and then display it? Quote Link to comment Share on other sites More sharing options...
RevEng Posted May 31, 2019 Share Posted May 31, 2019 You can call loadrombank to bank-switch to bank 2, just prior to your code running. The last bank will still be in place (as it always is) and bank 2 will be active. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 31, 2019 Author Share Posted May 31, 2019 Tried it and it didn't work. Quote Link to comment Share on other sites More sharing options...
RevEng Posted May 31, 2019 Share Posted May 31, 2019 Before - easiest to stick it prior to your if...then statements. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 31, 2019 Author Share Posted May 31, 2019 loadrombank bank2 if levelnumber=4 then memcpy whichmap screen4map 400 : treasurex=20 : treasurey=136 : keyx=67 : keyy=57 : xpos=20 : ypos=116 : keygot{0}=0 This is what I got: Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 31, 2019 Author Share Posted May 31, 2019 Now it crashes. gosub.bas Quote Link to comment Share on other sites More sharing options...
RevEng Posted May 31, 2019 Share Posted May 31, 2019 All of your graphics are included in bank 3, which was switched away to activate the data in bank 2. Add a "loadrombank bank3" after the if...then clauses. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 31, 2019 Author Share Posted May 31, 2019 Nothing but a blue screen after the title screen. Quote Link to comment Share on other sites More sharing options...
RevEng Posted May 31, 2019 Share Posted May 31, 2019 Post a zip with the bas and images, and I can take a look. It's easier to debug if I can replicate the issue. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 31, 2019 Author Share Posted May 31, 2019 Here. gosub9a.zip Quote Link to comment Share on other sites More sharing options...
RevEng Posted May 31, 2019 Share Posted May 31, 2019 The game isn't crashing - I can see it run in the MAME debugger, and if you hit the pause button it turns the screen grey as expected. The reason your graphics are "blanked" is because you've imported your graphics into bank 3, but your main game loop with drawscreen is running out of bank 2. You either need to keep your graphics in the same bank as that drawscreen loop, or you need to import the graphics into bank 8 where they can be permanently seen from any bank. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 31, 2019 Author Share Posted May 31, 2019 OK, I got it working again. gosub11.zip 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.