Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

freeCodeCamp

Code Tetris: JavaScript Tutorial for Beginners

via freeCodeCamp

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
Projektbasiertes Video-Tutorial für Programmieranfänger, in dem Schritt für Schritt ein Tetris-Spiel im Browser entsteht. Behandelt werden Projekt-Setup, HTML- und CSS-Grundlagen, Variablen, Arrays, Funktionen und Arrow Functions mit forEach(), das Zeichnen der Tetrominos über classList.add(), Timer und Intervalle, Modulo zur Positionsbestimmung im Raster, Tastatur-Events und Keycodes, eine Vorschau des nächsten Tetrominos, Start- und Pause-Funktion sowie splice(), concat(), appendChild(), some() und innerHTML für Spielende und Farbgebung.

Syllabus

Introduction.
Setting up the project.
HTML Basics.
CSS Basics.
Explaining Variables.
Working with Arrays.
What exactly is a function?.
Arrow Functions and forEach().
Drawing Tetrominoes using classList.add().
Times and intervals.
Using Modulus to define our place on the grid .
Keycodes and events.
Choosing items from Arrays.
Displaying the ‘Next Up’ Tetromino.
Adding a start and pause game function..
Splice().
Splice(), concat() and appendChild().
Game over using some() and innerHTML.
Assigning colors to our Tetrominos.

Taught by

freeCodeCamp.org

Reviews

Start your review of Code Tetris: JavaScript Tutorial for Beginners

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.