Тёмный

How to Code a Tetris Game using HTML and javascript 

Jack Tech
Подписаться 5 тыс.
Просмотров 21 тыс.
50% 1

Source code: jackhetech.io?p=tetris-js
PLEASE NOTE: I made an update to the Rotate() function in the final source code that is not shown in the video to check if there will be a collision if the user tries to rotate a piece. Other than that, the code you'll be getting is the same as what's shown in the video.
► Follow me on Instagram: / jack_he_hd
► How I got an internship at Microsoft in 1st year university: www.youtube.com/watch?v=-7rJv...
► The book I am currently reading: amzn.to/2KsHeTq
► My low-budget camera: amzn.to/37PhFo9
###################################################################
Major: Computer Science
College: University of British Columbia

Хобби

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

 

2 дек 2020

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 19   
@PedroTechnologies
@PedroTechnologies 3 года назад
Awesome project!
@JackHeTech
@JackHeTech 3 года назад
thanks bro!
@duckyboy53
@duckyboy53 2 года назад
do the shapes have to be done in any specific order? or can I do the slither shapes before the 2x2 square?
@dheerajsharma1986
@dheerajsharma1986 2 года назад
hey ! if we want to slide the pieces left or right when it touches the ground, how to do that ?
@alfa_0017
@alfa_0017 5 месяцев назад
break a leg! you are the best
@brayanviera6132
@brayanviera6132 2 года назад
no joke better than the real tetris
@nirmalapusparatna5169
@nirmalapusparatna5169 2 года назад
Is it possible to add levels in the game?
@computerlearningbyargusaca5217
@computerlearningbyargusaca5217 3 года назад
🙏🙏Very nice .. 👍 thanks for the video 😍😍
@JackHeTech
@JackHeTech 3 года назад
thanks for the support!
@user-gl4bu1cr2y
@user-gl4bu1cr2y 3 года назад
I started to learn Javascript recently and have a question in your code. let newGameState = () => { } To me, it seems like a mixture of variable(because of ‘let’) declaration and function. Any explanation will be helpful to my self-study. ^^;
@mido_plays6553
@mido_plays6553 3 года назад
Its an arrow function look it up.
@johnjohns_channel
@johnjohns_channel 2 года назад
its an arrow function and he used "let" because he wanted the newGameState to change , you only use const to store results that will not change and let when they will change such an score etc. have fun learning javascript !!
@juneru2
@juneru2 Год назад
I learned that () => { is basically the same as function() {, so it's just a built-in function stored in a variable
@vincentiusx3781
@vincentiusx3781 Год назад
i already follow your code. But, when i want to open html with live server it only show "Score: 0". and i try to use terminal and i follow your step and error. i still confuse how to run the program...
@phrandomcatvideos
@phrandomcatvideos Год назад
If you run the debugger, you might missed something around your constants.js file which is BLOCK_SIDE_WIDTH
@fsxaircanada01
@fsxaircanada01 3 года назад
Speedrun time
@JackHeTech
@JackHeTech 3 года назад
haha one day I will keep it under 5 minutes
@TonyStack
@TonyStack 3 года назад
fIRST!
@brainbytes1794
@brainbytes1794 Год назад
huh
Далее
Making a Game in JavaScript with No Experience
5:49
Просмотров 780 тыс.
9.15: 2D Arrays in JavaScript - p5.js Tutorial
12:38
Просмотров 115 тыс.
How to Measure ANY Cliffs Height with a Rock
00:46
Просмотров 11 млн
Кто быстрее? (GTARP)
19:19
Просмотров 450 тыс.
I Melted Wood With Friction
8:44
Просмотров 707 тыс.
He Beat A Super Grandmaster In 9 Moves!!
6:13
Просмотров 27 тыс.
Programming a Tetris Game in C# - Full Guide
39:34
Просмотров 194 тыс.
Learn to Code a Tetris game in Python With Me
13:04
Просмотров 22 тыс.
Let's code Tetris Game in Python
9:08
Просмотров 71 тыс.
PERFECT CHESS!!!!!!!!!
21:21
Просмотров 205 тыс.
The Easiest Javascript Game Ever
8:34
Просмотров 955 тыс.
FABIANO SACRIFICES 2 ROOKS AND WINS IN 9 MOVES!
6:07
Просмотров 382 тыс.
Lady Plays Hide and Seek with Her Dog
0:23
Просмотров 26 млн