!Stargate new game for RISC OS
Pages: 1 2
|
Just in time for Christmas ! Download Stargate for RISC OS take your frustration out on invading Aliens from another dimension they are coming through stargate portals its your job to eradicate as many as possible. The game needs AMplayer for the music I have included a zip file containing the audio modules if needed. Stargate is a new game I have been writing in BASIC just to see how The program makes great (not so great) use of global variables mainly to keep the speed up. I did some timing on PROC statements and there is an overhead to using them , also passing variables can take time, so this is not a demonstration of how to write structured programs :-) The program is crunched but I have included the source so anyone can have a play. You can define your own levels look for PROCSet_Level Ive been playing it for a while so cannot tell how difficult it is?. Hitting the centre of the gates is meant to be hard as this increases your shield energy. I timed a single screen on the Titanium and it took somewhere between 2mS and 9ms depending on screen contents so the worst case is :- a 50Hz screen time is :- The program will sample the screen refresh rate 5 seconds into the intro screen this gives it time to stablise, it will then use this value to try an adjust the game speed for different screen refresh speeds?. Let me know what you think? Also what machines it runs on? It can be quite hypnotic to watch the intro screen with just the music playing :-) You can download Stargate from :- |
|
Wow that’s fun! and crazed!! |
|
Plays well on my ARMX6. Thanks for the free game and the explanation about it. Good to see RDSP being used as well. |
|
Thanks for the replies It will be interesting to see how well it works on different machines. |
|
Nice job Terry! Downloaded and will fire it up on all my RISC OS 5 boards! :) |
|
Good job! The game freezes slightly on my Pi 3 when the music track changes, but other than that runs smooth. |
|
ARMX6 no problems surprisingly “in your face” with a large screen and amplifier for the music. |
|
@Andreas I noticed when I tried it on a Pi that the music caused a slight freeze. I copied the game to RAM disc and had no problems. @John the music can be quite addictive. |
|
Hi Terry ARMBook fails to load with message: `Screen mode not available at line number 19540` Most likely due to the ARMBook having only two screen modes availabe as in 1920 × 1080 or 1366 × 768. Hope that helps with testing. |
|
@Doug Thats to be expected at the moment the games calls Everything helps with testing :-) |
|
@Doug If your feeling brave look inside the !StarGate Directory and load the crunched file into an editor. Line No. 19540 change Q4%=640:R4%=480 I just tried 1360 & 768 as thats the monitor def I have here and it works to some extent |
|
Works well on Raspberry Pi 1B+. From above statements on mode setting, I am guessing it is not even worth trying on Archimedes A3020 level. |
|
I did try it on the Iyonix and it plays but the games Your right its not worth trying A3020 levels. |
|
Surprising. Though the reason I said the no A3020 level systems, is that they only use the numbered Screen modes. I would have expected Iyonix to be a bit closer to RPi 1B in performance. |
|
Finally decided to look inside the app-dir (wondering why it is most of 25MB in size). I think I see your performance issue, it is the same as the size issue. MP3s are not good for performance, never have been. |
|
The original files were in wav format and they were I was using !PlayIt to play back the wav files but it did not work as well in conjuction with the RDSP sound effects. So unless you have a better idea MP3 seems the way to go?. |
|
For game music there is a reason that tracker mod is used almost universally. Not that I mind in this case (other thna the lost disk space). Though normally you want a long period of music in very little space, and you want it to play with a minimum of cycles taken from the game, so either a mod, or other Tracker type, or something custom that is space effecient and cycle effecient (I have even seen used the standard voice gens with binary format music to save space and CPU cycles). Though overall I like the game. |
|
Well the source code is in the directory, so if your feeling creative you can always add your own music or playing system to the game , your quite welcome. |
|
I do enjoy the game, and who knows I may indeed play with the game as well as playing the game :) . Thank you very much for sharing this creation. |
|
Congrats on the release. It’s nice to see a new RISC OS game since they’re so few and far between nowadays. I scored 7410 on my 2nd go, somewhat below the high score of 10000. By that point I was starting to worry about the possibility of repetitive strain injury setting in! :-) Here’s an idea for your consideration: Every so often, have the game produce a collectable ‘auto fire’ token which lasts a certain amount of time. It would afford the player a bit of a rest (especially when the action gets really frantic), reduces the RSI risk, and is kinder to the fire key’s keyswitch. On the other hand, I appreciate that auto fire can take some (or a lot?) of the fun out of games of this type. I played it on a Raspberry Pi 2 running RISC OS Direct. It performed well. No glitches as far as I could tell. |
|
@David Thanks for the comments, it was looking at some of your demos that lead me to believe that it was possible to write a game that was playable in BASIC some of your graphic demos are impressive. I’ll think about adding some extras to the game but I’m supposed to be designing printed circuit boards during lock down but writing this has been a fun distraction. I forgot how fluid working in BASIC can be so quick to correct errors. I realise that BASIC has a bit of negativity associated with it but it is really easy to pickup where you left of and continue. I do program in C but sometimes it can be so frustrating not the language but it can takes ages just the get the build environment up and running and don’t get me started on the error reporting :-) miss matched pointer to a pointer that might need this or that, just missing a } can sometimes have you searching around. I have thought about writing a game that works within the desktop I realise that all the graphic would have to be changed for the wimp using colourtrans and you can plot a sprite to the window area but how do you handle vsync does the wimp only update windows after vsync? You can’t hang around waiting for it to happen? Perhaps you could use graphicsV vector? It’s not something I’ve looked at closely any ideas? Anyway thanks for the comments and if the game was easy it would be boring right :-) |
|
This old chestnut. At least it warns you; BASIC won’t actually notice the missing
Having the compiler syntactically check everything and refuse to play until you’ve got it correct is comforting: you know that there can only be semantic problems remaining. |
|
Calm down I did’nt want to start a language war I’m sure all languages have there pros and cons :-) this is just a game after all :-) |
|
You do not mention that it will continue to search for an |
|
Having the compiler syntactically check everything and refuse to play until you’ve got it correct is comforting: you know that there can only be semantic problems remaining. !ABC (may have to avoid newer additions to language until done testing, though works). |
Pages: 1 2