Python for Acorn Electron and BBC Micro

Post Reply
User avatar
0xC0DE
Posts: 1170
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Python for Acorn Electron and BBC Micro

Post by 0xC0DE »

My new 8bit game Python is written in my e- programming language and compiled to 6502 asm by my e- compiler. Python is a proof of concept for my e- compiler package. The e- source of Python will be published later.

Python should run on Acorn Electron, BBC Micro and BBC Master, emulator or real machine.


https://github.com/0xC0DE6502/python-releases

1.png

2.png
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
lurkio
Posts: 4174
Joined: Wed Apr 10, 2013 12:30 am
Location: Doomawangara
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by lurkio »

Simply amazing!

:shock: =D> =D> =D>

Is the e- compiler itself available for general use? If not, do you plan to release it?

Is e- a general-purpose language or is it optimised for games?

:?:
User avatar
0xC0DE
Posts: 1170
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by 0xC0DE »

Thank you!

e- (language and compiler) is evolving as I go. You can play with a very early release here: https://github.com/0xC0DE6502/e-_releases

e- can be used for general purpose programs but in combination with the libraries I have written for it, is also definitely suitable for writing (simple) games, like my game Python :mrgreen:

I will publish a new version of the e- compiler package soon.
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
colinhoad
Posts: 147
Joined: Fri Mar 15, 2019 2:25 pm
Location: London, UK
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by colinhoad »

Fantastic! And it's so, so smooth - as I have come to expect from any 0xC0DE release :D

Lovely work. Could I propose one small addition - would it be possible to have a 'suicide' option for when you manage to get your Python stuck? I know you die eventually when the clock runs out, but a quick 'ESCAPE' to kill yourself and have another go would be a nice to have.
User avatar
0xC0DE
Posts: 1170
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by 0xC0DE »

Thanks Colin! Good suggestion, will do!
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
0xC0DE
Posts: 1170
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by 0xC0DE »

Version 0.11a released with auto dead end detection.

https://github.com/0xC0DE6502/python-releases
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
roland
Posts: 4654
Joined: Thu Aug 29, 2013 9:29 pm
Location: Born (NL)
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by roland »

At first I thought you had ported the programming language Python to the Electron and BBC :lol: This game is also great. Good work =D>

It bugs me that I can't mount the image directly in WiDFS because the ESP8266 cannot communicate with HTTPS sites like github.com. So I knocked up a small proxy-service and now I can mount the image directly with this command:

Code: Select all

*MOUNT 0 http://proxy.acornelectron.nl/?https://github.com/0xC0DE6502/python-releases/raw/main/python-v0.11a.ssd
The Electron communicates over HTTP with PROXY.ACORNELECTRON.NL and there is a small program running that intercepts the requests, fetches the file from github.com over HTTPS and passes the result back to the Electron over HTTP. I'll spend another post about this "service" but for now this is a small hack to make HTTPS sites available to WiDFS. Only read access is supported.
FPGAtom: 512 KB RAM, Real Time Clock and 64 colours
MAN WOMAN :shock:
User avatar
0xC0DE
Posts: 1170
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by 0xC0DE »

Thank you and well done, Roland! :D
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
elk1984
Posts: 84
Joined: Mon Mar 01, 2021 9:54 pm
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by elk1984 »

There went my Saturday afternoon. Great game, excellent game play and it has that perfect "I lost because of my mistakes rather than the game beating me" meaning replayability time after time just to get a bit further. If I had any suggestions, maybe consider changing the maze colours as the levels progress - and a Pause key would be useful.

Thank you!
Soruk
Posts: 1005
Joined: Mon Jul 09, 2018 11:31 am
Location: Basingstoke, Hampshire
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by Soruk »

roland wrote:
Sat Jan 08, 2022 11:58 am
At first I thought you had ported the programming language Python to the Electron and BBC :lol:
You're not the only one! I feel like an idiot....
Matrix Brandy BASIC VI (work in progress) The Distillery (another work in progress)
User avatar
0xC0DE
Posts: 1170
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by 0xC0DE »

Source for the Python game is here: https://github.com/0xC0DE6502/e-_releas ... main/v0.4a

Together with version 0.4a of my e- Compiler package for building the game or your own programs!
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
0xC0DE
Posts: 1170
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by 0xC0DE »

