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.

  1. Reply gumbah December 15, 2008 at 1:33 AM
  2. Reply Amazing Here December 15, 2008 at 4:46 AM

    nice post g8…thx !!!

  3. Reply niksan December 15, 2008 at 5:08 AM

    Thats a cool list, Thanks!

  4. Reply afrodream 'n' beaded sandals December 15, 2008 at 5:45 AM

    I thought javascript is just a simple language like html but here u prove me wrong what javascript can do. If you can code most of the games with it, then javascript is not a kid play.

    its a programming language on per with the like of unix or java

  5. Reply Anonymous Coward December 15, 2008 at 6:52 AM

    “its a programming language on per with the like of unix or java”

    Unix is not so much a programming language as it is an operating system.

    Slight difference between the two…

  6. Reply alexis bonte December 15, 2008 at 7:17 AM

    and don’t forget http://www.erepublik.com the first massively multiplayer social strategy game based on a mirror version of the real world.

  7. Reply HDMI December 15, 2008 at 7:42 AM

    Greate Work

  8. Reply Z D December 15, 2008 at 8:00 AM

    You should add Elusive Games to that list. They’re entire library of games is written in Javascript, (sound is in Flash).

  9. Reply kiran December 15, 2008 at 8:11 AM

    Very nice collection.Thank you.

  10. Reply Teylor Feliz December 15, 2008 at 11:25 AM

    Thank you for the list. I added you to my site!

  11. Reply Designer December 15, 2008 at 11:29 AM

    wow…… really coooooooool games

  12. Reply Alan December 15, 2008 at 11:54 AM

    I’ve been most impressed with the large collection of 2-player abstract games at http://googlegamecenter.com — all in JavaScript.

  13. Reply Games Now December 15, 2008 at 1:48 PM

    These are great … flash look out the web 2.0 stuff is here ! I’ve seen Mario Kart one …didn’t know about the others.
    Stumbled !

  14. Reply celsyum December 15, 2008 at 2:04 PM

    real shit – these games are so low

  15. Reply Online hry zdarma December 15, 2008 at 2:42 PM

    Great list of simply clever games …

  16. Reply Kai December 15, 2008 at 6:25 PM

    Nice games! You can add this pacman too:



  17. Reply anonymous December 15, 2008 at 6:38 PM

    Great list, another one is Multiplayer AJAX Sudoku over at http://www.sudokushootout.com


  18. Reply Denis December 15, 2008 at 6:40 PM

    No http://www.tinywarz.com ?

    That is an amazing example of what javascript/AJAX can do!

  19. Reply Jigsaw Break December 17, 2008 at 4:13 AM

    Jigsaw Break uses Scriptaculous for drag & drop. Also, has a mashup with Google Images and Flickr Photos APIs.

  20. Reply Marc December 17, 2008 at 10:01 AM

    Here’s a slot machine with sound:

  21. Reply Xaroth December 17, 2008 at 2:40 PM

    I’d also like to humbly submit PseudoQuest as an example of crazy things being done largely with JavaScript.


    It’s a casual MMORPG written largely with Prototype, Scriptaculous, AJAX, and DHTML on the front end. (PHP/MySQL drives the backend).

    Interesting bits include: realtime PvP combat, a spiffy windowing system, drag/drop quickbar, in-game chat, and a host of non-JS related features.

    It’s just me creating it, so I haven’t had time to polish it in IE – it’s best viewed in Firefox 3 or Opera 9.6.

    At any rate, I’d like to think it’s somewhat more technically interesting than video poker. ๐Ÿ˜‰

  22. Reply James Paige December 17, 2008 at 3:38 PM

    My cousin wrote these three games http://hamsterrepublic.com/js/ back in 1996, testing them with the Javascript implemntations on Netscape Navigator 3.0 and Internet Explorer 3.0… and they all still work great today in modern browsers.

  23. Reply Jhon Doe December 17, 2008 at 7:02 PM

    nice games Thx for post

  24. Reply gbt2908 December 18, 2008 at 10:43 AM

    http://jsmario.com.ar that mario rocks!

  25. Reply gbt2908 December 18, 2008 at 11:05 AM

    you can play with the arrows keys, “a” and “s” keys, also the viewport can be resized like a window (you can use CTRL too, or space in safari)

  26. Reply knuts December 19, 2008 at 8:19 PM

    Great list ! I have written an AJAX/CSS browser game as well, with soundmanager for sound. Its a multiplayer map conquest game.
    WMD Tank Battle http://wmdtb.com

  27. Reply koan December 20, 2008 at 4:38 AM

    And what about the great RPG Triglav?
    (works best in IE -what a shame- but it’s a great game)

  28. Reply Eric Miragila December 21, 2008 at 12:01 AM

    I would add Robert Schultz’s YUI-based World of Solitaire to this list.


    Fantastic game playing experience.


  29. Reply Robert Schultz December 22, 2008 at 8:54 AM

    @Eric, thanks for the mention ๐Ÿ™‚

    It’s already in the list though, as ‘Card Games’ ๐Ÿ™‚

  30. Reply Tommy Maintz January 14, 2009 at 7:19 PM

    Hey, thanks for the mention aswell!

    Just a side note. I only created GameJS and the Jetris game to check if I could create some kind of “port” from XNA to JS. There are much faster and better ways to create a tetris game in javascript probably, but they wouldnt be as elegant in code as mine is ๐Ÿ˜‰

    Also it was alot of fun doing so…

  31. Reply addictive games February 4, 2009 at 6:59 AM

    Thanks for these 25 cool games. I love it.

  32. Reply Tomasz Grajewski February 16, 2009 at 2:22 PM

    Hey, nice list of very good, quality games! Our studio developed lately a tetris clone in JavaScript. The game is called mBlocks, if you have some time, check it out: http://www.merixstudio.com/play/mblocks

  33. Reply BAE March 12, 2009 at 7:30 AM

    Nice information :-).

  34. Reply Mark April 30, 2009 at 4:01 PM

    OMG I can’t believe I found bomberman. I used to play in my video game a decade ago.

  35. Reply Dan July 5, 2009 at 2:52 AM

    A cool game that uses JavaScript is Queville (http://queville.com). It is a RPG with players allow to chat to each other, trade with each other, mine, smith, fish, cookie, combat, and other stuff. Also it has highscores.

    Fun game. It’s a 2D tile-based RPG.

  36. Reply Andrew August 22, 2009 at 1:13 PM

    this site is just AWESOME, were developing a site that uses games in order to help students study boring course material. Were hoping to make similar games but add a pop-up screen while they are racing that ask them a question about a given subject. Sure to post my content on this site. Thanks for the idea

  37. Reply David September 27, 2009 at 10:41 AM

    I recently finished a tactics RPG written in javascript (sound was with a Java applet). It’s a parody game called Shadow of Time 4: http://sot4.aerosphere-studios.com/ , and I also released the code as open source, so you can download the javascript and make other tactics games with it (includes a world builder).

  38. Reply mooph November 12, 2009 at 9:47 PM

    It is allowed to play the game on http://mooph.cz/index.php?fun&rts

  39. Reply dabrasco December 17, 2009 at 4:28 AM

    nice list, I will tell the admin at doxapolis.com to feature some of the games.

    by the way doxapolis is a great social game website, try it out.

  40. Reply Marketing Research January 12, 2010 at 1:52 AM

    WOW! Amazing and excellent post. !!! Just great keep the good work going. great articleโ€ฆ

  41. Reply rajesh January 20, 2010 at 4:35 AM

    nice list, you can add http://funmin.com site. I has many nice javascript games

  42. Reply fie February 19, 2010 at 3:17 AM
  43. Reply eric March 5, 2010 at 12:22 PM

    sweet game looks better than regular nintendo

  44. Reply BFF May 17, 2010 at 3:23 AM

    Hereโ€™s a javascript game (mostly jquery code with sound via html embed) by our designers, Bitography. We did the music โ€” soundscape, free ring-tones, whatever youโ€™d like to call them โ€” it is more of a neat graphic / sound demo with a little gameplay then an actual long playing epic. We did 12 tunes for this. Everything but the audio works and looks great on the iPhone (and a few other smartphones). Anyway, not to sound like an ad, but check out Bitografellas: Superego v1.0 http://bitography.com/bitografellas

  45. Reply Yoshi August 12, 2010 at 5:10 PM

    I remember playing this javascript game Deehtml ages ago, pretty cool actually

  46. Reply Dave March 13, 2011 at 2:32 PM

    I thought the sudoku game on dhtmlgoodies was pretty cool. It has some issues though since it can create games with multiple solutions and only recognizes one as a valid solution. I was inspired to try to make a better version which I posted here (shameless plug): http://www.fourthwoods.com/sudoku.html
    Let me know what you think!

  47. Reply BFresh March 17, 2011 at 10:06 PM

    Great collection! It is getting really easy to make purely JS games these days. I just made Mutant Zombie Monsters – http://www.mutantzombiemonsters.com/ – in a couple weeks

  48. Reply bozoou May 4, 2011 at 10:54 AM

    ..and you can check and this game:

    …I promise great fun in multiplayer mode!!!

  49. Reply WUSHEN May 26, 2011 at 7:57 PM

    Could u add my javascript gobang game to your list? Here is my site: http://www.wushen.biz/wiseeder

  50. Reply Bruce June 2, 2011 at 8:43 PM

    I’ve tried to create a game like GPokr. A multiplayer, Ajaxed poker game where you can play or watch a table.

    Here’s my version:

    I also have another nice game call Poker Chip Stacking but it Flash.


  51. Reply mooph June 23, 2011 at 1:17 PM

    Hello. I’ve created strateg.yga.me . I just wanted you to know.

  52. Reply Cool Game July 10, 2011 at 11:00 PM

    I found one you should include also. Its a pure 100% javascript game with music, explosion and everything. You use arrows to move your mech and spacebar to shoot. Return of the Dragon:

    Good Luck!!

  53. Reply Happy Gamer July 12, 2011 at 10:04 PM

    Thanks so much! I own a 3ds and I can’t play any java or flash games, so only this java script games work! What a savior ๐Ÿ˜€ Thanks a bunch, I really enjoy your games.

  54. Reply Technology Simplified July 16, 2011 at 6:21 AM

    Thanks for the Awesome list. Mario kart is my favorite~!

  55. Reply Arvind August 19, 2011 at 9:56 AM

    Do try out my javascript based trading sim….


    more to come later in multiplayer mode if folks like it…

  56. Reply Kevin Roast September 23, 2011 at 3:19 AM

    You missed the two best ones..!!



  57. Reply Diogo December 11, 2011 at 2:38 PM
  58. Reply Krissz December 30, 2011 at 2:23 PM

    Boulder Dash is an old Commodore 64 game. Now you can play with it in your browser. This version contain a construction kit too. Have fun!

  59. Reply Magnus Ferm January 29, 2012 at 5:03 AM

    Check out http://maffelu.net/demo/jquery/flooder2/ as well, it’s a jQuery-based puzzle-game. Perhaps it would make the list…

  60. Reply heri May 13, 2012 at 11:10 PM

    This really is a great list of javascript games. I thought that these kinds of games could only be made with Flash or Java. The Real World Racer is pretty innovative. Just want to know what is the mean of “totally Ajaxed”?

  61. Reply block skater May 30, 2012 at 5:35 AM

    A game that is like the calculator game Block Man.

  62. Reply gnahzii July 20, 2012 at 2:56 PM

    Nice list! Another awesome completely javascript/ajax online game is at http://therainforestrangers.com.

  63. Reply carly October 6, 2012 at 11:18 AM

    Noticed that the sudoku game does not work on the ipad. Tried to contact the developer(s) but no response. I wonder if they stopped supporting the site.

  64. Reply CoursesWeb February 7, 2013 at 2:59 AM

    Here is another JavaScript game, a Trivia game questions
    It is made only with javascript, and can be easily added into websites, with the quizes /questions you want.

Leave a reply