Let's make 2048 using JavaScript, HTML and CSS! No Canvas required!
In this walkthrough, we make the very popular game 2048 in JavaScript, HTML and CSS! No canvas required! (Now with more accurate subtitles for programmers)
Rules of 2048:
2048 is played on a 4×4 grid, with numbered tiles that slide smoothly when a player moves them using the four arrow keys. Each time you slide, a new tile will randomly appear in an empty spot on the board. Tiles slide as far as possible in the chosen direction until they are stopped by either another tile or the edge of the grid. If two tiles of the same number collide while moving, they will merge into a tile with the total value of the two tiles that collided. The resulting tile cannot merge with another tile again in the same move.
Tools and Software I used in this video:
TabNine By Codota: https://bit.ly/Codota
VSCode: https://bit.ly/VSCode-Editor
By creating this popular game we will learn the following javaScript Methods:
- querySelector()
- getElementById()
- createElement()
- appendChild()
- push()
- Math.floor()
- Math.random()
- length
- innerHTML
- parseInt()
- filter()
- Array()
- fill()
- concat()
- keyCode
- addEventListener()
- removeEventListener()
- setTimeout()
- clearInterval()
- setInterval()
If you did like this video, please do Like and Subscribe so I know to make others like this!
___
⭐ New to code and none of this is making sense? Watch my '12hr+ YouTube Coding Bootcamp' in which you will learn HMTL,CSS and JavaScript Fundamentals completely from scratch. It's on my channel and its 100% free.
⭐ In most videos I use Tabnine as my A.I autocompletion tool. You can download it for free here: http://bit.ly/tabnine-top-tool
⭐ You can get a blockchain domain with my affiliate link here: http://bit.ly/get-a-crypto-domain
⭐ If you would like to buy me a coffee, well thank you very much that is mega kind! : https://www.buymeacoffee.com/aniakubow
⭐ Sign up for weekly coding tips from my newsletter partnership: https://bit.ly/JS-tips
You can also find me on:
Twitter: https://twitter.com/ania_kubow
Instagram: https://instagram.com/aniakubow
#codingbootcamp #coding
Видео Let's make 2048 using JavaScript, HTML and CSS! No Canvas required! канала Code with Ania Kubów
Rules of 2048:
2048 is played on a 4×4 grid, with numbered tiles that slide smoothly when a player moves them using the four arrow keys. Each time you slide, a new tile will randomly appear in an empty spot on the board. Tiles slide as far as possible in the chosen direction until they are stopped by either another tile or the edge of the grid. If two tiles of the same number collide while moving, they will merge into a tile with the total value of the two tiles that collided. The resulting tile cannot merge with another tile again in the same move.
Tools and Software I used in this video:
TabNine By Codota: https://bit.ly/Codota
VSCode: https://bit.ly/VSCode-Editor
By creating this popular game we will learn the following javaScript Methods:
- querySelector()
- getElementById()
- createElement()
- appendChild()
- push()
- Math.floor()
- Math.random()
- length
- innerHTML
- parseInt()
- filter()
- Array()
- fill()
- concat()
- keyCode
- addEventListener()
- removeEventListener()
- setTimeout()
- clearInterval()
- setInterval()
If you did like this video, please do Like and Subscribe so I know to make others like this!
___
⭐ New to code and none of this is making sense? Watch my '12hr+ YouTube Coding Bootcamp' in which you will learn HMTL,CSS and JavaScript Fundamentals completely from scratch. It's on my channel and its 100% free.
⭐ In most videos I use Tabnine as my A.I autocompletion tool. You can download it for free here: http://bit.ly/tabnine-top-tool
⭐ You can get a blockchain domain with my affiliate link here: http://bit.ly/get-a-crypto-domain
⭐ If you would like to buy me a coffee, well thank you very much that is mega kind! : https://www.buymeacoffee.com/aniakubow
⭐ Sign up for weekly coding tips from my newsletter partnership: https://bit.ly/JS-tips
You can also find me on:
Twitter: https://twitter.com/ania_kubow
Instagram: https://instagram.com/aniakubow
#codingbootcamp #coding
Видео Let's make 2048 using JavaScript, HTML and CSS! No Canvas required! канала Code with Ania Kubów
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Callbacks in JavaScript Explained!Coding Challenge #94.1: 2048 - Part 1EventListeners explained in 5 MINUTESBuild your own CANDY CRUSH using JavaScript, HTML and CSS | Ania KubowCode 2048 using JavascriptI built an AirBnB clone with structured content! Using Sanity.io and Next.jsHow to create your own 2048 game in C++2048 Game in React - Animated Version - Game Development in ReactBuild a Responsive Online Portfolio from scratch!Coding Challenge #139: Calculating Digits of Pi with CollisionsJump and Slide in JavaScriptHow to hide your API keys SAFELY when using ReactHow To Code The Snake Game In JavascriptBATTLESHIPS in JavaScriptWrite a Unit Test for JavaScript (super simple!)CSS Explained #ShortsMemory game in Javascript | Tutorial | How ToHow to convert a Figma Design System into Vue components with a single line of codeHTML and CSS - Lecture 0 - CS50's Web Programming with Python and JavaScript 2020