TENiS: simple ball game for RISC OS
Patrick M (2888) 125 posts |
Hello, I’ve written another simple game in BASIC. This one is called TENiS – it’s based on tennis but it’s a bit different, so I’ve spelled it with just one N to make it clear that there’s a difference. Here it is: http://dusthillguy.ddns.net/folder/files/quickupload/tenis.zip The goal of the game is to keep the ball in the court for as long as possible, by using your racquet. You must control the racquet by using your mouse. The game will end once the ball falls outside of the court. The game runs in MODE 32, but I’ve designed the code so that you can change the mode (to 13, for example) and things should still work much the same. This is because, from what I’ve observed, it seems like you can’t depend on certain modes being available on different monitor configurations, and it’s not assured that you’ll get the specific MODE that you requested. I hope the game will work on everyone’s different system configurations without any problems, but I can’t guarantee that it will. If you try the game, please let me know if it works or not on your system. Also, if anyone has an old Archimedes system set up and running, please try this Archimedes specific version I made, and let me know if it works: http://dusthillguy.ddns.net/folder/files/quickupload/arcver.zip - Patrick |
Anthony Vaughan Bartram (2454) 456 posts |
Hi Patrick, Played on my ARM X6. Tony |
Richard Ashbery (495) 163 posts |
A challenging game but as Anthony points out works superbly on ARMX6. Could be additive. |
jan de boer (472) 78 posts |
Arcver works perfectly on an Archimedes A310, I had first to set the screen resolution to MODE 15 so that shadowscreens work, and then run it (otherwise flickers with a CRT monitor). Nice game! But how can I give the ball more forward speed at times? |
Krzysztof Klis (2832) 36 posts |
Hello Patrick, |
Patrick M (2888) 125 posts |
Hello, Thanks everyone for the replies. Tony, Richard, Krzysztof, jan, About the forward speed, my intention was for the ball to move fairly fast, but not too fast. But after testing the game for a while, I can see how it could be a bit too slow for some players. I hope that my bus mouse will turn up eventually so I can try it myself on my A3010. - Patrick |
jan de boer (472) 78 posts |
MODE 13 for the game (arcver) itself is good; but there seems to be an issue with Riscos 3.11 (and older ROMs) where, when you use shadow screens, the MODE in which you click the game, should use an amount of screenmemory where 2 or more game screens fit in. So in case of 2 screenfuls of MODE 13, you need 2* 80Kb, and MODE 15 provides this 160 Kb. As example of this take Hodgepodge, a type-in cellular automaton from Acorn User, from very long ago. *Configure screensize 160K also did not help in my case. So MODE 13 for the game is OK, just start it from a mode that can provide the memory for 2 MODE13 screens. It turns out that inserting: 20 MODE 15 (in line 20, before 30 MODE 13 ) does the trick; YMMV. Perhaps this anti-flicker measure is only needed for CRT monitors, too. |
Jared Falvo (6086) 35 posts |
Is the source code available? I’d like to create a BBC BASIC mouse-controlled game, where the player sprite is the mouse pointer (much like how TENis operates), but have no clue how to accomplish this. |
Chris Mahoney (1684) 2162 posts |
It’s BASIC, so you can just open it in an editor and look at it. |
Willard Goosey (5119) 257 posts |
Neat game! It blows my mind that this is in BASIC! |
Matthew Phillips (473) 714 posts |
Are the links to the game which appear in Patrick’s posts current? It just times out in NetSurf. |
Rick Murray (539) 13759 posts |
It’s a dynamic DNS address – the same thing I use for my Pi just beside me. Patrick’s server is probably turned off. He last posted on November 22nd, so if he’s around reading this… ask David for some webspace so your game can always be available! ;-) |
Willard Goosey (5119) 257 posts |
Tenis is available in the !store if that helps… |
Patrick M (2888) 125 posts |
It should be back now. I’m not sure what was wrong – it seemed like the noip client had stopped updating, even though the process was still running. I restarted it and it started working again. |
Steve Pampling (1551) 8130 posts |
You can eliminate that bit of work (and problem) by following up on the suggestion from Rick about requesting webspace from David Fuegey’s setup. |
David Feugey (2125) 2709 posts |
Rick did :) |