r/scratch • • 19h ago

Media Introducing Kizu, a rendering engine compiling python code into Scratch projects

Kizu is a tool that turns code written in Python into a real Scratch project that you can open in Scratch or TurboWarp. You write your game in Python, run Kizu, and it builds all the blocks for you, often thousands of them, far more than anyone would want to drag around by hand. It comes with ready-made tools for the hard stuff, so you can make things that normally seem impossible in Scratch: 3D worlds you can walk around in, textures, a day and night sky with a sun and stars, realistic ray traced pictures with mirrors and glass, physics where crates stack and balls bounce, fire, smoke and water that ripples when you throw things in, and sound effects with music.

Everything still runs on normal Scratch blocks and the pen, with no extensions or tricks outside of Scratch. It runs best in TurboWarp. Kizu is free and on GitHub (https://github.com/Escartem/Kizu), with examples to try. Anyone who wants to help improve it is welcome!

34 Upvotes

6 comments sorted by

6

u/Substantial_Set5836 i make AI projects 19h ago

PYTHON TO SCRATCH????

2

u/_Escartem_ 19h ago

it appears to be so 👀

1

u/Substantial_Set5836 i make AI projects 19h ago

this is a blessing and a curse

2

u/KaraBurunKangal 18h ago

Last gif says 60fps but scratch itself limits it to 30? So its not ran on scratch perhaps?

Edit: i realized all gifs say 60fps

2

u/_Escartem_ 14h ago

All demos were run in turbo warp turbo mode since they were the most complex ones to showcase the project

1

u/NPavl 16h ago

phyton to scratch? I thought Pen mazes were the best of scratch