elk1984 wrote:
Sat Jan 08, 2022 1:52 pm
There went my Saturday afternoon. Great game, excellent game play and it has that perfect "I lost because of my mistakes rather than the game beating me" meaning replayability time after time just to get a bit further. If I had any suggestions, maybe consider changing the maze colours as the levels progress - and a Pause key would be useful.

Thank you!
This made my day, thank you! :mrgreen:
Thanks for your suggestions as well!
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
0xC0DE
Posts: 1170
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by 0xC0DE »

Python v0.2a https://github.com/0xC0DE6502/python-releases

Better loader
Coloured levels
Tape and disk images
Works on Elk and Beeb
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
scropp
Posts: 34
Joined: Wed Jan 13, 2021 10:17 pm
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by scropp »

Great game Thank you!

I just spent an hour or so playing.

I love the way you are not panicking about crashing into a wall, and you have a little bit of thinking time, but not too much!

I did manage to get it to crash, I'm not sure what happened but when I lost a life it seemed to miss the point where the head had crashed into the body and carried on trying to erase it forever.

Anyway, I have managed 5060 points so far and I think that was level 5 or 6. I need a break now, but I am definitely going to be coming back to this one!
Stephen
User avatar
0xC0DE
Posts: 1170
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by 0xC0DE »

scropp wrote:
Sun Jan 09, 2022 3:32 pm
Great game Thank you!
Thanks! :mrgreen:
scropp wrote:
Sun Jan 09, 2022 3:32 pm
I did manage to get it to crash, I'm not sure what happened but when I lost a life it seemed to miss the point where the head had crashed into the body and carried on trying to erase it forever.
Ooh! If you ever manage to replicate that behaviour consistently, I would definitely like to know!
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
lovebug
Posts: 1119
Joined: Sun Jan 31, 2021 5:07 pm
Location: Magrathea
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by lovebug »

Very interesting, well done

I cant wait to see the compiler release :D
Image Image Image Image
User avatar
0xC0DE
Posts: 1170
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by 0xC0DE »

Thanks lovebug!

e- Compiler package is here: viewtopic.php?f=55&t=24008
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
barbarossa69
Posts: 171
Joined: Mon Aug 14, 2017 1:12 pm
Location: London
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by barbarossa69 »

Awesome game - I love it!
User avatar
Arcadian
Site Admin
Posts: 4067
Joined: Fri Nov 24, 2000 12:16 pm
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by Arcadian »

Had a little go before I went to bed, only got up to level six, but I'll be back for more - I can see it being quite addictive!

Very fast and smooth but what else do you expect from an 0xC0DE game? :)
Please subscribe to the ABug YouTube channel!
User avatar
0xC0DE
Posts: 1170
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by 0xC0DE »

Thanks to the both of you! :D
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
BigEd
Posts: 4840
Joined: Sun Jan 24, 2010 10:24 am
Location: West Country
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by BigEd »

Splendid- I do like the short grace period.
I see it's in the online collection now too: http://bbcmicro.co.uk/game.php?id=4070
User avatar
Pernod
Posts: 2952
Joined: Fri Jun 08, 2012 11:01 pm
Location: Croydon, UK
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by Pernod »

Very nice adaptation of a classic game, original concept? It's definitely one of those that'll tempt you back to plan your route to success.
- Nigel

BBC Model B: ATPL Sidewise, Acorn Speech, 2xWatford Floppy Drives, AMX Mouse, Viglen case, BeebZIF, etc.
User avatar
0xC0DE
Posts: 1170
Joined: Tue Mar 19, 2019 7:52 pm
Location: The Netherlands
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by 0xC0DE »

Thanks BigEd and Pernod! Got my inspiration from https://hewco64.itch.io/vic-nibbler
0xC0DE
"I program my home computer / Beam myself into the future"
:arrow: Follow me on Twitter
:arrow: Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
User avatar
TobyLobster
Posts: 298
Joined: Sat Aug 31, 2019 7:58 am
Contact:

Re: Python for Acorn Electron and BBC Micro

Post by TobyLobster »

It seems that Nibbler was an arcade game originally, and has it's own documentary film 'Man vs Snake'! Read the story https://mattiasbishop.blogspot.com/2016 ... bbler.html
Post Reply

Return to “miscellaneous new bbc and electron games”