i aint even gonna pretend i can understand this at that speed
@divine2037 ай бұрын
Lol, u can try running the source code, makes more sense when you see it in action
@HerrDoktorWeberMD9 ай бұрын
been seeing a whole bunch of "tetris from scratch" videos in my feed lately, this is an awesome exercise for programming, especially if you wanna learn to make games from scratch.
@divine2039 ай бұрын
Agreed. 💯
@clarisrichter79668 ай бұрын
I've made countless grid based puzzle games over the past few years, but I've never really paused for a second to figure out how Tetris would be built. This video literally summed it up perfectly in 3 minutes.
@Freeze-22229 ай бұрын
This is the most chaotic coding video I have ever seen lmao.
@bluetoad079 күн бұрын
i am learning c currently, as well as how to make a game without an engine. i thought tetris would be a great exercise, and this video is perfect for giving me a rough idea of what i should be doing without telling me exactly what to write. thank you!!
@hd-bild15137 ай бұрын
This video summaries more or less half of my first ever programming course at uni lol
@gaargant9 ай бұрын
guy makes god tier quality videos
@GameCookDev9 ай бұрын
I see you've used the gerarra hea at the end of the video, amazing😂
@divine2039 ай бұрын
😅 Thanx for letting me borrow it
@stickmanland9 ай бұрын
Underrated channel. 794 subs? lemme change that!
@divine2039 ай бұрын
Thanks a bunch ♥️
@nakcy9 ай бұрын
quality content
@zervidas29 күн бұрын
Why not try p5js
@divine20329 күн бұрын
i have actually, its a great library, simplifies most of the stuff canvas does. I guess its just more satisfying to me to write in proper canvas, perhaps to flex the "from scratch" badge :)
@PaulMountney9 ай бұрын
Ok, now for those of us like myself who cannot code at lightning speed, please make another where we can actually follow along. 😂
@divine2039 ай бұрын
Got it. I'll make the next one twice as fast
@Rector-ku5no8 ай бұрын
I did in 1 second
@netking76725 күн бұрын
subbed
@Exotic694209 ай бұрын
pro
@imaadhaq5409 ай бұрын
2:34 why else if spam
@mebestupid71349 ай бұрын
The processing time difference between if and switch statements is pretty much nonexistant when you're using 7 conditions
@christianchung94129 ай бұрын
why braindead anti else if spam
@imaadhaq5409 ай бұрын
@@christianchung9412 I say it once!
@imaadhaq5409 ай бұрын
@@mebestupid7134 He already has the data stored inside the object and is literally just using the statements to index. neither an if nor a switch would be optimal. It is faster and shorter to just return this.pieces[type] or to just use that instead of having a function
@divine2039 ай бұрын
@@imaadhaq540 lol...funny enof until like a day ago, I didn't know accessing object properties using a variable as a key, was actually a thing in JS. Your right `return this.pieces[type]` is a more concise way to do it.