Video description
This is a full-practical course to learn how to make online games using JavaScript. First, you will learn to create a word scramble game where the user has to solve the scrambled word with as few wrong guesses as possible. Here, you will learn how to load dynamic word lists to create an interactive experience. Then you will learn to create a word decode game where the user has to solve a phrase using the number codes. Here, you will learn how to associate every letter with a number and dynamically load words and phrases. Your third game will be a hangman game where the user has to guess the hidden phrases by clicking the available letters. Here, you will use JavaScript conditions to check the guesses made by the user. Next, you will learn to build a word search game to understand how to create a fully functional word search that fills the dynamic grid automatically with as many words as possible. Finally, you will build your last game, a simple quiz game that gets dynamically generated with JavaScript and creates all the Document Object Model (DOM) elements and interactions depending on the JSON data.
By the end of this course, you will have the skills and confidence to build your own web games in JavaScript.
What You Will Learn
- Find out how to set up and prepare game-board
- Create a dynamic and flexible game to play
- Use Array methods, such as a map, to shorten the code
- Discover techniques to add and update player score
- Create interactive player elements with JavaScript Document Object Model (DOM) elements
- Test and debug the games
Audience
This course is for game designers, game developers, Java programmers, coders, who wants to learn how to make web games in JavaScript. A basic understanding of HTML, CSS, and JavaScript is needed to get started with this course.
About The Author
Laurence Svekis: Laurence Svekis is an experienced web application developer. He has worked on multiple enterprise-level applications, hundreds of websites, business solutions, and many unique and innovative web applications. He has expertise in HTML, CSS, JavaScript, jQuery, Bootstrap, PHP, and MySQL and is also passionate about web technologies, web application development, programming, and online marketing with a strong focus on social media and SEO. He is always willing to help his students experience what technology has to offer and looks forward to sharing his knowledge and experiences with the world.
Table of contents
- Chapter 1 : Word Game Introduction
-
Chapter 2 : Creating a Word Scramble Game Using JavaScript
- Introduction to the Word Scramble Game from Scratch
- Setting up and Preparing your Game Environment Using HTML and Cascading Style Sheets (CSS)
- Setting up Game Values
- Adding and Setting up the Word Game
- Scrambling Letters with JavaScript Random Array values
- Updating and Adding Content to Web Pages
- Counting Letters in a String with JavaScript Letter Counter
- Adding Scoring and Gameplay to your Game with JavaScript
- Final Scrambler Game Tweaks
- Reviewing the Scramble Letters Game
- Adding a Dynamic Word List from Google Sheets to your Game
- Selecting Multiple Word Lists from Dynamic Content
- Gameplay Bug Fixes List.
-
Chapter 3 : Uncovering the Secret Words Using JavaScript Number Values
- Introduction to the Secret Words Number Decoder Game Using JavaScript
- Setting up a Game Board
- Creating Interaction for the Player
- Setting up Gameplay and Setting Coded Values
- Providing the Player Messages Output Code
- Using Array Methods
- Making a JavaScript Word Decoder
- Setting up and Starting the Game Setup
- Game Flow
- Creating Player Interaction Inputs
- Adjusting and Tweaking the Game
- Setting up the Winner Game
- Debugging and Adding Final Game Tweaks and Improvements
- Conclusion to Number to Letters Game
- Reviewing the Code for the Game
-
Chapter 4 : Hangman Word Guessing Game from Scratch Using JavaScript
- Introduction to the JavaScript Hangman Game
- Setting up JavaScript Hangman Game Board
- Launching Application Content when Document Object Model (DOM) loads the DomContentLoaded Event
- Creating a Gameplay in JavaScript.
- Creating a Game Start and the Game Setup
- Setting up and Building Game Build Player Letters
- Checking the Correct Guess
- Updating the Player Elements and the Document Object Model (DOM) Values
- Adding Score and Player Score Conditions
- Setting Conditions for Winning the Game
- Final Code Review
-
Chapter 5 : JavaScript Word Search Game from Scratch
- Creating a Dynamic JavaScript Word Search Game from Scratch
- Setting up a Word Search Board with JavaScript
- Adding Game Elements to a Page Using the document.createElement() Method
- Generating Game Values and Setting up the Grid
- Adding Words to the Grid for the JavaScript Word Search Game
- Applying Game Logic in JavaScript to Check for Existing Letters
- Adding Words Vertically to the Word Search Grid
- Filling Game Letters Automatically to Populate and Build the Word Search Board
- Adding a Player Word List to Guide the Player
- JavaScript Game Review with Game Tweaks and Adjustments
- Adding Player Experience
- Applying Win Conditions
- JavaScript Word Search Game - Final Game Tweaks
- Final Word Search Game - Code Review and Explanations
-
Chapter 6 : Creating a Dynamic Quiz with JavaScript JSON Data
- Creating Dynamic Data for the JavaScript Quiz
- Setting up Quiz Files and Source HTML Setup Development Environment Files
- Creating a JSON Data File for your Quiz Using Ajax to Fetch JSON Data
- Creating Quiz Questions within the JSON file for the JavaScript Quiz Game
- Using JavaScript to Generate and Show questions to the Player
- Showing Quiz Questions with JavaScript
- Adding Event Listeners to the Game
- Moving to the Next Question
- Adding Scoring for Quiz Game
- Final Quiz Game Tweaks
Product information
- Title: Web Games with JavaScript - Create Your Own 5 Fun Word Games
- Author(s):
- Release date: December 2020
- Publisher(s): Packt Publishing
- ISBN: 9781801078429
You might also like
book
The Advanced Game Developer's Toolkit: Create Amazing Web-based Games with JavaScript and HTML5
Master the most important skills and techniques you need to know for professional HTML5 and JavaScript …
book
HTML5 Game Programming with enchant.js
HTML5 Game Programming with enchant.js gives first-time programmers of all ages the tools to turn their …
book
SFML Game Development
If you’ve got a firm grasp of C++ with a secret hankering to create a great …
book
Procedural Content Generation for C++ Game Development
Get to know techniques and approaches to procedurally generate game content in C++ using Simple and …