RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account
Forums → General →

TENiS: simple ball game for RISC OS

Subscribe to TENiS: simple ball game for RISC OS 16 posts, 12 voices

 
Mar 13, 2018 6:27pm
Avatar Patrick M (2888) 87 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
I would try it on my A3010, but I’ve lost my bus mouse.

- Patrick

 
Mar 13, 2018 10:06pm
Avatar Anthony Vaughan Bartram (2454) 442 posts

Hi Patrick,
This is brilliant! I wasn’t expecting it to be in 3D.

Played on my ARM X6.

Tony

 
Mar 14, 2018 3:37pm
Avatar Richard Ashbery (495) 163 posts

A challenging game but as Anthony points out works superbly on ARMX6. Could be additive.

 
Mar 14, 2018 11:16pm
Avatar jan de boer (472) 71 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?

 
Mar 15, 2018 5:15pm
Avatar Krzysztof Klis (2832) 36 posts

Hello Patrick,
The game is great – very addictive! :) It works flawlessly on Raspberry Pi 1, 2 (older model) and 3, all under RISC OS 5.23.

 
Mar 15, 2018 9:52pm
Avatar Patrick M (2888) 87 posts

Hello,

Thanks everyone for the replies.

Tony,
Thanks! This was my first time really trying to do something in 3D, it wasn’t as tricky as I thought it would be, and I was surprised at how it turned out. I’ll probably be making more 3D games.

Richard, Krzysztof,
Thanks for trying, good to know it works on your systems.

jan,
Thanks very much for trying it on your A310, I’m glad that it worked – I put a fair bit of effort into getting the code as efficient as I could make it so it’d run playably on the older hardware. Also good to know about it needing to be MODE 15, I’ve made an updated version of the archimedes version with that change: http://dusthillguy.ddns.net/folder/files/quickupload/arcver2.zip

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.
You could try changing line 1940 in PROCcollision, where it says “* 2”, and change it to “* 3”.
That would be line 990 in PROCl in the archimedes version.

I hope that my bus mouse will turn up eventually so I can try it myself on my A3010.

- Patrick

 
Mar 16, 2018 12:19am
Avatar jan de boer (472) 71 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.

 
Dec 7, 2018 5:14am
Avatar 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.

 
Dec 7, 2018 8:55am
Avatar Chris Mahoney (1684) 2015 posts

It’s BASIC, so you can just open it in an editor and look at it.

 
Dec 8, 2018 8:51am
Avatar Willard Goosey (5119) 253 posts

Neat game! It blows my mind that this is in BASIC!

 
Dec 10, 2018 8:47pm
Avatar Matthew Phillips (473) 628 posts

Are the links to the game which appear in Patrick’s posts current? It just times out in NetSurf.

 
Dec 10, 2018 9:54pm
Avatar Rick Murray (539) 12369 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! ;-)

 
Dec 11, 2018 9:04am
Avatar Willard Goosey (5119) 253 posts

Tenis is available in the !store if that helps…

 
Dec 19, 2018 1:24pm
Avatar Patrick M (2888) 87 posts

Patrick’s server is probably turned off.

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.

 
Dec 19, 2018 4:32pm
Avatar Steve Pampling (1551) 7398 posts

I restarted it and it started working again.

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.
I’m surprised he’s not popped up with that suggestion himself.

 
Dec 19, 2018 5:54pm
Avatar David Feugey (2125) 2626 posts

Rick did :)
But yes, free webspace waits you. Just drop me an email.

Reply

To post replies, please first log in.

Forums → General →

Search forums

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Description

General discussions.

Voices

  • Patrick M (2888)
  • Anthony Vaughan Bartram (2454)
  • Richard Ashbery (495)
  • jan de boer (472)
  • Krzysztof Klis (2832)
  • Jared Falvo (6086)
  • Chris Mahoney (1684)
  • Willard Goosey (5119)
  • Matthew Phillips (473)
  • Rick Murray (539)
  • Steve Pampling (1551)
  • David Feugey (2125)

Options

  • Forums
  • Login
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Beast theme is based on Beast's default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Beast © 2006 Josh Goebel and Rick Olson
This site runs on Rails

Hosted by Arachsys