Тёмный

I tried to make Tetris in Scratch 

Xenon Neko
Подписаться 8 тыс.
Просмотров 101 тыс.
50% 1

It's here if you want to try it:
scratch.mit.edu/projects/9946...
Music used:
"Inevitable" by Diamond Ortiz
"Marty Gots a Plan" by Kevin MacLeod
"Monkeys Spinning Monkeys" by Kevin MacLeod
"File Select" from Super Mario 64
"The Builder" by Kevin MacLeod
"Sneaky Adventure" by Kevin MacLeod

Игры

Опубликовано:

 

18 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 281   
@aaron.s1531
@aaron.s1531 2 месяца назад
In my computer class, im making an inscryption style card game. Scratch is a funny little thing.
@funkymoss
@funkymoss 2 месяца назад
i love inscryption!! can you give me an update when you release it?
@aaron.s1531
@aaron.s1531 2 месяца назад
@@funkymoss sure man!
@aaron.s1531
@aaron.s1531 Месяц назад
@@funkymossIts done enough for what I need now lol, my account name is this_is_a_name_yes Its called Performance task (inscryption style card game) Note: its INSPIRED by inscryption, i did NOT do a good job modeling after it lmao. Other note: Don’t speak with the book, it might get ideas… It will likely receive updates, as there are only 10 cards, half yours, half not.
@parali30
@parali30 24 дня назад
​@@funkymossi hope he didnt forgor
@Tylerthedestroyerr
@Tylerthedestroyerr 11 дней назад
@@parali30he forgor
@idzwakey8737
@idzwakey8737 2 месяца назад
4:26 could of used the set rotation style block and changed it to dont rotate
@Upside-out
@Upside-out Месяц назад
I was about to say that
@gamezboi_
@gamezboi_ Месяц назад
"could of"
@Siuozl
@Siuozl Месяц назад
EXACTLY
@YourLocalGrammarPolice
@YourLocalGrammarPolice 22 дня назад
Could ‘of’ used change x by and change y by
@Siuozl
@Siuozl 21 день назад
@@YourLocalGrammarPolice nah u can’t cuz that’s not what he’s doin
@alexside5153
@alexside5153 Месяц назад
I love this video, and how it explains how scratch works. Most youtubers just try to make fun of it and say "How limited it is" but you described it very well in a way that makes it seem more like a game engine, which is what it is. Even if it is for kids, it does it's job very well, and i have been using scratch for years with no issues.
@XenonNeko
@XenonNeko Месяц назад
Thank you!
@ego-lay_atman-bay
@ego-lay_atman-bay 29 дней назад
I have been using scratch for many years, and love it so much, but I still don't say it's a game engine. It's way more inline with regular programming than a game engine. A game engine usually takes care of physics and more, but scratch just gives you the basic tools. Scratch does have moving in a direction, but that's already a common programming concept, turtle graphics.
@PersonOverHeaven
@PersonOverHeaven 2 месяца назад
2 words USE CLONE
@XenonNeko
@XenonNeko 2 месяца назад
I personally feel that stamping is more efficient for tiles on a grid
@PersonOverHeaven
@PersonOverHeaven 2 месяца назад
@@XenonNekobut with clones are way less complicated and can use the if touching blocks in sensing and rotate using movement blocks instead of all that math stuff and code
@XenonNeko
@XenonNeko 2 месяца назад
​@@PersonOverHeaven True. I'm definitely not used to the way things are done in Scratch 😂
@flameofthephoenix8395
@flameofthephoenix8395 Месяц назад
@@XenonNeko Clones are easier, but not really the best for rendering, stamping is generally optimal, however clones do have their use case. Generally, clones are best used as extra data storage because if you make a list that is "For this sprite only" then clones will have their own separate version of the list that has different values, this is useful if you are storing a lot of data that can't fit on a regular list that only has 200,000 maximum items, though there is also a maximum of 300 clones so there is that to consider too.
@snezitko
@snezitko Месяц назад
​@@XenonNeko most things on grid that need collision detection are generally better with lists than using clones because the touching block is a lot slower than the check a thing in the list blocks.
@DSMusicParodies
@DSMusicParodies 2 месяца назад
btw, if u add multiple when flag clicked blocks, both run when flag clicks, allowing some scripts to be seperate from "wait" blocks in the forever loop of the other chain of blocks. this helps with things like snappy-ness.
@XenonNeko
@XenonNeko 2 месяца назад
Oh wow! That's neat!
@flameofthephoenix8395
@flameofthephoenix8395 Месяц назад
@@XenonNeko Additionally you can use DaysSince2000 to create your own wait blocks which is a better alternative, and if you're worried that the wait blocks have more precise timing, they don't. Though, you'll have to multiply DaysSince2000 by 86,400 to get the value in seconds.
@ego-lay_atman-bay
@ego-lay_atman-bay 29 дней назад
Except you can run into sync issues. That's why many lot of scratch games use only 1 green flag clicked block (even griffpatch uses 1).
@lpinf
@lpinf Месяц назад
Just wanted to let you know, the forever loop isn't ONLY a forever loop, but it also yields for other "threads" once the end of the loop is reached (if you put multiple flag clicked blocks for example, those scripts would then get processing time), and automatically waits for the next frame. This means loops are capped to 30 fps by scratch itself, so you don't have to do any timing work ! The only way to prevent this is to create a function (define block) with the "run without screen refresh" option on.
@ego-lay_atman-bay
@ego-lay_atman-bay 29 дней назад
Well, scratch does cap it to 30 fps, but that doesn't mean lag can't happen. Using delta time is much better. Plus, this also caps the fps on turbowarp, which can run scratch projects at higher fps, as high as 256 (but usually just 60).
@lpinf
@lpinf 28 дней назад
@@ego-lay_atman-bay Delta time is obviously superior, and for that, the `days since 2000` block actually is pretty cool if you want multiple timers (to avoid using the `timer` value which can be used for stop detection). It can get really precise, being a floating point number ! For small projects though? you aren't gonna lag scratch much, so it's fine.
@breakdanc3
@breakdanc3 18 дней назад
I’ve always found that scratch runs on 32fps, but 23 on Firefox. Maybe it’s 24 because my fps project isn’t that good lol
@lpinf
@lpinf 12 дней назад
@@breakdanc3 I've had issues sometimes with broken FPS caps of 24 on Windows in some browsers :p
@breakdanc3
@breakdanc3 11 дней назад
@@lpinf Yeah. I switched my games to Google Chrome’s 32 fps, so it also works in the offline scratch program. I think most people use 32 fps for their games. I always used 23/24 until now.
@flameofthephoenix8395
@flameofthephoenix8395 Месяц назад
3:30 That is indeed one of the most useful blocks.
@Leognml
@Leognml 2 месяца назад
dude this is like your second time using scratch ever and your way better then me
@Eeeeeeeee75282
@Eeeeeeeee75282 2 месяца назад
that’s because he has coding experience in other coding softwares, Scratch is like an easier version of any other coding software
@Goofynaas204
@Goofynaas204 Месяц назад
This is a pretty good project! I was so happy when you switched to the delta time method.
@Lu9_ST
@Lu9_ST Месяц назад
the funny thing is, one of the sample projects that would COME with scratch (the very old 1.x versions for windows) was in fact a Tetris clone. It had levels and speed-up I think, but otherwise it looked far more boring visually, so I'll still say yours is better, lol (but also old Scratch had less to work with i.e. you couldn't create and define your own blocks/functions)
@gho9679
@gho9679 15 дней назад
I loved the vibes in this video. I couldn't follow along the actual makig process very well since I don't know much about programming or scratch, but it was still a great watch! Keep it up gamer
@muodyadept4447
@muodyadept4447 24 дня назад
I dont understand programming, and i have no idea why this vid popped up in my recommended. But this was fun to watch xD
@bloxking7407
@bloxking7407 Месяц назад
AWESOME!
@gaimnbro9337
@gaimnbro9337 Месяц назад
Good job! I've been using scratch for years...and I can't even fathom how to make Tetris
@fabiandoll1385
@fabiandoll1385 2 месяца назад
Bro you are making amazing content. Thats the First Video i have Seen of you, and i would have guessed that you Channel would be much bigger
@OmarEssawyGD
@OmarEssawyGD Месяц назад
for your first time making an actual project on scratch, you did good
@Redfishvr124
@Redfishvr124 Месяц назад
You are so underrated! It looks very good :)
@flameofthephoenix8395
@flameofthephoenix8395 Месяц назад
1:13 In my opinion, it's best not to use triangles, 3d rendering doesn't need triangles, any illusion will do, and bill-boarding is an illusion. But, there's more you can do, like if you want to render a 3d line you can project the two points onto the screen then put your 2d image in-between the two points, scale it to fit between the two points, and rotate it to match the slope of the line.
@kelppp_1234
@kelppp_1234 9 дней назад
As someone who spent their childhood making shity FNAF games on scratch my mind in BLOWN
@EktoAnim
@EktoAnim 2 месяца назад
4:43 there's a block in the motion tab that lets you set the visual rotation style to only left and right. It might also have a setting to stop visual rotation completely but i'm not sure
@XenonNeko
@XenonNeko 2 месяца назад
I wish I would have known about this sooner!
@iankim5395
@iankim5395 2 месяца назад
yes that is true
@ThePianoTutorialGuy
@ThePianoTutorialGuy 2 месяца назад
whats the song at this part
@XenonNeko
@XenonNeko 2 месяца назад
@@ThePianoTutorialGuy "File Select" from Super Mario 64
@ThePianoTutorialGuy
@ThePianoTutorialGuy 2 месяца назад
Thanks man
@flameofthephoenix8395
@flameofthephoenix8395 Месяц назад
3:15 With that nice black background it should make recoloring your sprites easy, to change the color of the sprite you set the color effect to double the value you want it to be, to get the saturation you set brightness effect to one hundred minus the value you want your saturation to be, and to get the brightness effect you set the ghost effect to one hundred minus the value you want for brightness. I may have gotten some of the mathematics wrong since I haven't needed to use this in a while, but that is the overall gist. Unfortunately using ghost effect for brightness makes it hard to then have actual ghost effect.
@mohammedzeyton
@mohammedzeyton 19 дней назад
im recreating mario 64 in scratch lol, but it was nice watching this haha. good job
@flameofthephoenix8395
@flameofthephoenix8395 Месяц назад
3:00 You can recolor with the color effect block, however getting the colors you actually want is tricky.
@ClaramayNivetta
@ClaramayNivetta 18 дней назад
i think it would've been cool to see the process behind implementing other game mechanics such as SRS, T-spin line clears, and back-to-back. you can most likely find more info about this by looking at tetris wikis and things, so i'll spare the details, though i still think it would be neat to see someone show the thought process behind programming those mechanics into the game
@oklyok
@oklyok 2 месяца назад
there's a block where you can turn the sprite technically but not visually
@jackcomas
@jackcomas 2 месяца назад
Do not rotate mode: exist This dude: I don’t care about losing that heart so I’m here to say that this comment have no intention of hating him, his work is pretty incredible to do in Scratch from scratch.
@haoyuzhang4626
@haoyuzhang4626 2 месяца назад
Yes, he’s not that good
@XenonNeko
@XenonNeko 2 месяца назад
Lol joke's on you I rehearted it (also thanks!)
@weezer1232
@weezer1232 6 дней назад
underrated as hell
@flameofthephoenix8395
@flameofthephoenix8395 Месяц назад
Alright, next I expect you'll be trying machine code, the best of all worlds, there will be no strange decisions from Unity, no weird block-based limitations, and a lot of time and effort spent.
@playd43
@playd43 2 месяца назад
Adding a score is easy, just add a score variable and increase it every time you clear a line, and also add a top score cloud variable or a leaderboard.
@XenonNeko
@XenonNeko 2 месяца назад
Definitely! Although I'd want the game to control a lot better before I felt right attaching scores to it.
@XenonNeko
@XenonNeko 2 месяца назад
Since I was already there, I went ahead and added score and levels and speed increase (No leaderboard yet, though).
@playd43
@playd43 2 месяца назад
@@XenonNeko nice :) this project is pretty cool btw
@XoGamer176
@XoGamer176 6 дней назад
thanks for the idea!
@arsen4k
@arsen4k 16 дней назад
14:30 cuz object wants to go beyond the screen, but scratch does not allow this and therefore moves the figure a little to the other side, but part of the figure remains behind the visible part ((for example, when a shape is rotated near the side of the screen, there is a chance that its coordinates will change, especially if they are J and L shapes and their long parts go beyond the screen)
@WolfGubbelmans
@WolfGubbelmans 2 месяца назад
4:40 YOU HAVE A BLOCK THAT CANCELS VISSABLE ROTATION
@XenonNeko
@XenonNeko 2 месяца назад
I found out too late
@debankanthegreat6096
@debankanthegreat6096 2 месяца назад
Amazing!
@ryanwoon3534
@ryanwoon3534 2 месяца назад
Awww yeaahhh!!! New video!!!
@thestormcrafter
@thestormcrafter 26 дней назад
Äh, you know that forever runs at 30 tps? Every loop in Scratch does that unless it takes too long to go through the loop.
@Max_Blaze2012
@Max_Blaze2012 12 дней назад
I love seeing game devs fumble around and code things they don't need to lol
@Wooolllyyy
@Wooolllyyy Месяц назад
You are now Griffpatch
@user-ru4bb2cg2c
@user-ru4bb2cg2c 2 месяца назад
ya know you are actually better than me at scratch... nice job
@just_mr_mikl
@just_mr_mikl Месяц назад
7:54 what a coincidence, scratch already runs at 30 frames per second.
@flameofthephoenix8395
@flameofthephoenix8395 Месяц назад
6:04 Oh wow, that looks interesting. If I remember correctly, I just stored a sheet that included every rotation and piece, but that might have been on Excel now that I think about it.
@flameofthephoenix8395
@flameofthephoenix8395 Месяц назад
7:57 Oh wow, that's a funny thing, you're clearly used to programming languages where it will simply crash if you don't have delay at the end of any loop that runs forever, however in Scratch it automatically is capped at 30 fps. Indeed, I believe that you unintentionally made a 15fps game with that wait block.
@DDAWG24657
@DDAWG24657 Месяц назад
Him: *Sub Boards* Scratch: *Don't Rotate*
@mohammedzeyton
@mohammedzeyton 19 дней назад
nah, he used lists, while using a game loop and a simple stamp render. so this isnt as simple as you expect lmao
@merkymerc
@merkymerc 24 дня назад
latin nerd here, tetris is a 3rd-declension noun meaning the plural would be tetrēs!
@cosinehd1608
@cosinehd1608 10 дней назад
dang it you stole my comment.
@Fibero-Fibero69_420
@Fibero-Fibero69_420 8 дней назад
...i say tetri
@merkymerc
@merkymerc 8 дней назад
@@Fibero-Fibero69_420 -ī is the second declension ending which is applied for nouns with -us, -em, or -um at the end of the nominative form. however, no one in real life cares enough to correct you so you can call it that if it’s more comfortable lol
@cosinehd1608
@cosinehd1608 8 дней назад
@@Fibero-Fibero69_420 an example would be avis, for which the plural would be aves. because "tetris" also ends in -is we could use avis, avis as an example and use tetres of course, tetris isn't a latin word so as long as people know what you mean it works!
@Cleacat
@Cleacat 11 дней назад
Wow very good you used alot of advanced grid system
@strawsquash
@strawsquash 21 день назад
This video is 10000x better cos of the crave gaming music
@strawsquash
@strawsquash 21 день назад
Not to say it’s bad otherwise. It was a great video
@hi_beemo1808
@hi_beemo1808 Месяц назад
you should consider implementing matrix in scratch when working with tiles on a set grid in makes things simpler
@ifeireiniogunduyile7316
@ifeireiniogunduyile7316 Месяц назад
YAAAAAAAAAAAY FINALLY SOMEONE WHO DOES SOMETHING I DO!
@intern_ranked_employee
@intern_ranked_employee 11 дней назад
YES, THE aeiou IS BACK
@username-ur6dq
@username-ur6dq 2 месяца назад
17:15 Here, he obviously means desmos
@Enderman_brewer
@Enderman_brewer 11 дней назад
Turn sprite rotation off so it looks the same, but the move (steps) command works
@MidoriMushrooms
@MidoriMushrooms 13 дней назад
So the thing about the "bag" is that getting 2 pieces in a row isn't actually a bug. It's part of tetris strategy, so it didn't need to be fixed. I thought it was weird to put effort into changing a fundamental part of tetris in a challenge about making "good enough" tetris...
@-SnowyBS-
@-SnowyBS- 2 месяца назад
Here before this is your top vid 🎉
@Starock10
@Starock10 2 месяца назад
I love Scratch!
@theunepicgrayscale
@theunepicgrayscale 14 дней назад
I almost forgot your channel existed. Sorry man?
@ego-lay_atman-bay
@ego-lay_atman-bay 29 дней назад
7:51 oh, by the way, scratch runs at 30 fps (unless you use turbowarp).
@anthonycannet1305
@anthonycannet1305 22 дня назад
13:04 I know that you can do whatever set of rules you want for your implementation of tetris but “fixing” that thing where you can get the same piece twice in a row because of how the bag system is set up is actually not something that needed to be fixed and you just made more work for yourself for something that didn’t feel right to you… getting 2 of the same piece in a row can let you chain 3 tetrises by holding an I piece and then randomly getting two I pieces in a row from the bag, which is relevant in the verses tetris games like tetris 99 or Puyo Puyo tetris 1&2.
@mateohunterwatts2271
@mateohunterwatts2271 Месяц назад
5:32 my brain had an idea with that heard, ''i piss''
@NescauCadeirante
@NescauCadeirante 2 месяца назад
Thank you for subtitles,i'am brazillian
@bucket-hb3td
@bucket-hb3td Месяц назад
i made a whole ping pong game in scratch when i was a 4th grader
@-Deni-vu2ky
@-Deni-vu2ky Месяц назад
[Funfact]: in scratch the [ Change [ Color ] by ( Number ) ] block doesn't work with Black/White sprites exactly why some people make the base sprite Red (mainly) or other colors!
@NoteCubes
@NoteCubes Месяц назад
🤯 My mind is broken right now
@FungchiuDuong
@FungchiuDuong 2 месяца назад
Clean
@DogSkipsStone
@DogSkipsStone Месяц назад
high contrast is the best mode (in my opinion)
@RobloxFilmsAndAnimations
@RobloxFilmsAndAnimations Месяц назад
idea: turn the blocks into scrath cat but its limbs being the little parts and the main bit/center being the face
@Z_E_B_O
@Z_E_B_O 19 дней назад
never heard the square piece being called o-piece lol. Anyway, really interesting, my idea for the shading would be to have the board, then the tetris fall down on the board and then have an additional third layer with only the shading, so when a tetris enters the board, the shading will always be on top. But I have never used scratch and you couldnt do cool animations so,...
@myithspa25
@myithspa25 2 месяца назад
4:40 may I introduce you to rotation styles?
@Hypernova386
@Hypernova386 2 месяца назад
As a man who has done this last year, I can confirm this man's pain
@alimicro812
@alimicro812 Месяц назад
3:13 the music transition here is crazy
@MSPaintOfficial
@MSPaintOfficial 2 месяца назад
it’s already hard enough to arrange a shape out of the blocks
@Scriptometry
@Scriptometry 7 дней назад
QUESTION: Would you be working more on Scratch even if you already know real-text-in-based programming? Just for fun!
@XenonNeko
@XenonNeko 7 дней назад
I don't have any plans to return to Scratch at the moment, no.
@jeffdadaggoYT
@jeffdadaggoYT Месяц назад
No rotating idea: just switch the sprite's rotation style to don't rotate it can still move as usual, but you don't have to worry about the game getting messed up because of a rotated block
@guigui0246
@guigui0246 Месяц назад
I really don't understand why they made the pen an extension in scratch 3 and not just a feature like in scratch 2
@smarty265
@smarty265 Месяц назад
banger video
@a6shot199
@a6shot199 2 месяца назад
2:55 it does, in fact work like that 😭
@XenonNeko
@XenonNeko 2 месяца назад
I must be missing something! All I could get the white sprite to look like was really pale versions of all the colors.
@_cfmca
@_cfmca 8 дней назад
Solid project and good way to go about it for what you were going for. Variable names are very clinical and make the video hard to follow at times. Also, for your line clearing script did you have that iterate per frame or per update?
@XenonNeko
@XenonNeko 8 дней назад
Thanks! Also, not sure what you mean by "iterate per frame or per update".
@_cfmca
@_cfmca 8 дней назад
@@XenonNeko Are you checking for a line every frame of the game, or only calling it when a tetromino gets placed
@XenonNeko
@XenonNeko 8 дней назад
@@_cfmca if I remember correctly, only when a tetromino is placed.
@Despatra
@Despatra 15 дней назад
FYI scratch already runs at 30 fps, by adding the wait block you either made it run at 15 or it did nothing
@XenonNeko
@XenonNeko 15 дней назад
I did eventually realize this after switching to delta-time later in the project. The delta-time always hovers around 0.03, which is 30 FPS.
@Joni.Sandy-DE
@Joni.Sandy-DE Месяц назад
Geometry dash players be like
@TheRazeYT
@TheRazeYT 15 дней назад
Didn't get the joke, but whatever. You meant about the cubes, right?
@Joni.Sandy-DE
@Joni.Sandy-DE 14 дней назад
@@TheRazeYT because like geometry dash is a 2D game and there are people making 3D levels
@obviousalexc
@obviousalexc 17 дней назад
Big L on the 3d earlier. But you did really good on tetris!
@Warpedd_forestnew
@Warpedd_forestnew Месяц назад
you forgot about the linux kernel in scratch
@happycolours8551
@happycolours8551 2 месяца назад
Uh oh, Tetris will murder you now
@XenonNeko
@XenonNeko 2 месяца назад
They're petty if they go after a Scratch project 🤣 I suppose we'll have to wait and see
@dudepudge2517
@dudepudge2517 2 месяца назад
What about coding all of the piece spins? How would that work?
@XenonNeko
@XenonNeko 2 месяца назад
Not sure
@user-xh1qo5bn7s
@user-xh1qo5bn7s Месяц назад
damn you are crazy good at making tetris and playing tetris did you use any tutorials in this video?
@XenonNeko
@XenonNeko Месяц назад
Not for this project in particular, no. But I have watched Griffpatch tutorials in the past, if that counts! And I watched those before I ever got into Scratch - for some reason.
@user-xh1qo5bn7s
@user-xh1qo5bn7s Месяц назад
damn you are really good@@XenonNeko
@RadioactiveBluePlatypus
@RadioactiveBluePlatypus 2 месяца назад
You know you can set the sprite to not visually rotate and only rotate in code right?
@XenonNeko
@XenonNeko 2 месяца назад
I did not! Oops
@mistalod
@mistalod Месяц назад
actually lemme try making tetris in scratch it seems fun
@slushyboy1212
@slushyboy1212 Месяц назад
1. scratch is 30fps 2. u dont need the wait in the forever. it will make it half speed
@HardcoreAxol
@HardcoreAxol 2 месяца назад
6:02 you made diagonal Tetris
@Swagpion
@Swagpion 2 месяца назад
13:03 its not a fix, its a change. Because that is standard bag system behavior.
@XenonNeko
@XenonNeko 2 месяца назад
Right. Should have clarified, It was just my personal preference
@XenonNeko
@XenonNeko 2 месяца назад
I added a toggle for that behavior while implementing feedback from other people.
@PenguinPlayz_
@PenguinPlayz_ 27 дней назад
Its Perfect...
@PiGuy06
@PiGuy06 Месяц назад
I'm making Tetris in Scratch right now. I'm "play testing" it more than I'm working on it 😅
@user-yj6wq4by1r
@user-yj6wq4by1r 13 дней назад
How to change the color of a block, set color in the looks category (very janky)
@phoebeevan
@phoebeevan 10 дней назад
I know someone uses clone but REAL programmers use the stamp block in scratch
@235x
@235x Месяц назад
4:50 scratch has a setting that stops a sprite from Visually rotating.
@snezitko
@snezitko Месяц назад
now that I think about it you didnt need to make a rotation system... you could have just made a list for example the L piece and then just going trough it so like the list would be like: (lets say that the grid is 3x3 ) (rotation right) 1: 000111001 (rotation down) 2: 010010110 (rotation left) 3: 100111000 (rotation up) 4: 011010010 1 = there is a block 0 = there is no block then you would just make it so that when you pressed left the place in the list would shift by -1, and if right the place in the list would shift by +1 which would completly delete the issue of coding the rotation.🧇
@fnf_pros
@fnf_pros 12 дней назад
So, he made a not so guideline Tetris game? But made a Classic Tetris game?
@SamiSaba2
@SamiSaba2 4 дня назад
4:39 just use “set rotation style to don’t rotate”
@Hawinzi
@Hawinzi 22 дня назад
Quick question. Why did you not just make each piece its own sprite? I feel like that would end up being all around easier.
@XenonNeko
@XenonNeko 22 дня назад
I'm not sure how that would be easier (but that might just be me. I'm not familiar with how things are usually done in Scratch). If you mean splitting the logic into different sprites, I would argue there's a lot of redundancy because the pieces have a lot of common functionality. If you mean making the pieces themselves different sprites, I'm not sure what to do in the case of line clears where pieces can get broken up. And as the board fills up, that sounds like a lot to keep track of. Either way, I find communicating information between sprites to be annoying (again that's just personal preference). If you're referring to something else entirely, please explain.
@_cfmca
@_cfmca 8 дней назад
I can not see in any way how that would be easier given that tetris is tile based
@concernedcommenter8258
@concernedcommenter8258 23 дня назад
Oh no- he used ALL of his code inside one sprite. Wow. Personally, I wouldve made each type of block its own sprite, and made the UI its own sprite, and make the collision its own sprite, and the white flash its own sprite. Yeah, lots of scratch is centered around making lots of simple pieces that you pull in when you need instead of coding them, and that’s really it.
@Boystefan13
@Boystefan13 4 дня назад
you know there are rotating styles right? because theres one style called Dont rotate. it doesnt show the rotation but still works as a normal rotation style
@purekayx
@purekayx 2 часа назад
BRO JUST USE THE ROTATION STYLE BLOCK 😭😭😭
@Holmen3055A
@Holmen3055A 2 месяца назад
Im making a massive game there
Далее
We Built the Internet in Minecraft
25:18
Просмотров 2,3 млн
Tetris, but the Pieces are Made out of Triangles
12:36
Просмотров 838 тыс.
Must-have gadget for every toilet! 🤩 #gadget
00:27
Проверил на логику певца L’one
00:17
How I Made a 3D Platformer in 2D Game Engine
21:23
Просмотров 427 тыс.
I'm Crashing Scratch (With yarn?)
7:07
Просмотров 4,6 тыс.
Cookie Clicker in Scratch But It Gets More Complex
12:26
I Made a Zero Player Game
12:30
Просмотров 10 млн
I Spent 2,000 Hours Using Scratch
13:59
Просмотров 498 тыс.
So I Coded Tetris in Minecraft...
14:57
Просмотров 7 млн
6 Developers make a Scratch Game Without Communicating
15:00
EVERY Super Mario Game Out of Bounds
1:44:24
Просмотров 648 тыс.
МАЙНКРАФТ АНИМЕ УДИВИТ ВАС
19:38