12 JavaScript Game Ideas

If you are into game development and you already have some basic JavaScript knowledge, then you are at the right place. This article collects some JavaScript game ideas with tutorials and source code included.

JavaScript Course

The following tutorials will help you learn more about building games in JavaScript, and give you some game ideas on what project to take on next. Let's start with the simpler, easier games to make, the ones that can be created entirely with vanilla JavaScript, then we will move on to more advanced stuff.


Vanilla JavaScript Game Ideas

The following game ideas can all be recreated using only vanilla JavaScript, but later on, we will also look at more complex ideas for which we can use a game framework. I will leave a link to the tutorial for every game idea, and you will also find links to the GitHub projects there.

Create a Memory Game

Starting with the most recent tutorial on Webtips, it covers how to create a memory game to improve your memory and your JavaScript skills. You will learn about how to flip cards, and how to interact with them. We will also see how to work with timers and game states.

How to Create a Memory Game in JavaScript

Create a Tic-Tac-Toe Game

Next, we have the classic tic-tac-toe game. In this tutorial, you can learn more about grids, event listeners, and working with a game state. Here you will see how to create turn-based games. The entire logic for the game will fit into less than 100 lines of code.

How to Recreate Tic-Tac-Toe in Vanilla JavaScript

Create a Snake Game from Checkboxes

Want to look into creating a snake game? This is made entirely with checkboxes and a radio button. In this project, you will learn a lot about working with arrays and manipulating DOM elements. We will also look into how to create a scoring system.

How I Made A Snake Game Out Of Checkboxes

Create Particle Effects

Want to create particle effects for a game? For this, you can use the canvas element. This tutorial is not a game on its own, but it teaches you a fundamental part of game development, how to create particle effects. This project will tackle this from the point of fireworks.

Learn How to Make Colorful Fireworks in JavaScript

Create a Rock, Paper, Scissors Game

The following 4 game ideas can be found on Youtube, as we have yet to create tutorials for these games on Webtips. The first one is rock, paper scissors, created by WebDevSimplied that you can play against your computer.

How To Code Rock Paper Scissors In JavaScript

Create a Quiz Game

Also created by the same channel, is a quiz game that teaches you what steps you need to take when building out JavaScript games, or any other project for that matter. It teaches you how to create a quiz game that you can later easily extend and customize.

Build A Quiz App With JavaScript

Create a Hangman

Building a hangman is a more complex project to take on, but you can learn a lot along the way. Generating buttons, randomization, and working with images. This tutorial is also available on youtube.

Vanilla JavaScript Hangman Game Tutorial

Create a Minesweeper

Looking for an even more complex game idea? Minesweeper it is then. Created by The Coding Train who is all about coding challenges, in this tutorial, you will learn how to work with cells, loops, arrays, shapes, and there will be some math involved too.

Vanilla JavaScript Hangman Game Tutorial

Create a Word Scramble

For the last vanilla JavaScript game idea, you can only find the source code on Codepen. This project takes on the challenge to create a word scramble game. Work with multiple difficulty levels, randomization, and event listeners for interaction.

Scrambled Word Game

Phaser Game Ideas

Now let's move to more advanced concepts. For the following 3 game ideas, we are going to use Phaser, a JavaScript Game Framework, to rebuild classic games, such as Atari's Breakout or Mario.

JavaScript Course

Remake Mario

Mario, first created in 1985 is now a classic platformer game. In this tutorial, you will learn about working with tiles: generating a world with tilemap, loading it into the game, and working with tilemap objects. You will also learn about animating sprites, camera movement, and particle effects. This tutorial is broken down into three parts.

How to Remake Mario in PhaserJS

Remake Chrome's Dino Game

Chrome's Dino comes online when you go offline. Just like Mario, this tutorial is also broken down into three parts due to its complexity. A lot of concepts are covered in this series starting from building out a game UI and generating game objects, all the way to handling game logic with timers.

How to Remake Chrome's Dino Game in PhaserJS

Create Atari's Breakout

Last but not least, in this tutorial, you will learn how you can recreate the famous Atari Breakout game, again with the help of Phaser. We will look at configuring the game, preloading assets, creating the world with physics, displaying texts, adding collision detection, and much more.

Building The Game Breakout Using JavaScript

Summary

Hope you found the right game idea for your next project. If you are looking for more JavaScript project ideas β€” not necessarily just game ideas β€” check out my 100 JavaScript project ideas with takeaways and resources such as designs and tutorials, so can only focus on coding. Thank you for reading through, happy coding!

100 JavaScript Project Ideas
Remove ads
Remove ads

πŸ“š Get access to exclusive content

Want to get access to exclusive content? Support webtips with the price of a coffee to get access to tips, checklists, cheatsheets, and much more. β˜•

Get access Support us
Remove ads Read more on
Remove ads
Remove ads
πŸŽ‰ Thank you for subscribing to our newsletter. x This site uses cookies We use cookies to understand visitors and create a better experience for you. By clicking on "Accept", you accept its use. To find out more, please see our privacy policy.