Discuss Scratch

HarinandanMidhun
Scratcher
4 posts

I built a fully functional Game Engine that runs on one of the hardest programming languages

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 Scratch, 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
You can check it out here
https://scratch.mit.edu/projects/1305999086/

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

I built a fully functional Game Engine that runs on one of the hardest programming languages

HarinandanMidhun wrote:

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 Scratch, 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
You can check it out here
https://scratch.mit.edu/projects/1305999086/

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

Why are you writing in Markdown? Did ChatGPT generate this..?
HarinandanMidhun
Scratcher
4 posts

I built a fully functional Game Engine that runs on one of the hardest programming languages

I have been learning markdown so I thought I would use it

Powered by DjangoBB