ASMR Coding: Tetris Game with JavaScript & Canvas ๐ŸŽฎ

Relax with this no-talking ASMR coding session creating a Tetris game using JavaScript and HTML Canvas. Enjoy the soothing vibes!

ASMR Coding: Tetris Game with JavaScript & Canvas ๐ŸŽฎ
Code Fiction
705.7K views โ€ข Jun 23, 2022
ASMR Coding: Tetris Game with JavaScript & Canvas ๐ŸŽฎ

About this video

Hello my dear coders,
I made a tetris game with javascript and html canvas. Hope you enjoy it ๐ŸŽ‰๐ŸŽ‰
My twitter account: twitter.com/gulnaroglus
You can play the game on: servetg.com/tetris
Enjoy! ๐ŸŽ‰๐ŸŽ‰

๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป
Source code : https://github.com/tarantino07/tetris-js
Live a star on github, if you enjoy!
๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ
All the products in this video

โŒจ๏ธ Keyboard: IQUnix OG80 Wormhole TTC ACE switches and Costar Stabilizers (5% discount)
https://iqunix.store/servetgulnaroglu

๐Ÿ–ฑ๏ธ Microsoft Bluetooth Mouse
https://amzn.to/3UFgHl5

๐Ÿ–ฅ๏ธ Monitor ASUS VA24DQ 23.8โ€ Monitor, 1080P Full HD, 75Hz
https://amzn.to/3BB5ppa

๐Ÿ’ป 2021 Apple MacBook Pro (14", Chip Apple M1 Pro con CPU 10-core e GPU 16โ€‘core, 16GB RAM, 1TB SSD)
https://amzn.to/3DHAKJn

๐ŸŽค Rode NTG4+ Shotgun Microphone
https://amzn.to/3S4pD1B
๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿ“ฆ


00:00 Showing rotations.png
00:22 Preparing html file
01:28 Running live-server
01:58 Coding tetris.js
02:10 Tetris class
03:36 Constants
04:26 Adding img tag
05:29 Array of all tetris shapes
08:57 Variables
09:37 gameLoop()
10:51 reset()
12:52 draw()
13:55 drawBackground()
16:50 drawCurrentTetris()
20:40 Solving a bug
21:58 First drawing
22:41 checkBottom()
25:28 First fall down
26:17 update() continued
28:30 drawSquares()
31:33 Adding a keydown listener
33:12 moveBottom()
33:57 moveLeft()
34:30 moveRight()
35:40 Solving if bug
36:16 changeRotation()
40:06 checkLeft()
42:09 checkRight()
43:00 checkRotation() continued
45:36 deleteCompleteRows()
49:41 nextShapeCanvas
51:00 drawNextShape()
53:42 scoreCanvas
56:23 Solving a bug
59:21 Copying replay svg
01:00:00 Restart Button
01:03:44 drawGameOver()
01:06:49 Done

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

705.7K

Likes

13.3K

Duration

01:08:40

Published

Jun 23, 2022

User Reviews

4.8
(141)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.