25 Amazing JavaScript Games (Some Fun And Inspiration)


JavaScript, with the rise of Ajax, is definitely a must-know-well for every web designer/developer.

Besides form controls, alerts & similar simple JavaScript usage, you can almost do anything with the help of JavaScript (& Canvas). Some samples are:

  • Drag’n drops
  • Animations
  • CSS manipulations, Ajax & more.

JavaScript Games
And there are JavaScript libraries which make them easier like jQuery, MooTools, Prototype, etc.

For any developer looking for advanced JS techniques, games are a real treasure.

You can easily see examples of animations, interactivity, smart solutions for browser related math functions & so.. And they are definitely a source of inspiration as you sometimes face with a feature that you never thought could be existed.

Also, this is the last month of a busy year & every web designer/developer deserves some fun : ).

So, here are 25 amazing (sometimes not the game itself but how beautifully it’s done) JavaScript games that you’ll love.


Bunny Hunt

Hunting JavaScript Game

A classic hunting game with an easy to play interface.

Make sure you check the source of the website to see how simply it is built with the power of XHTML, CSS & JavaScript.

JavaScript Library: none.


Ajax Game Travians

A character game (like Sims) where you’re a villager.

It is a multiplayer game & totally Ajaxed. You can move your character, communicate with other user & more.

JavaScript Library: xajax.

Digg Attack

Digg JavaScript Game

This is certainly a Web 2.0 game. It is a JavaScript / Canvas 2D Shooter using live data via the Digg API to spawn enemies.

All the images are rendered with Canvas in real-time.

JavaScript Library: none.

Invaders From Mars

JavaScript Shooter Game

A classic game & pretty amazing implementation.

Developer’s blog has lotf of information about the game & the code.

JavaScript Library: SoundManager2.


JavaScript Solitaire

Classic Solitaire game in JavaScript. All the source can be viewed & there are no server-side dynamics. It is totally a JS game, beautifully coded.

JavaScript Library: none.

Card Games

JavaScript Solitaire

A set of solitaire-like card games like freecell, yukon & more.

Background & deck image can be selected besides the game. There are very smooth JavaScript effects used.

JavaScript Library: YUI, MochiKit, PlotKit.

Jetris – JavaScript Tetris

JavaScript Tetris

A JavaScript version of tetris.

JavaScript Library: Game JS.


JavaScript PacMan

The game is pure JavaScript & XHTML. There is a nice use of CSS sprites (just check the bg images).

JavaScript Library: YUI.


JavaScript Bomberman

This was "once" my favorite game : ). 

It is possible to play the game against another player here.

JavaScript Library: MooTools & SoundManager2.


JavaScript Minesweeper

Just the same classic Minesweeper.

JavaScript Library: none.


Prototype JavaScript Game

A RPG engine written in Javascript that has items to be picked, monsters & more.

JavaScript Library: Prototype & Script.aculo.us.

Vox Imperium

JavaScript MultiPlayer Game

An Ajaxed multiplayer strategy game based on conquest, diplomacy & territorial control.

JavaScript Library: none.

Real World Racer

Google Map Game

Car racing on Google Maps at any destination you want.

JavaScript Library: none (Google Maps API).

DHTML Lemmings

JavaScript Lemmings

This is probably one of the most famous games ever.

It is just similar to the original one.

JavaScript Library: none.


JavaScript Battleship

Beautiful implementation of this classic game.

Ship are placed with drag’n drops, there is an Ajax activity at the background & it can be played multiplayer too.

JavaScript Library: Prototype, Script.aculo.us & SoundManager2.

Ajax Chinese Chess

Ajax Chinese Chess

The game works very smooth with the animations & sounds.

JavaScript Library: MooTools & SoundManager2.

DHTML Arkanoid

DHTML Arkanoid

Original arkanoid almost totally ported to JS.

You’ll be surprised when you see the effects of the bar, bonuses & more.

JavaScript Library: none.


JavaScript Brickslayer

The famous game but in JavaScript & XHTML (like the arkanoid above but simpler).

JavaScript Library: Prototype & SoundManager.


JavaScript Sudoku

As the game is totally related to Maths, there are serious equatitons at the background.

You can insert the numbers by clicking to the empty fields & activating the input.

JavaScript Library: none.

Video Poker

JavaScript Poker

A real video poker game with all the possibilities. Simply amazing.

JavaScript Library: none.


JavaScript Bejeweled

A JavaScript version of the popular Bejeweled.

Objects can be dragged/dropped & has nice animations.

JavaScript Library: MooTools.


JavaScript Space Game

This is again a classic shooter game that uses XHTML & JS.

JavaScript Library: SoundManager2.

JavaScript Super Mario Kart

JavaScript Super Mario Kart

An experimental Mario Kart-like game that uses the Canvas element.

It enables you to define the quality, render mode to test the performance.

JavaScript Library: none.


Ajax Poker

A multiplayer, Ajaxed poker game where you can play or watch a table.

JavaScript Library: GWT.

JavaScript Mario

JavaScript Mario

Super Mario in 14kb of JavaScript.

JavaScript Library: none.