Author |
Topic: Rotating marble maze game (Read 369 times) |
|
PatrickM
New Member
member is offline


Posts: 14
|
 |
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
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 803
|
 |
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.
|
|
Logged
|
|
|
|
PatrickM
New Member
member is offline


Posts: 14
|
 |
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
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 803
|
 |
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.

Richard.
|
|
Logged
|
|
|
|
PatrickM
New Member
member is offline


Posts: 14
|
 |
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
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 803
|
 |
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.
|
|
Logged
|
|
|
|
|