Hey everyone,
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 VM handles the logic, check it out here (it free to use)
https://harinandan31415.itch.io/bf-game-engine
I’d love to hear your thoughts on the architecture, or any ideas you have for crazy optimization tricks I can add next!









