SlidellMan Posted November 29, 2022 Author Share Posted November 29, 2022 Here's a quick update. Menu Demo 11-29-2022.zip Menu_Demo_v1.78b.a78 Menu_Demo_v1.78b.bin 2 Quote Link to comment Share on other sites More sharing options...
SlidellMan Posted December 1, 2022 Author Share Posted December 1, 2022 This isn't an update on either the menu or the shooting engine, but I decided to make some simple item graphics for the time being. 1 Quote Link to comment Share on other sites More sharing options...
SlidellMan Posted December 2, 2022 Author Share Posted December 2, 2022 Now for good news and bad news. The good news is I fixed the Canary Trap bug that I overlooked in the menu. The bad news is that now I have a new bug that is also ear-piercing. The .bin and .a78 files are in the attached .zip, along with the source code and graphics. Menu Demo 12-2-2022.zip 1 Quote Link to comment Share on other sites More sharing options...
Mord Posted December 8, 2022 Share Posted December 8, 2022 Don't have time to test it, but I'm thinking the cause of the bug is probably the using of goto to leave subs. Has the potential to nest loop after loop after loop which might end up causing memory errors. Quote Link to comment Share on other sites More sharing options...
+Atarius Maximus Posted February 26 Share Posted February 26 Hey SlidellMan, I've got a menu sample working for you that you're free to use. I looked at your code and decided to just start over from scratch and create a well commented example that uses your graphics and will hopefully be easy for you to incorporate into your existing game. Since you already shared those graphics previously in this thread I'm including them in this post too just in case someone else wants to download this and try it out as well. This sample uses your title screen, then loads a menu selection screen with four options (Skill, Lives, Level, and Start Game), and allows you to select from three different choices for each one. Up and down changes the menu entry and left/right changes the options for that menu entry. Pressing fire on Start Game will jump to a main loop and display the options you chose from the menu screen. Let me know if you have any questions about the code. I'm happy to help. menu_sample.bas menu_sample.bas.a78 graphics.zip 3 1 Quote Link to comment Share on other sites More sharing options...
SlidellMan Posted February 27 Author Share Posted February 27 @Atarius Maximus Thanks a whole lot. I just got started on implementing the needed changes. All ROM/.bin files and the source code are in the .zip file. Menu Demo 2-26-2023.zip Quote Link to comment Share on other sites More sharing options...
+Atarius Maximus Posted March 1 Share Posted March 1 On 2/26/2023 at 8:15 PM, SlidellMan said: @Atarius Maximus Thanks a whole lot. I just got started on implementing the needed changes. All ROM/.bin files and the source code are in the .zip file. Menu Demo 2-26-2023.zip 312.52 kB · 7 downloads Based on your PM I took a look at your code and I've got this all sorted out for you. The main issue is you had a return without a gosub in your titlescreen loop, I added a goto command instead for that loop. Your code for selecting a menu item when moving up was also incorrect, I fixed that. I'm attaching an updated version of your code and I put in comments everywhere I made a change. Everything works. Menu_Demo_Update.78b Menu_Demo_Update.78b.a78 1 1 Quote Link to comment Share on other sites More sharing options...
SlidellMan Posted March 2 Author Share Posted March 2 (edited) I've applied the changes that you made, @Atarius Maximus. Thank you for helping point out what I overlooked. heofonfir_boss_battlexex.xex heofonfir_bossbattle.rmt Menu Demo 3-1-2023.zip Menu_Demo_v1.78b.a78 Menu_Demo_v1.78b.bin Menu_Demo_v1.78b.list.txt Menu_Demo_v2.78b.a78 Menu_Demo_v2.78b.bin Menu_Demo_v2.78b.list.txt Oh, I almost forgot, I made a boss battle theme. Edited March 2 by SlidellMan Forgot to mention the new song. Quote Link to comment Share on other sites More sharing options...
+Atarius Maximus Posted March 2 Share Posted March 2 3 hours ago, SlidellMan said: I've applied the changes that you made, @Atarius Maximus. Thank you for helping point out what I overlooked. heofonfir_boss_battlexex.xex 4.41 kB · 1 download heofonfir_bossbattle.rmt 1.23 kB · 1 download Menu Demo 3-1-2023.zip 177.32 kB · 2 downloads Menu_Demo_v1.78b.a78 128.13 kB · 1 download Menu_Demo_v1.78b.bin 128 kB · 0 downloads Menu_Demo_v1.78b.list.txt 661.19 kB · 1 download Menu_Demo_v2.78b.a78 128.13 kB · 2 downloads Menu_Demo_v2.78b.bin 128 kB · 1 download Menu_Demo_v2.78b.list.txt 634.06 kB · 1 download Oh, I almost forgot, I made a boss battle theme. The menu still has an issue - the color doesn't change to indicate which menu item you're on, and you can't move back up the menu once you move down. You'll need to add the menu_selection_color<x> variable to the plotchar statements, and re-do the menu down code. I've got the changes needed below. Change this: plotchars 'skill:' 0 28 5 plotchars 'lives:' 0 28 6 plotchars 'time trial:' 0 28 8 plotchars 'players:' 0 28 9 plotchars 'start game' 0 28 10 ; plotchars 'expert mode' 0 60 120 ; (the debounce_down/menu_down section that's right here is fine, I removed that for this snippet) if debounce_up = 6 && menu_yposition = 8 then debounce_up = 0:menu_yposition = 9 if debounce_up = 6 && menu_yposition = 7 then debounce_up = 0:menu_yposition = 8 if debounce_up = 6 && menu_yposition = 6 then debounce_up = 0:menu_yposition = 7 if debounce_up = 6 && menu_yposition = 5 then debounce_up = 0:menu_yposition = 6 if debounce_up = 6 && menu_yposition = 5 then debounce_up = 0:menu_yposition = 5 To this: plotchars 'skill:' menu_selection_color1 28 5 plotchars 'lives:' menu_selection_color2 28 6 plotchars 'level:' menu_selection_color3 28 7 plotchars 'time trial:' menu_selection_color4 28 8 plotchars 'players:' menu_selection_color5 28 9 plotchars 'start game' menu_selection_color6 28 10 ; plotchars 'expert mode' 0 60 120 ; Again - don't change the debounce_down section that's in-between these two sections of code. It works fine. if debounce_up = 6 && menu_yposition = 10 then debounce_up = 0:menu_yposition = 9 if debounce_up = 6 && menu_yposition = 9 then debounce_up = 0:menu_yposition = 8 if debounce_up = 6 && menu_yposition = 8 then debounce_up = 0:menu_yposition = 7 if debounce_up = 6 && menu_yposition = 7 then debounce_up = 0:menu_yposition = 6 if debounce_up = 6 && menu_yposition = 6 then debounce_up = 0:menu_yposition = 5 if debounce_up = 6 && menu_yposition = 5 then debounce_up = 0:menu_yposition = 5 1 Quote Link to comment Share on other sites More sharing options...
SlidellMan Posted March 2 Author Share Posted March 2 Here's the fixed version, and all sources and binaries are in the .zip file. Menu Demo 3-2-2023.zip 2 Quote Link to comment Share on other sites More sharing options...
SlidellMan Posted March 3 Author Share Posted March 3 I thought I would combine the shooting demo with the menu. However, while this doesn't have the canary trap bug, it won't go to the menu. New_Vertical_Shooter_Rewrite7.78b.a78 New_Vertical_Shooter_Rewrite7.78b.bin New_Vertical_Shooter_Rewrite7.78b.list.txt Vertical Shooter 3-3-2023.zip 6 1 Quote Link to comment Share on other sites More sharing options...
PacManPlus Posted March 3 Share Posted March 3 Nice! I have a feeling this is going to turn out great! 2 1 Quote Link to comment Share on other sites More sharing options...
SlidellMan Posted March 3 Author Share Posted March 3 Thank you kind sir, and to further celebrate your award, a new song for this game. heofonfir_stage1.rmt heofonfir_stage1xex.xex 4 Quote Link to comment Share on other sites More sharing options...
SlidellMan Posted March 4 Author Share Posted March 4 I thought I would show you guys the second stage theme. heofonfir_stage2.rmt heofonfir_stage2xex.xex 3 Quote Link to comment Share on other sites More sharing options...
SlidellMan Posted March 5 Author Share Posted March 5 Here's the stage three theme. heofonfir_stage3.rmt heofonfir_stage3xex.xex 2 Quote Link to comment Share on other sites More sharing options...
SlidellMan Posted March 9 Author Share Posted March 9 I started to get back to work on getting the menu working with gameplay. Vertical Shooter 3-9-2023.zip New_Vertical_Shooter_Rewrite7.78b.a78 New_Vertical_Shooter_Rewrite7.78b.bin New_Vertical_Shooter_Rewrite7.78b.list.txt 4 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.