Richmond takes Magic Mushrooms
- richmond62
- Posts: 4831
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Richmond takes Magic Mushrooms
Many long years ago (err: well, 1989) I was sitting under the staircase in my house in Al Ain, UAE, cracking open my BBC Master Micro Compact and trying to avoid doing some actual programming.
- -
I NEVER did get as far as 'sprites' in BBC BASIC, so I shall be paying for my sins, here, shortly.
You can experience the original thing here, online:
https://bbcmicro.co.uk/jsbeeb/play.php? ... ssd&noseek
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 4831
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Richmond takes Magic Mushrooms
Initially at least, I shall try to provide 1 screen.
- -
I shall try to emulate those key-commands.
- -
Oh, Man!
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 4831
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Richmond takes Magic Mushrooms
It took me a bit to work out how many components there are in the game.
- Attachments
-
- Mushrooms Components.oxtstack
- (62.2 KiB) Downloaded 9 times
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 4831
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Richmond takes Magic Mushrooms
Well, at least that was slightly enjoyable.
- Attachments
-
- Conveyer Belt.oxtstack
- (16.38 KiB) Downloaded 10 times
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 4831
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Richmond takes Magic Mushrooms
-
- Attachments
-
- Murphy.oxtstack
- (46.21 KiB) Downloaded 12 times
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 4831
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Richmond takes Magic Mushrooms
- Attachments
-
- LADDER.oxtstack
- (5.39 KiB) Downloaded 13 times
https://richmondmathewson.owlstown.net/
- tperry2x
- Posts: 3209
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
Re: Richmond takes Magic Mushrooms
If I may interject a moment:
If you are looking for a 2D-platformer controller in xTalk - I have attached one here.
However, it comes with a problem under MacOS: that's how to set the initial key repeat DELAY (not repeat). Please see here for what I'm on about.
Anyway, just in case it proves handy: This works under Linux at the moment, needs tweaking for MacOS and Windows.
It's only because I'd planned to make an xTalk remake of this.
If you are looking for a 2D-platformer controller in xTalk - I have attached one here.
However, it comes with a problem under MacOS: that's how to set the initial key repeat DELAY (not repeat). Please see here for what I'm on about.
Anyway, just in case it proves handy: This works under Linux at the moment, needs tweaking for MacOS and Windows.
It's only because I'd planned to make an xTalk remake of this.
- Attachments
-
- 2d-platformer.7z
- (15.45 KiB) Downloaded 12 times
- richmond62
- Posts: 4831
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Richmond takes Magic Mushrooms
You may, you may.If I may interject a moment:

That's a very kind offer.
BUT, obviously you have not taken on board my obsession with 'purity', insofar as I try to do things with OXT that do NOT rely on external libraries/plugins or widgets.
- -
Others may wish to avail themselves of that, mainly as they may not necessarily enjoy the feeling of banging one's head against the wall quite as much as I do.

Whether I will manage to recreate this "wonderful" creation at all in my way is another question: but people following this, and I myself, may yet learn a few things (possibly things to avoid).
My "Mission" (such as it is) is to demonstrate what one can (and cannot) do with OXT 'pure and simple'.
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 4831
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Richmond takes Magic Mushrooms
As my Mac, your PC Windows/Linux box does NOT have a keyboard like this:
- -
[A pity in many ways]
The 3 keys I WILL use look a bit odd:
- -
So I am going to use these keys:
- -
Oh, and if you feel as excited as I do about THAT font get it here:
https://fontstruct.com/fontstructions/download/1009080
- -
[A pity in many ways]
The 3 keys I WILL use look a bit odd:
- -
So I am going to use these keys:
- -
Oh, and if you feel as excited as I do about THAT font get it here:
https://fontstruct.com/fontstructions/download/1009080
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 4831
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Richmond takes Magic Mushrooms
THIS blocks the endless firing of someone keeping their finger (toe ?) on a key:how to set the initial key repeat DELAY (not repeat).
- -
- Attachments
-
- Key Repeater.oxtstack
- (33.03 KiB) Downloaded 12 times
https://richmondmathewson.owlstown.net/
- OpenXTalkPaul
- Posts: 2633
- Joined: Sat Sep 11, 2021 4:19 pm
- Contact:
Re: Richmond takes Magic Mushrooms
This is why I create my own timer check for which keys are down at a given moment, bypassing the key-repeat delay & rate entirely.tperry2x wrote: ↑Sun Feb 16, 2025 9:02 pm If you are looking for a 2D-platformer controller in xTalk - I have attached one here.
However, it comes with a problem under MacOS: that's how to set the initial key repeat DELAY (not repeat). Please see here for what I'm on about.
Anyway, just in case it proves handy:
Code: Select all
send checkKeys to me -- start the loop
on checkKeys
put the keysDown
-- if keys are still down then continue checking the keysDown
if the keysDown is not empty then send checkKeys to me in 50 millisecs
end checkKeys
As far as I know with the OXT engines this is the ONLY way to do diagonal directions key-combos such as Arrow Up + Arrow Right to indicate a north-east direction.
You can also check the state of modifier-keys states when the current script began executing (which could be 100s of milliseconds earlier from when the line with this syntax gets evaluated, so those keys current state may have changed since). These were added in v8.1:
the eventAltKey
the eventCapsLockKey
the eventCommandKey
the eventControlKey
the eventOptionKey
the eventShiftKey
- tperry2x
- Posts: 3209
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
Re: Richmond takes Magic Mushrooms
I don't quite get what you mean here. None of this is a widget. It's all just a plain stack in xtalk, no widgets or anything... so a bit puzzled.richmond62 wrote: ↑Mon Feb 17, 2025 9:40 am That's a very kind offer.
BUT, obviously you have not taken on board my obsession with 'purity', insofar as I try to do things with OXT that do NOT rely on external libraries/plugins or widgets.

