JS1k

#3, Oregon Trail



Welcome to JS1K : Oregon Trail

The aim of this competition is to create a JavaScript demo with a maximum size of 1024
bytes. The demo should run in all current browsers without breaking.

This competition has finished! This is the top 10!

  1. FlexiDR↻ID by @keenblaze
  2. Particle carriage by @p01
  3. Battle in the sky by Alexander Vedernikov
  4. Spider solitaire by @veubeke
  5. The Orion trail by @veubeke
  6. Ford the river by @crhallberg
  7. Minesweeper by Tim Down
  8. A forest scene by @daisyowl
  9. 3d text rendering by @remcoder
  10. xkcd 688 by Takács János

Oregon Trail

The suggested theme is the classic game "The Oregon Trail" for the Apple II. To see a
walkthrough of that game see this YouTube video. Dysentery was one of the ways to die
in the game and the phrase "You have died of dysentery" became a typical catch phrase
for the game. See here for more information about that.

Rules

  1. Submissions may be up to 1k (1024 bytes)
  2. Submissions must consist of only js
  3. Any and all externals are strictly forbidden
  4. Must work on current browsers versions (ch9+, o11+, fx3.6+ and sa5+)
  5. You get canvas object, its context and body object for "free"
  6. Your demo must work in the "html5" shim provided
  7. Your demo must be submitted before Sunday, April 24th at midnight
  8. No audio
  9. No webgl
  10. The theme is only a suggestion

See below for clarifications on the rules.

Prizes

Jury

Clarification of rules

  1. Bytes, not characters. Note that js has 16bit character strings so make sure your submission is in fact 1024 bytes.
  2. Do not send me html or css unless it is embedded as js. It will be rejected otherwise.
  3. No externals also means talking to an api after the app loaded, sending data to an app (twitter, facebook) and of course including images or other media remotely. It should also not be dependent on plugins or whatever.
  4. To keep the steep hacks out the demo's must work in all of the mentioned browsers. Firefox 4 and IE9 are not finalized at the start of this competition so they are out (for as far as being required to work in them). I don't want to force anyone to have to reconsider their demo mid-contest.
  5. You get some boiler plate. The canvas element and its context wil be embedded in your global as the variable c and a. For those not using canvas, you get the body element in the global as variable b.
  6. The shim will embedded in a frameset. Note that it will have to work inside the intended frame set (although, if it works in the shim and not in the frameset, please let me know) and that you're not allowed to "break out" of the frameset.
  7. The deadline is midnight on April 24th (so the midnight of 24 to 25 April ;). As I'll be in the States then (st. Louis, MO) it'll be whatever timezone that is :)
  8. Yeah, I'm aware that audio is a big thing in the game but the audio api is simply not supported in all targeted browsers. Maybe next time. Your demo will be judged with audio muted. So an "original sound track" will look kind of silly ;) But feel free to submit anyways! I won't reject them.
  9. WebGL has actually little to do with js but the main issue is that of all targeted stable browser versions, only chrome supports webgl.
  10. The theme is just a suggestion. When judging, entries which follow the theme do not get extra points, just street cred :)

Want to see more?

Try one of these: