A 7 Day Roguelike made for the 2011 challenge with WebGL.
JavaScript C CSS Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
game
postmortem
.gitignore
IMPORTANT
README.mkd
build.sh
index.html
screenshot.png
template.html

README.mkd

A Little Anxious When It's Dark

Screenshot

Made for the 7 Day Roguelike Challenge 2011, this is a short coffee-break roguelike, where you search for a treasure through five randomly generated dungeon levels.

The game is played inside a web browser and requires WebGL support, so you need a rather new browser (e.g. Google Chrome 9+ or Firefox 4 - IE won't work). Also, your graphics card needs to be at least OpenGL 2 capable (with decent drivers) for WebGL to work. You can check supported browsers and other notes in Khrono's WebGL Wiki.

Start playing by navigating into the game subdirectory.

You can also download the JavaScript/HTML5/CSS3/GLSL sources from github, but note that running the game locally will not probably work. You need a webserver to answer the XMLHttpRequests that are used for loading shaders from dedicated files (or at least that is the explanation I thought the most likely). And yes, I do want shaders in separate files for syntax highlighting and other reasons.

Gameplay features

  1. Collect and use torches to light up your journey
  2. Fight multiple enemy types
  3. Collect and use health potions to recover from injuries
  4. Use portals to travel to the next level
  5. Find the treasure
  6. Profit

Graphical/engine features

  • Mesh generation based on ASCII map
  • Automatic normal and tangent calculations for arbitrary triangle mesh
  • Per-pixel lighting
  • Multiple light sources
  • Normalmapping
  • Does not depend on external engines/frameworks (i.e. custom built)
  • CSS3/HTML5 based "HUD"

Postmortem

If you are interested, you can read how the 7-day development went and other retrospective notes here.

Licensing stuff

The starting point for this game was a wonderful WebGL tutorial by Giles Thomas @ learningwebgl.com. The content there is licensed Creative Commons Attribution/Share-Alike license. There are only few small bits left from the original tutorial code, but to avoid pain with licensing jungle, I'll release this for the time being under the same CC-BY-SA license (even though it's not really a software license), with attribution to here and learningwebgl.com.