Diagonals are fairly easy, you just check if the left or right movement keys are within a list of polling keys when jumping is happening. That's how I'm diagonally jumping in this gif above.
- richmond62
- Posts: 4831
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: Richmond takes Magic Mushrooms
I was jumping to conclusions as I typed that BEFORE I had downloaded your stack and looked at it.I don't quite get what you mean here.
My bad.

https://richmondmathewson.owlstown.net/
- tperry2x
- Posts: 3209
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
Re: Richmond takes Magic Mushrooms
I'm not sure if I was clear. I'm not talking about the repeat in itself, it's the initial delay when you hold your finger on a key. You get the initial push of a key when you hold your finger.......then a wait........ then the repeated firing of the key while your finger is still held down on the key.richmond62 wrote: ↑Mon Feb 17, 2025 1:42 pm THIS blocks the endless firing of someone keeping their finger (toe ?) on a key:
I don't want to block the endless firing of someone keeping their finger on the key. Quite the opposite.
it's that .....then a wait...... I want to eliminate. Which no terminal command on MacOS seems to allow, even though you can open the keyboard preferences and drag the slider to no delay - without a login/logout - so it should surely be possible. (you'd think).
- tperry2x
- Posts: 3209
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
Re: Richmond takes Magic Mushrooms
Make sure you turn off the checkbox when you are done controlling it, otherwise your key repeat will still remain set to a small integer and it'll drive you mad.richmond62 wrote: ↑Mon Feb 17, 2025 4:48 pmI was jumping to conclusions as I typed that BEFORE I had downloaded your stack and looked at it.I don't quite get what you mean here.
My bad.![]()
I did set this to toggle off on closecard.
Anyway, can't find a way to get the mac repeat to work - so it won't work as intended (as shown on this gif) on the mac. It's just yet another thing I can't get to work on MacOS. Something to add to the growing list.
- tperry2x
- Posts: 3209
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
Re: Richmond takes Magic Mushrooms
Other than the 'scroll lock', which is on the right, it's not that dissimilar.richmond62 wrote: ↑Mon Feb 17, 2025 1:01 pm As my Mac, your PC Windows/Linux box does NOT have a keyboard like this:
![]()
- tperry2x
- Posts: 3209
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
- OpenXTalkPaul
- Posts: 2633
- Joined: Sat Sep 11, 2021 4:19 pm
- Contact:
Re: Richmond takes Magic Mushrooms
I've used many an old 'PC' keyboard with macOS over the year (even ones with extra keys and like 'Email"), just takes a cheap PS2 to USB adapter for really old keyboards, and a switch around of win/command and alt/option keys in the keyboard system panel.
- OpenXTalkPaul
- Posts: 2633
- Joined: Sat Sep 11, 2021 4:19 pm
- Contact:
Re: Richmond takes Magic Mushrooms
That looks good for diagonal 'jumping' of sprite, but it's not like moving a character diagonally. I know for a Mario-Bros- style 2D platformer game like this it's not necessarily needed, but if you wanted to make character do something like low-kick one of the mushroooms, you would likely want to check for keyboard-chording in your game loop. Of course a script author could always refactor it to that method later if chording becomes needed.
- tperry2x
- Posts: 3209
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
Re: Richmond takes Magic Mushrooms
Thanks Paul,
using your method - this sidesteps the key repeat issue, so at least works the same on all three platforms (Linux, Windows, MacOS)
Anyway, sorry to hijack your post Richmond - looking forward to seeing more progress on it.
using your method - this sidesteps the key repeat issue, so at least works the same on all three platforms (Linux, Windows, MacOS)
Anyway, sorry to hijack your post Richmond - looking forward to seeing more progress on it.
Who is online
Users browsing this forum: No registered users and 1 guest