Crazy Simple Raycasting E2 - 🎮 How to make awesome 3d games in Scratch

preview_player
Показать описание
How to make a simple 3d game (Raycaster) in Scratch. This is part 2 of a short tutorial and we actually create the raycaster. We'll cover projectiles, light rays, Godrays, Wide beam torches with shadows, 3d projection, lens correction, and two colour wall surfaces. I hope you are ready for some serious fun!

Don't forget to submit your projects to the studio linked below by commenting the project URL in the studio comments.

My tutorials are for all budding game & software developers using Code Blocks. Scratch On guys!

🚀 *Boost Your Creativity with Griffpatch*
The Griffpatch Academy will take you from "Gamer to Game Creator"

--------------Video Chapters--------------
0:00 Intro
0:30 Part 2 – Ray Casting
0:53 Firing a Simple Projectile
3:24 Move by 4 – why?
4:13 Don’t overlap the wall
5:13 Run Without Screen Refresh
6:01 Drawing a Ray with the Pen Extension
7:38 Laser Beam
8:27 Flash Light
9:38 Field of View
12:07 3d projection using raycasting
13:49 Coding our first 3d Raycaster
17:35 Hide the Level Map
18:07 Vertical Line Spacing & Resolution
21:20 Depth Shading the 3d Level
22:51 Fix Fisheye Lensing Effect
25:43 Horizon, Floor and Ceiling
27:41 Improving Jitter
29:30 Shaded Walls
34:16 Outro
Рекомендации по теме
Комментарии
Автор

I remember looking at griffpatch’s projects on scratch as a kid and being amazed. Now, when I understand everything happening it’s even more amazing

puzzLEGO
Автор

I'm still amazed that a project that uses the touching block can render something complex like this in real time, but it's impressive definitely.

EpicVideos
Автор

As I said on the last episode, this has so much potential!! I think I'll try implementing a grid list system to let myself have more control over colour, and possibly create a level editor. This has genuinely been the best tutorial series I've ever watched, and I can't wait to see what the community creates with it. Keep Scratching, y'all!

chipmnk
Автор

I can already see so many games on scratch when they find this amazing tutorial... Absolutely Awesome!

DDP-Gaming
Автор

I'm not even using this as a tutorial, I just love how this guy does their magic

duckcatthequrugosk
Автор

I started to take Scratch lessons like 1 month ago, and these tutorials will help in the Scratch classes. I love your tutorials!

ItsADG
Автор

I used raycasting for a platforming game to prevent the player from standing up after crawling if something is right above them. This really helped me out with it

thesammurairat
Автор

Here's an extra tip to make a nice looking raycaster. Under the "Single Ray" block, you can go down to the "set pen brightness block" and place a "change pen color by" block under it. place ( distance / 20 ) inside, and it will make it so the farther away the wall is the deeper of a color it will be

kirbowaffle
Автор

Tip for decreasing corner flickering: Make player forward and backward velocity a multiple of the ray velocity.

karllospinto
Автор

So cool! I love how you not only show us how to make it but you also show how it WORKS!! You are so cool and now I understand actually how this works!

Gacha_Snobby
Автор

the ray casting makes me think of a top-down view games where you are sneaking into a place and an ai guard has a flash light and if you touch in the light you get caught! also ty for making these tutorials! they are really helpful :D

Unknown-jmix
Автор

Awesome video, imagine instead of using level sprite you used your grid based list! Add maze generation on top of that! Man, lots of great ideas here...

funut
Автор

I'm impressed how scratch can make these things, i thought it was more limited, but your tutorials proved me wrong, keep it going!

VSpook
Автор

12:06 this raycasting is great, it could be great to use for enemy visions, to make stealth games

Davi-zolu
Автор

coming back to these tutorials years later as a game dev is insane, I understand everything now!

thecringeslayer
Автор

I have been waiting for this part for a while now, and I am definitely not disappointed! This tutorial is leagues better than the Scratch Wiki one in my opinion :)

lakyk
Автор

Thank you Griffpatch for releasing Part 2! I was just making a 3D game, you helped me learn 3D in Scratch

BJIADUS
Автор

This is a note for people who are having this problem: I had the issue where my wall colors would show up a little bit on the wrong walls (some walls were 2 colors) to fix this just save the project and refresh Scratch and it should work fine :D

RepressedButton
Автор

Incredible tutorial. Honestly great for a COMPLETE beginner like me. I don't mind starting from scratch (heh) and working my way up. I always wondered how these scratch raycasters worked. I just made it and i'm still so confused lol.

mortimermouse
Автор

Hey man, I can't express how thankful I truly am. You are an amazing person making all these tutorials for people, so we can all learn how to make wonderful games! I have told you I think in the first video that I am going to make a game. Well because of you that game that I have always wanted to make is now a reality :D You deserve many more subscribers!

Wondercool