Richmond takes Magic Mushrooms

A forum to share your demonstrations stacks, fun stacks, games, etc.
User avatar
richmond62
Posts: 4831
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Richmond takes Magic Mushrooms

Post by richmond62 »

MagicMushrooms-Acornsoft.png
MagicMushrooms-Acornsoft.png (4.63 KiB) Viewed 8054 times
-
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.
-
EPS.jpg
EPS.jpg (271.82 KiB) Viewed 7853 times
-
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/
User avatar
richmond62
Posts: 4831
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Richmond takes Magic Mushrooms

Post by richmond62 »

Screenshot 2025-02-16 at 11.52.17.png
Screenshot 2025-02-16 at 11.52.17.png (236.13 KiB) Viewed 8053 times
-
Initially at least, I shall try to provide 1 screen.
-
Screenshot 2025-02-16 at 11.53.02.png
Screenshot 2025-02-16 at 11.53.02.png (161.72 KiB) Viewed 8053 times
-
I shall try to emulate those key-commands.
-
Dylan.jpg
Dylan.jpg (34.55 KiB) Viewed 8047 times
-
Oh, Man!
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 4831
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Richmond takes Magic Mushrooms

Post by richmond62 »

components.png
components.png (86.58 KiB) Viewed 8022 times
-
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/
User avatar
richmond62
Posts: 4831
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Richmond takes Magic Mushrooms

Post by richmond62 »

conveyer.png
conveyer.png (47.62 KiB) Viewed 8019 times
-
Well, at least that was slightly enjoyable.
Attachments
Conveyer Belt.oxtstack
(16.38 KiB) Downloaded 10 times
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 4831
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Richmond takes Magic Mushrooms

Post by richmond62 »

Screenshot 2025-02-16 at 15.06.22.png
Screenshot 2025-02-16 at 15.06.22.png (92.84 KiB) Viewed 7949 times
-
Attachments
Murphy.oxtstack
(46.21 KiB) Downloaded 12 times
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 4831
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Richmond takes Magic Mushrooms

Post by richmond62 »

Screenshot 2025-02-16 at 15.17.20.png
Screenshot 2025-02-16 at 15.17.20.png (56.49 KiB) Viewed 7950 times
Attachments
LADDER.oxtstack
(5.39 KiB) Downloaded 13 times
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 3209
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Richmond takes Magic Mushrooms

Post by tperry2x »

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:
platformer.png
platformer.png (12.67 KiB) Viewed 7613 times
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
User avatar
richmond62
Posts: 4831
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Richmond takes Magic Mushrooms

Post by richmond62 »

If I may interject a moment:
You may, you may. 8-)

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.
-
csm_Deutsches_Reinheitsgebot_616x525_33f744533c.jpg
csm_Deutsches_Reinheitsgebot_616x525_33f744533c.jpg (29.65 KiB) Viewed 7022 times
-
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. :lol:

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/
User avatar
richmond62
Posts: 4831
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Richmond takes Magic Mushrooms

Post by richmond62 »

As my Mac, your PC Windows/Linux box does NOT have a keyboard like this:
-
keyboard.jpg
keyboard.jpg (35.05 KiB) Viewed 7021 times
-
[A pity in many ways]

The 3 keys I WILL use look a bit odd:
-
SShot 2025-02-17 at 14.59.06.png
SShot 2025-02-17 at 14.59.06.png (45.71 KiB) Viewed 7020 times
-
So I am going to use these keys:
-
SShot 2025-02-17 at 15.13.48.png
SShot 2025-02-17 at 15.13.48.png (26.1 KiB) Viewed 7019 times
-
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/
User avatar
richmond62
Posts: 4831
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Richmond takes Magic Mushrooms

Post by richmond62 »

how to set the initial key repeat DELAY (not repeat).
THIS blocks the endless firing of someone keeping their finger (toe ?) on a key:
-
SShot 2025-02-17 at 15.40.42.png
SShot 2025-02-17 at 15.40.42.png (119.26 KiB) Viewed 7007 times
-
toes.jpg
toes.jpg (6.83 KiB) Viewed 7007 times
Attachments
Key Repeater.oxtstack
(33.03 KiB) Downloaded 12 times
https://richmondmathewson.owlstown.net/
User avatar
OpenXTalkPaul
Posts: 2633
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Richmond takes Magic Mushrooms

Post by OpenXTalkPaul »

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

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
The 's' in keysDown is important for checking keyboard 'chords', keyDown (no 's') only returns the key that was most recently pressed, while keySdown returns a comma-seperated list of ALL of the keys (the X11 key-mapping numbers) that are currently held down.

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
User avatar
tperry2x
Posts: 3209
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Richmond takes Magic Mushrooms

Post by tperry2x »

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.
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. :|
2d-controller.gif
2d-controller.gif (334.94 KiB) Viewed 6865 times
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.
diagonal.png
diagonal.png (50.55 KiB) Viewed 6865 times
User avatar
richmond62
Posts: 4831
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Richmond takes Magic Mushrooms

Post by richmond62 »

I don't quite get what you mean here.
I was jumping to conclusions as I typed that BEFORE I had downloaded your stack and looked at it.

My bad. ;)
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 3209
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Richmond takes Magic Mushrooms

Post by tperry2x »

richmond62 wrote: Mon Feb 17, 2025 1:42 pm THIS blocks the endless firing of someone keeping their finger (toe ?) on a key:
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.
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).
User avatar
tperry2x
Posts: 3209
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Richmond takes Magic Mushrooms

Post by tperry2x »

richmond62 wrote: Mon Feb 17, 2025 4:48 pm
I don't quite get what you mean here.
I was jumping to conclusions as I typed that BEFORE I had downloaded your stack and looked at it.

My bad. ;)
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.
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.
User avatar
tperry2x
Posts: 3209
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Richmond takes Magic Mushrooms

Post by tperry2x »

richmond62 wrote: Mon Feb 17, 2025 1:01 pm As my Mac, your PC Windows/Linux box does NOT have a keyboard like this:
Image
Other than the 'scroll lock', which is on the right, it's not that dissimilar.
kbd.png
kbd.png (416.97 KiB) Viewed 6843 times
User avatar
tperry2x
Posts: 3209
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Richmond takes Magic Mushrooms

Post by tperry2x »

tperry2x wrote: Mon Feb 17, 2025 4:47 pm ...That's how I'm diagonally jumping in this gif above.
I'm not diagonally jumping by the way, that's far too energetic.
User avatar
OpenXTalkPaul
Posts: 2633
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Richmond takes Magic Mushrooms

Post by OpenXTalkPaul »

tperry2x wrote: Mon Feb 17, 2025 4:59 pm Other than the 'scroll lock', which is on the right, it's not that dissimilar.
kbd.png
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.
User avatar
OpenXTalkPaul
Posts: 2633
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Richmond takes Magic Mushrooms

Post by OpenXTalkPaul »

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.
User avatar
tperry2x
Posts: 3209
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Richmond takes Magic Mushrooms

Post by tperry2x »

Thanks Paul,
using your method - this sidesteps the key repeat issue, so at least works the same on all three platforms (Linux, Windows, MacOS)
pecky-egg-v2.oxtstack
(18.71 KiB) Downloaded 13 times
Anyway, sorry to hijack your post Richmond - looking forward to seeing more progress on it.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest