Modification request for One Switch games

new games to be launched and discussed here
OneSwitch
Posts: 59
Joined: Tue Nov 22, 2011 5:50 pm

Modification request for One Switch games

Postby OneSwitch » Tue Dec 12, 2017 9:34 pm

Alongside some of the fantastic Special Needs / Educational BBC Micro software, there are some interesting one-switch (ish) games it seems.

These are games playable with a single button, and typically, suit disabled gamers finding more complicated controllers too hard to cope with.

I'm planning to build a section on my site (www.oneswitch.org.uk) to promote some of these brilliant (often forgotten) titles. Might inspire people to make more games with simple controls.

Wondering if anyone can help with the following.....

1. Improve the accessibility of Catacastles: http://bbcmicro.co.uk//game.php?id=1446....

Would be great to make the controls SPACE BAR and Enter if possible instead of CAPS LOCK and COPY. They should ideally work to start and restart the game. Even better still, would be to enable switch access. BeemEm can replicate this (known as the USER PORT Break-out Box - although the numbering seems slightly out compared to how the switch interface boxes were made).

I can't work out the code in Catacastles as for how the input works, but I have remembered this for a switch interface box...

Image

10 f%=?&FE60:PRINTf%:GOTO10 (possible to test using BeebEm)

f%=254 SWITCH1
f%=253 SWITCH2
f%=252 (SWITCH 1 + 2 pressed at the same time)
f%=251 SWITCH3
f%=247 SWITCH4
255 = all switches released



2. Apart from Blitz/Bomber/Air Attack games, are people aware of any other games that can be played with a single key on the BBC Micro?

Fingers crossed. :)

Barrie
OneSwitch.org.uk

User avatar
richardtoohey
Posts: 3390
Joined: Thu Dec 29, 2011 5:13 am
Location: Tauranga, New Zealand

Re: Modification request for One Switch games

Postby richardtoohey » Mon Jan 01, 2018 5:57 am

OneSwitch wrote:I can't work out the code in Catacastles as for how the input works
I'm not exactly sure what you are after; the code looks like it's all BASIC:

240DIM B%(1,2),A(4,2),C%(2),KO%(2),P%(2),AN(2),OG%(2),G%(2),I%(2),DA%(2)
...
260KO%(1)=0:KO%(2)=0:C%(1)=0:C%(2)=0:AN(1)=1.6:AN(2)=4.7:G%(1)=0:G%(2)=0:I%(1)=-65:I%(2)=-106
...
590IFINKEY(I%(Z%))=0 GOTO640
...

So I%(1) of -65 ... is CAPS LOCK.

I%(2) of -106 ... is COPY.

So you could try tweaking those values on line 260.

Space bar is -99, Return is -74.

Hope that helps, but if you explain a bit more about what you need, that would be useful!

OneSwitch
Posts: 59
Joined: Tue Nov 22, 2011 5:50 pm

Re: Modification request for One Switch games

Postby OneSwitch » Sat Jan 13, 2018 5:56 pm

Thank you! I'll give that a go.

I'm looking to get that game (and others) more easily set-up to work with conventional PC / Mac accessibility switch interfaces. These are normally simple interface boxes that you can plug an external push-button / switch into, that converts input to the SPACE BAR or Enter key for example.

To avoid faff for the end-user, it would be great to get games with obscure key presses to these more conventional controls.

I know this is niche of niche stuff, but I'm keen to show that some of this old stuff can still be great fun and relevant.

OneSwitch
Posts: 59
Joined: Tue Nov 22, 2011 5:50 pm

Re: Modification request for One Switch games

Postby OneSwitch » Sat Jan 13, 2018 8:28 pm

Many thanks, Richard. That did the trick. I've attached the simple fix version (will work on-line). This has the left-side player using the SPACE BAR, and the right-side player as ENTER.

I'd like for it also to work with the switch interface box on a real BBC Micro ideally.

Where it checks for keyboard input (SPACE / ENTER), I'd like for it to check for switch input too....

10 f%=?&FE60:PRINTf%:GOTO10

face%=254 SWITCH1 pressed
face%=253 SWITCH2 pressed
face%=252 SWITCH1+2 pressed

I'll see if I can get that working too. This may beat me with my rusty skills.

Anyway, cheers again. Appreciated.
Attachments
Catacastles_OneSwitch_Mod.ssd
(200 KiB) Downloaded 4 times


Return to “software: new games”

Who is online

Users browsing this forum: No registered users and 1 guest