BBC BASIC
« Rotating marble maze game »

Welcome Guest. Please Login or Register.
Mar 31st, 2018, 10:45pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Cross-platform BBC BASIC (Windows, Linux x86, Mac OS-X, Android, iOS, Raspberry Pi)
BBC BASIC Resources
BBC BASIC Help Documentation
BBC BASIC for Windows Home Page
BBC BASIC Programmers' Reference
BBC BASIC Beginners' Tutorial
BBC BASIC for SDL 2.0 Home Page
BBC BASIC Discussion Group

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Rotating marble maze game  (Read 367 times)
PatrickM
New Member
Image


member is offline

Avatar




PM


Posts: 14
xx Rotating marble maze game
« Thread started on: Sep 20th, 2017, 10:28pm »

Hi,

I recently made this rotating marble maze game.
I originally designed it for RISC OS/ARM BASIC, and this version has been adapted for BBCSDL.

Here is the game:
http://dusthillguy.ddns.net/folder/rotmaze.bas

The controls are Z and X to rotate the maze, and Space to quickly flip the maze 180 degrees.
The goal of the game is to guide the marble to the end of the maze, marked by the green circle.

I thought I'd post it here as Richard mentioned that he had been looking for programs that require only limited input capabilities, for use on his Amazon TV stick.

Be aware that it's a bit unfinished, and the code isn't very clean as I only just learned to program about a year and a half ago, and if you play the game long enough it'll eventually crash because it'll try to generate a maze that's too big.

- PM
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 803
xx Re: Rotating marble maze game
« Reply #1 on: Sep 20th, 2017, 10:53pm »

on Sep 20th, 2017, 10:28pm, PatrickM wrote:
I thought I'd post it here as Richard mentioned that he had been looking for programs that require only limited input capabilities, for use on his Amazon TV stick.

Thanks. The keys would have to be changed to allow it to be run on the TV Stick, for example using the left and right arrows instead of (or additional to) Z and X.

Richard.
User IP Logged

PatrickM
New Member
Image


member is offline

Avatar




PM


Posts: 14
xx Re: Rotating marble maze game
« Reply #2 on: Sep 21st, 2017, 01:27am »

Apart from the arrows, what other keys are available on the Amazon TV stick's remote control?
I'll update the program accordingly tomorrow.
Thanks,
-PM
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 803
xx Re: Rotating marble maze game
« Reply #3 on: Sep 21st, 2017, 08:34am »

on Sep 21st, 2017, 01:27am, PatrickM wrote:
Apart from the arrows, what other keys are available on the Amazon TV stick's remote control?

Here's a picture. Only the navigation ring (left, right, up, down) and the central button (maps to Return/Enter) are testable using INKEY with a negative parameter I think. The rewind, fast-forward, play/pause and menu buttons are additionally detectable with GET or INKEY with a positive parameter.

User Image

Richard.
User IP Logged

PatrickM
New Member
Image


member is offline

Avatar




PM


Posts: 14
xx Re: Rotating marble maze game
« Reply #4 on: Sep 21st, 2017, 12:10pm »

Thanks Richard, here's the new version of the game:
http://dusthillguy.ddns.net/folder/rotmaze2.bas
Hopefully you should be able to play it on the amazon fire stick now, but let me know if there are any other problems that stop it from working.

PM
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 803
xx Re: Rotating marble maze game
« Reply #5 on: Sep 21st, 2017, 10:19pm »

on Sep 21st, 2017, 12:10pm, PatrickM wrote:
Hopefully you should be able to play it on the amazon fire stick now, but let me know if there are any other problems that stop it from working.

It runs, but I misled you: I'd forgotten that the central button (in the middle of the navigation ring) - whilst generating the same GET code as Enter/Return - has its own negative-inkey value of INKEY(-73) rather than INKEY(-74). With that change all the 'spin' functions work as they should.

To make it fully suitable for the Fire Stick it would be necessary to add the ON ERROR statement that all the other Android example programs have. Otherwise there's no way of getting back to the main menu ('IDE') and it will instead exit to an immediate mode prompt. Not a lot of use on a machine without a keyboard!

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls