!Munchy A clone of a classic maze game
Terry Swanborough (61) 152 posts |
Like most people at the moment I am working from home. I have been writing Anyway this was making my head hurt :-) so I thought I need a distraction as Rather than thinking up a new game I will make a clone of a classic that I started creating the maze and then started thinking about the operation of They also have to know where the centre box is and also have to be able to Operation and Clues Ghosts will randomly move around their quarter of the screen I have On level 1 the ghosts make no attempt to track you they are all just Above Level 1 Ghosts start to track this can be caused by going to Also at random intervals a ghost will be told to track you, the ghost Magenta So look out for the Magenta ghost leaving its area it is probably On lower levels only 1 ghost at a time can track you as you go to I have tested the game on:- I have tried to balance the level so that it not impossible but I tried to crunch the program using !crunchie but after crunching it failed The games uses its own internal timer so should run at the same speed on different hardware Let me know what you think and how it works for you. You can Download from :- |
David Williams (2619) 103 posts |
Ooh another game. :-) Let 2021 be the year of lots of new RISC OS games – big and small. I believe a new one from AMCOG is imminent. I’ll give !Munchy a proper play/play-testing later on today (right now I’m bogged down with my own game dev project). |
Terry Swanborough (61) 152 posts |
Yes another game this working from home is proving to be productive not just in games but in real work as well :-) Interestingly I have removed the WAIT for vsync in the program and tested the game on all four computers here I’m using the draw to a sprite and then plot the sprite to the screen. Which is using a single graphics screen bank but you would think that at some point the sprite would be drawn at the wrong time and produce a corrupted screen but no?. I wonder why? I have used the TimerMod to regulate the update speed of the graphics but still can’t believe that there is no tearing |
Terry Swanborough (61) 152 posts |
As I have had few replies I am assuming:- 1: no one downloaded Munchy I’m assuming option 2 :-) I have made Munchy Multitask it seeems to work quite well on most systems. If your interested you can download from :- Some text from the help file below:- Desktop Display Mode:- The game should adapt to any desktop display mode. MultiTasking :- Once !Munchy is started it will place an icon on the iconbar. If you press select on the Iconbar icon a window will open displaying If this window has the desktop focus a high volume of wimp polls will be used to If the desktop window focus is moved to another application the wimp polling will If the main game is being displayed when the focus is in the main window a high volume Most of the computers I have tried the game on can multitask only the Iyonix needs Iconbar Menu Options:- The main iconbar menu has the following options. Window Menu Option:- |
alban read (2898) 20 posts |
It works very well for me so far; I really enjoy the scaled window option; I think this is a really nicely done version of a classic game. |
Terry Swanborough (61) 152 posts |
Thanks for the feedback I’m glad your enjoying the game, sorry can’t help with the beers though :-) With regards to the vsync all four computer work here without using vsync even the iyonix |
Doug Webb (190) 1158 posts |
Hi Terry, Thanks for the game it runs well on my ARMX6 and provides another distraction to getting on and doing other things :-) |
Anthony Vaughan Bartram (2454) 457 posts |
Great games Terry. Nice to see RDSP in use within them. Definitely one of the best Pac-Man style games I’ve played for a long time. The ghost logic seems like a good solution (an explanation of the original Pac-Man’s ghost logic is here: Pac-Man Ghost logic) Playing both on my Pi 3+ on RISC OS Direct (Doing development kit updates and a couple of new games at the moment. Lots of late night coding)… |
Julie Stamp (8365) 474 posts |
Fab! Some suggestions for your next version… Well done on getting it run in a window. I can change between scales while the game is running, but if I select full screen it goes back to the beginning. Can it switch between fullscreen and window while carrying on the game? Or pause fullscreen and return to desktop temporarily? I really liked the intro screen with the relaxing music, but in the game the retro sound fx were different volumes, in particular is it possible to make the loud lose game sound at the same level as the others? |
Terry Swanborough (61) 152 posts |
@ Doug @Tony @Julie To be honest I am amazed I got to finish these games you definitely suffer from the 90/10 rule the last 10% takes a lot of effort I mean who needs a high score table anyway :-) |
Willard Goosey (5119) 257 posts |
munchy multitask seems to work fine on my ARMv7 Pi2, RISC OS 5.28 A feature request: support normal arrow keys and/or joystick? pls? |
Chris Hall (132) 3554 posts |
I get ‘unknown or missing variable’ at line 2990. |
Doug Webb (190) 1158 posts |
Hi Chris, A bit more indepth reporting may help Terry , like is this on start up or when does it happen, what system, what OS version etc. :-) |
Chris Hall (132) 3554 posts |
VRPC Adjust RISC OS 4.39. On start up. The BASIC is cruched so I don’t know what it is trying to do. |
Terry Swanborough (61) 152 posts |
@Chris I have just uploaded a new version of Munchy you can get it from the usual place I have made a lot of changes so keep your eyes open for errors. The main changes are :- You can press F12 at any time to exit back to the desktop even when playing the main game. When you make any kind of mode change there is a short delay before the game starts to animate see below for other stuff:- V 1.00 Initial release Added menu options in main menu for mode Game now uses the same main and score procdedures When going to full screen the desktop window is Put pauses in game before mode change or opening Added arrow keys for direction. Lowered volume of dying sound. Added Joystick control |
Willard Goosey (5119) 257 posts |
Oh! Thank you! Very nice! New version works fine on ARMv7 Pi2, with RISC OS 5.28, usbjoystick 0.20 + cheap SNES clone joypad! |
Chris Hall (132) 3554 posts |
It now says USBStick requires USBDriver. On VRPC there is no USBDriver module. |
Terry Swanborough (61) 152 posts |
Try I have removed the USB joystick interface. |
Chris Hall (132) 3554 posts |
It now says unknown variable at line 2300. |
Terry Swanborough (61) 152 posts |
I have no idea why it does that I am using it on 4 different computers here? You Could try increasing the wimpslot in the !run but Im just guessing I can’t believe there is a unknown variable as no one else has reported the problem? Its works on:- Im stumped?. |
David Pitt (3386) 1248 posts |
It now says unknown variable at line 2300. I can confirm the fault on OS4.39 RPCEmu with MunchyNJ. The BASIC is StrongBS’d so I can’t get any further. Increasing WimpSlot did not help. (It is OK on OS5.27 RPCEmu.) |
Terry Swanborough (61) 152 posts |
If you download again I have placed an uncrunched I have no problem releasing the code I was just making it more readable to the rest of the world:-) before I released it. |
Frederick Bambrough (1372) 837 posts |
Working fine on BeagleBoard -xM, ROS 5.29. |
David Pitt (3386) 1248 posts |
|
Terry Swanborough (61) 152 posts |
Thanks for identifying the problem I wonder why its different was DIM LOCAL I Can remove them it will just use a bit more memory but as It allocates about 5M I make some changes and then upload a new version of MunchyNJ as in my haste I forgot to remove the joystick in the uncrunched version and also update the toolbox resource file. Thanks again. |