Dart Project - Building a Client Side Tetris Game - Part One

preview_player
Показать описание
In this video, we setup the model for a client based tetris game in Dart. This includes building the different pieces and a generalized set of classes.

Support the Channel and Join Patreon:

Dontate:
ETH: 0x03247265dd5242605bD2FA3c40fb3b70d9e3D685
Cardano: addr1q9auccwrr9ws8qdyv45f4qwsx76pfmld4zapks89sakq94ay0xmle73y0r8ruwd0zslls4eglf98lghru7ywv56cedysk7ftjt

Рекомендации по теме
Комментарии
Автор

Tensor, thanks so much for your tutorials. They are instrumental in my development. So many classes have obtuse or irrelevent examples to teach principles that leave me a little lacking in the purposefulness of the framework or structure. Your teaching is really remarkable.


Two items related to this: if you're using intellij (as I am), you now just create a new dart project and choose the web template. The stagehand is built in and web dev is a template option. As a very-newbie, that took me a little to unwind.


Secondly, your S and Z shape descriptions (==) are the reverse of what they are creating. You have them backwards-ly described to what they really create. I only point that out for people who are like me, and really grind to understand fully what is being described, and I got stuck trying to understand how the S and Z shapes would be created how you had them depicted with the = marks.


==
== is the green


==
== is the red

bryanhunsberger
Автор

Business Logic is what many UI Developers miss and such tutorials are a boon. There is very few content on Server SIde Dart and it would be lovely if you make some videos on that

philosophia
Автор

The universal rotation method blew up my mind.

Did you come up with the algo of rotating tiles by yourself or you Googled it?

If I were solving that problem I would make a rotation method for each type of block I suppose... :(

kirill
Автор

Again great to watch, how something is born!
Could it be, that you mixed up the Z and S in the end (the y-"-1"s as well as the tiles that should be left/right depending on the row)?

RobertWildling
Автор

brother, can you recommend me what to use instead of stagehand because it is not available now on internet.

dramaWonders
Автор

Thanks for the great tutorial, but I am having some problems while I wanna pub activate stagehand globally. It says the directory pub installed executables into is not on my path and tells me to add that directory to my environment variable. I did, but it just doesn't work. Could you please help me?

khw
Автор

thanks for the great i may ask, i keep getting errors when creating the list of tiles at this point : List<Tile> tiles = List<Tile>(4); and also in blocks.dart the class Block is being marked as an undefined anyone know why?

ndyabagyehenry
Автор

I'm not very used to object oriented programming, is there an advantage of creating each block type as it's own class instead of just instantiating the Block class?

Israel
Автор

hi tensor, thanks for this tutorial,
i have a question about how we can access to this game
from another machine in the some network !!

hellomerdstn