Explore how you can build your own online games using JavaScript
Key Features
- Get to grips with the concepts of JavaScript
- Learn the elements of game design needed to create a fully functional game
- Get ready to create five interactive web games using JavaScript
Book 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.
All resources and code files to the course are placed here: https://github.com/PacktPublishing/Web-Games-with-JavaScript---Create-your-own-5-Fun-Word-Games
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
Who this book is for
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.