I Made a Graphics Engine in Scratch

preview_player
Показать описание

I Made a Graphics Engine in Scratch. Scratch is a 2D platform intended for kids to make games. But today I decided to try and stretch the limits of the game engine and create an actual graphics engine inside of it. This meant I had to figure out how to add my own rendering system, texture loader, material creator, dynamic lighting and much more. And let me just say that making this was a real challenge!

➤My Links:

➤ My Other Videos

➤Ignore:
In this video, I take on the challenge of building a fully custom graphics engine inside Scratch—without using any pre-made assets or cheats! I started from scratch (pun intended) and developed my own rendering system using Scratch's pen tool, enabling the creation of both 2D and 3D shapes.

But I didn’t stop there! I implemented shape manipulation tools so you can edit and design your own creations. Next, I tackled texture creation, using a string/list of values to define color, saturation, and brightness, all with the pen tool.

One of the coolest features I added is dynamic lighting that follows your mouse, affecting the entire screen and its surroundings. I even managed to implement dynamic shadows for any object, bringing a realistic depth to your designs. Finally, I created shaders and other advanced graphical effects to elevate the visuals even further.

If you're interested in how I built all of this within Scratch or want to learn more about creating custom graphics engines, this video is for you! Don't forget to like, share, and subscribe for more creative coding content.

#scratch #gameengine #gamedev #zyger
Рекомендации по теме
Комментарии
Автор

Did you ever find the “run without screen refresh” option on custom blocks?

sssamson
Автор

people who have made full 3d engines in scratch: look what they do to mimic a fraction of our power

FluixMakesGames
Автор

not trolling here, Scratch is capable of doing some CRAZY things if you look in the right places. Since Scratch is open source, many mods and even mods of mods of mods exist, such as TurboWarp, PenguinMod, Snail IDE, Gandi IDE, and a whole lot more. Turbowarp and many subsequent mods of Turbowarp even have full on physics engines as extensions, and PenguinMod can even do 3D.

TL;DR, don't underestimate the Scratch community lmao

totallynothunterYT
Автор

There is a 'Run without Screen refresh' checkbox when creating a custom block (basically a function). This allows you to run the code within the custom block, without it refreshing the screen each tick. It also causes the code to run much faster.

MasonAlex-fp
Автор

omg, scratcher here, everything you did could be done so much easily 😫 (i know you did the best you could :) but still hurts my eyes)

Exmachina-qe
Автор

As a pro scratcher, your unoptimized code hurts me

RonicTheEgg
Автор

Hey! Just wanna say there is a small community of scratchers doing 3D (which I'm part of) so if you ever plan on doing a part 2 with a 3D graphic engine, you can join our server for help!

Some projects people in the community have made:
-Multiple 3D minecraft games (even 1 with rtx) (I made one too ahah)
-Pathtracers
-Raytracers
-Rasterizers (with obj importing)
-BSP
And so much more!

maDU_
Автор

6:15
there are 2 ways to counter the clone problem
1: use the pen extension and use the stamp block which has no limit
2: delete all 0 brightness clones
3: don’t use turbowarp because then you can’t post it to scratch

Lukepuke
Автор

Don't underestimate the Scratch community. Some people achieve incredible results.

harasen_haras
Автор

as a scratcher when i saw your code it was like being stabbed in the chest

AndyGun
Автор

Not me still stuck trying to make a regular old physics engine... I love your videos because they make inspire me to actually be doing stuff!

victorsardaneta
Автор

Thanks for sponsoring gamemaker, i accidentally remade undertale

SuFFr
Автор

The longer I watch this video the angrier I get

YourAverageRock
Автор

I would suggest using a square costume and use the stamp block for having pixels instead of circles!

palmossi
Автор

Next need to be a graphic engine in geometry dash 🔥🔥

Volser
Автор

2:32 "Mom, I made something! :)"

kak_ya_tut_okazalsya
Автор

"The platform is intended to make very simple games"
People who have made raycasters and DOOM: are we jokes to you

gameknightplays
Автор

Some people made Mario64, 2d and 3d Minecraft with multiplayer and other massive projects. If you spend years optimizing and trying Scratch can have no limits.

BAMBOOZZO
Автор

Amazing how you pushed the limits of such a simple engine! I gave up making scratch projects years ago - yet I can't even begin to understand how much effort this took! Well done.

almightyabyssal
Автор

You should have used clones for the points instead of individual sprites

Particular-Player
join shbcf.ru