bogax Posted December 9, 2017 Share Posted December 9, 2017 There's a goto missing on line 180 Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 9, 2017 Author Share Posted December 9, 2017 Strange it works for me, I changed the name and saved it again to make sure that its the real file. astronomerV0.57_mod.bas Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 10, 2017 Author Share Posted December 10, 2017 (edited) Managed to solve it with trial and error, there was some issue with my numbers. Anyhow, it now has paddle support! (Set left switch to A) Also the clouds will now changes their shape and multiply and move based on what level you are in. (download in main post) or play here: http://javatari.org/?ROM=http://pietrow.net/games/astronomerV0.7.bin One problem that I still have is that I can't seem to display the level at the end. In the game over loop I set score to _level (which gets raised every time a star is observed) But the score in the game over screen is always 47 for some reason. Does anybody know why? Also how can I see how much space there is left on the 4k? I want to add a title screen and a better Game over screen __Game_Over_Setup playfield: ..XXXXXX..XXXXX..XXXXXXX..XXXXXX ..X.......X...X..X..X..X..X..... ..X.XXX...XXXXX..X..X..X..XXXXXX ..X...X...X...X..X..X..X..X..... ..XXXXX...X...X..X.....X..XXXXXX ................................ ..XXXXXX.X........X.XXXX..XXXX.. ..X....X..X......X..X.....X..X.. ..X....X...X....X...XXXX..XXXX.. ..X....X....X..X....X.....XX.... ..XXXXXX.....XX.....XXXX..X.X... end __Game_Over_Loop COLUPF = $86 drawscreen score = _level if switchreset then goto __start_restart AUDV0 = 0 goto __Game_Over_Loop Edited December 10, 2017 by Coolcrab Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 10, 2017 Share Posted December 10, 2017 If you are using Visual batari Basic, it tells you every time you compile. Example: 1508 bytes of ROM space left. Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 10, 2017 Author Share Posted December 10, 2017 Ai 1343 bytes of ROM space left. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 10, 2017 Share Posted December 10, 2017 Also, about the score thing, you'll probably need to break up the score using something like this: http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#testvariables Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 10, 2017 Author Share Posted December 10, 2017 AH! this helped yes I added it into V0.71. Also added a pause button (BW switch) and a way to get past the boring intro buildup. (Set right difficulty to A and press select button. This will also make the game more difficult in general) It is quite playable in that mode if I may say so myself. I have 1100 bytes left, so that should be enough for a title screen. Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 11, 2017 Author Share Posted December 11, 2017 New version uploaded and some screenshots. I think that it is mostly done now. I'll be posting it in the main atari forum tonight. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 11, 2017 Share Posted December 11, 2017 You might also want to post an animated GIF or a YouTube video in that new thread. Bandicam (Videos)Bandicam is the best screen/emulator recording software for making YouTube videos that I have ever tried (I don't have a Mac and I don't use Linux). It really does seem to have less lag (as they claim on their main page). When I start recording video games in Stella with other programs, there is a noticeable, jarring slow down, but not with Bandicam. (When using Stella, remember to press Alt + P to enable the phosphor effect before recording.)The program makes it very clear what you are going to record. There is no irritating flashing rectangle around the area you're recording and you can easily disable the FPS overlay (under the FPS Tab), so you can record a game you're playing without any irritating distractions.Unlike some other programs, you won't have to spend time just trying to find the record button. There are no mysteries or weird, complicated problems. It just works. LICEcap (Animated GIFs)Create animated GIFs directly from an emulator such as Stella. Using 33 FPS instead of 30 FPS seems to give a smoother result without increasing the file size by a huge amount. Program recommended by walaber. When using Stella, remember to press Alt + P to enable the phosphor effect before recording. You can also use a free online tool to resize your GIFs. Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 12, 2017 Author Share Posted December 12, 2017 That really helped thanks! I posted the game in the main atari board. If anyone wants to give some feedback that would be great. I don't think that there is much more that can be done on a 4k cart apart from better sound. But i've had some very good tips before, so maybe i'm totally missing something. 2 Quote Link to comment Share on other sites More sharing options...
Keatah Posted December 12, 2017 Share Posted December 12, 2017 Why limit yourself to 4K? Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 12, 2017 Author Share Posted December 12, 2017 Easy to get on a cart mostly. And that outweighs a proper titlescreen for example, and the rest will fit within 4k. (atleast everything i can think of) Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 13, 2017 Author Share Posted December 13, 2017 (edited) Made a label. I think that its a nice High res representation of what the games is supposed to look like. Edited December 13, 2017 by Coolcrab 3 Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 14, 2017 Author Share Posted December 14, 2017 Whoo, the game got a review on Retrogaming magazine. http://retrogamingmagazine.com/2017/12/13/view-heavenly-bodies-on-atari-2600-with-astronomer/ 2 Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 17, 2017 Author Share Posted December 17, 2017 I've added mode setting in the menu,more sounds and a high score option. But there seems to be some kind of bug with the score. As it is set to 5 when pressing select (changing game mode) and I am not sure why. Also sometimes a star manages to go up above the screen, while this should be prevented by if _star_x < 25 && _star_y > 1 then _star_y = _star_y - 2 : goto skip_move if _star_x < 50 && _star_y > 1 then _star_y = _star_y - 1 : goto skip_move If you guys could take a look, that would be great Apart from that I'm running out of variables to do much more, are there any more that I can use other than a-z? Otherwise I'll have to check what I can resuse where. After this is done, I think that I have Incorporated all feedback so unless more will come (Especially longplays would be great as I don't know if the difficulty increace is fair) I think that it's mostly done. astronomerV0.8.bas Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 17, 2017 Share Posted December 17, 2017 I'm going to see if I can squeeze out any variables and see what I can do about the other things. Quote Link to comment Share on other sites More sharing options...
bogax Posted December 17, 2017 Share Posted December 17, 2017 (edited) I don't think you need seperate variables for the sprite positions I don't think any of the variables used by the line drawing needs to be persistent If the astronomer doesn't move then those coordinates could be constants they currently get set from constants, the constants could be moved into the code and the temp variables used for something else I expect all that junk using p to fake paddles could be cleaned up or removed Only three bits of f are used by the line drawing you could use the rest for state (it would need some code to seperate them when needed) You could maybe save something by taking your star/object velocities from a table indexed by some master clock you could also solve your stars going off screen that way (but it would need a variable so you could do fractional y velocities) It would be simpler and more straight forward, and arbitrary (you could add retrograde motion planets, or comets or something) but it might need more ROM (but maybe not much, you'd be replacing some code) Edited December 17, 2017 by bogax Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 17, 2017 Author Share Posted December 17, 2017 I'm going to see if I can squeeze out any variables and see what I can do about the other things. Thanks! I don't think you need seperate variables for the sprite positions This would free up 6, so that would help. You mean just using player0x, etc instead of _star_x right? I don't think any of the variables used by the line drawing needs to be persistent Yea you can use it for throwaway values. I used g in that way for example. But you can't store values in it right? If the astronomer doesn't move then those coordinates could be constants they currently get set from constants, the constants could be moved into the code and the temp variables used for something else Do you mean x1 and x2? They can't be constants right? It has to overwrite them when moving. I expect all that junk using p to fake paddles could be cleaned up or removed I like having both paddle and joypad compatibility, so I'll probably leave it in. Only three bits of f are used by the line drawing you could use the rest for state (it would need some code to seperate them when needed) That could work. You could maybe save something by taking your star/object velocities from a table indexed by some master clock you could also solve your stars going off screen that way (but it would need a variable so you could do fractional y velocities) It would be simpler and more straight forward, and arbitrary (you could add retrograde motion planets, or comets or something) but it might need more ROM (but maybe not much, you'd be replacing some code) How would you do this? I don't really understand how that would work with tables. (Although I haven't done much with it yet) I did want to put some meteorites in, and that should work by just freeing the movement vars. But what you describe sounds very useful. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 17, 2017 Share Posted December 17, 2017 I finally found the place in your program that is causing a verbose error message for me and I don't know why you aren't getting the same error. Here it is: if _slowdown - _level then . . . Is that supposed to be an equals sign? Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 18, 2017 Author Share Posted December 18, 2017 (edited) I finally found the place in your program that is causing a verbose error message for me and I don't know why you aren't getting the same error. Here it is: if _slowdown - _level then . . . Is that supposed to be an equals sign? Strange that didn't give me an error. The idea there was that the cloud will move slightly faster each level. Instead of every 30frames it would move every 30-level frames. But this gets very hard very quickly so maybe it should be removed (and put back into the if _slowdown check 1-2 lines below.) Making it progressively harder is difficult all together. Is there some general rule for how to speed things up properly? But odd that it doesn't compile for you. Ww should have the same bB now. Edited December 18, 2017 by Coolcrab Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 18, 2017 Share Posted December 18, 2017 I made a new subsection about it on the bB page: randomterrain.com/atari-2600-memories-batari-basic-commands.html#cf_ve_minus_equal_if Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 18, 2017 Author Share Posted December 18, 2017 It's odd that it accepts it though. But this is good to get rid of yea. Also dId you manage to find where the score=5 came from by any chance? I still can't find that one. Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted December 18, 2017 Share Posted December 18, 2017 It's odd that it accepts it though. But this is good to get rid of yea. Also dId you manage to find where the score=5 came from by any chance? I still can't find that one. I'll get back to work on it later tonight or possibly in the morning. I have to do some yard work while it's warmer outside. Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted December 18, 2017 Share Posted December 18, 2017 In C if your code is this: if (slowdown - level) { // do something } Then do something would occur if the results of slowdown - level was non-zero. As such, in C using - is the same as using !=.bB might work the same, though I think bB uses <> instead of != 1 Quote Link to comment Share on other sites More sharing options...
Coolcrab Posted December 18, 2017 Author Share Posted December 18, 2017 In C if your code is this: if (slowdown - level) { // do something } Then do something would occur if the results of slowdown - level was non-zero. As such, in C using - is the same as using !=. bB might work the same, though I think bB uses <> instead of != That's what I was going for. "If slowdown - level then " should be true shorter than "if slowdown then" if you are calling "slowdown=slowdown-1" every frame. But there are better ways of doing this now that I think about it. 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.