How to Make a 3D Game in Scratch | Minecraft in Scratch E1

21,742
0
Published 2024-06-23
In this video we will code a 3D Renderer which we'll use to display 3D blocks. In future episodes we will work on turning this into an actual game like Minecraft.
We will use raycasting, which is used for 3D maze games and such (which are really just 2D games) but can also be used in fully 3D games.

Chapters
00:00 Intro and explanations
04:12 Grid
08:40 Collision detection
10:40 Camera variables
11:40 Ray movement explanation
15:05 Variable setup
18:15 Casting rays
23:35 Displaying camera view
26:28 Camera movement
30:00 Shading
32:00 End

All Comments (21)
  • @FindingPepper
    If you have an bug in your project, commenting "it doesn't work" will not help anyone help you find the problem. If you would like help fixing your bugs, please send a link to your scratch project. You need to do this on my scratch profile as youtube eats links. I may not have time to help you solve the problem but even if I do not someone else might. I know this is a complicated project with lots of similar-looking variables, so mistakes are normal. Great job if you've made it through the tutorial without any! Also, I'd encourage people to try to actually understand the code rather than just blindly copying it. You'll learn much better this way!
  • @Bungungus
    big fan. glad to see another scratch content creator make sick projects
  • @DemidCode
    that's cool dude ngl. Maybe you remember me, im continue python but with pyray now (raylib wrapper for python), 3d pretty easy with raylib. Also switched from windows 10 to linux mint, learning some stuff rn :) Interested in this series to see scratch 3d implementation, keep going)
  • Bro, I loved this project! is the first real tutorial of 3D Minecraft that i see!
  • this is so amazing, its so easy to make a map, its like a 2d tile game with clone count x and y, but now with z, so you can easily make terrain generation like minecraft, this is awesome.
  • @TheKlad
    YOOOO, LET'S GO!!!! I'm super happy when i see this tutorial!!! I just love your mind blowing tutorials! And can you make like Pen+ tutorials?
  • @OfficialBlissYT
    one wrong variable placement and you gotta restart the entire tutorial over
  • @TheDudes421
    Your so underatted, This is such an understanding video btw!! U earned a new sub
  • wow is the first real tutorial of 3D Minecraft that i see!
  • @jnixieALT
    Teaching how actually code minecraft is nicest thing and most impressive thing you can probably do
  • @Coocoding
    I clicked on this faster than my dad left for milk
  • @Assumptionist
    9:28 hey i don't know if you know this (and i'm a little late) but guard clauses are actually faster than if/else statements. i benchmarked the two a few years ago and it's surprising the difference it makes in blocks. good stuff
  • @-TerraPixl-
    Incredible! That fact that we did this with only 372 blocks!!! (If you have more or less you are doing something wrong.) -- =Tips for anyone following this tutorial= -- - MOST IMPORTANTLY : Make sure that your variable names are matching. Putting a variable in the wrong place can mess everything up. - Make ABSOLUTE SURE that your variables are set when shown as set, and change when they are shown as change. DO NOT mix these!! - Of all else, make sure to do this: If it's getting late, come back and pick it up tomorrow. There have been times when I couldn't find the problem, but getting a good night of rest gave me a HUGE boost of energy in the morning and I almost immediately solved the problem.
  • @Quake_129
    When the video came out a saw it only had 12 likes but now 300 and its now your second popular video also you only had 700 subscribers now you have 1k great job