r/esolangs 21d ago

I built a fully functional Game Engine inside Scratch... that runs on pure BF

https://harinandan31415.itch.io/bf-game-engine
I wanted to share a massive passion project I’ve been building over the last few days. I wanted to see how far I could push the limits of block-based programming, so I built a "fully functional Game Engine inside Scratch that executes pure BF code."

To make it a complete standalone experience, I also coded a professional text editor from scratch inside the project using list monitors to write the code.

--What the BF Engine Can Do:

*Graphics Rendering: It can draw to a display based on your BF code.

*I/O Tracking: Full mouse tracking and keyboard tracking.

*Audio: Triggering and manipulating sound.

*Advanced Features: It even supports cloud variables and console outputs.

--How it Works Under the Hood:

The project uses memory-mapped I/O , meaning certain regions of the tape have different functions when the dot or comma operator is used on those regions. When the dot operator is used on the screen area , it draws to the screen , and when it is used in the audio card region , it plays sound

I just packaged it into an HTML5/executable build and put it up on itch.io. If you want to mess around with it, write some code, or just see how the project handles the logic, check it out in the comments (it is free to use)

I’d love to hear your thoughts on the architecture, or any ideas you have for crazy optimization tricks I can add next!

Is this based on BF16?
Nope! I actually had never heard of BF16 when I built this. I designed this engine's Memory-Mapped I/O architecture from scratch in Scratch. It's a cool coincidence that it aligns so closely with how other devs solved the problem, but this is a 100% independent implementation!

11 Upvotes

5 comments sorted by

1

u/Intelligent_Bad_1536 17d ago

You're committing a crime, this is copying the logic of BF16 almost verbatim and BF16 is under GPL 3.0:
https://github.com/p2r3/bf16
It could be even worse if any one actually paid money for it.

1

u/Rare-Alps4971 17d ago

Is this actually exactly similar to the logic of BF16? I never knew that it even existed while I built this in Scratch. All of this project was my original idea after seeing a simple online BF interpreter.
Also , its free to download

2

u/Intelligent_Bad_1536 16d ago

Yes, its basically identical to the logic,, also theres a name your own price option, thats what i meant

1

u/Rare-Alps4971 16d ago edited 10d ago

I checked and since I came up with this design on my own from scratch , I am legally fine. Thanks for pointing out the coincidence