Code Tetris: JavaScript Tutorial for Beginners
Offered By: freeCodeCamp
Course Description
Overview
Dive into JavaScript fundamentals by building your own Tetris game from scratch in this beginner-friendly tutorial. Set up a project using the Atom code editor and command prompt tool, then progress through essential concepts including variables, arrays, functions, and DOM manipulation. Learn to draw Tetrominoes, implement game logic, handle user input, and create features like displaying the next piece and pausing the game. Explore important JavaScript methods such as forEach(), splice(), and concat(). By the end of this 1-2 hour hands-on tutorial, gain a solid foundation in JavaScript programming while creating a fun, interactive game.
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
Related Courses
Current Gen 3D Game Prop ProductionMichigan State University via Coursera Make an Action Bar in Unity Part 1 - Modular Action System
Coursera Project Network via Coursera Advanced Game Development Using PyGame
Coursera Project Network via Coursera بالتطبيق العملي C# تعلم أساسيات لغة
Coursera Project Network via Coursera Amazon GameLift Primer (Portuguese)
Amazon Web Services via AWS Skill Builder