About GORILLAS.JS - An experiment in Javascript + HTML 5 Canvas

An experiment based on the classic GORILLAS.BAS. Rewritten from scratch in Javascript and HTML 5 Canvas

In late June 2010 I got into a car accident, and got grounded for a few months. So I've finished all my sudoku books....

I'd also been wanting to try and rewrite GORILLAS.BAS in other languages, so here's my take.




Known Bugs - There are plenty more.

  • Collision detection is primitive - Gorilla leg hits don't trigger.
  • Tested on Firefox 3.6.6
  • No sound(yet)
  • Does not work on Safari 4.0.5
  • Animation is primitive, based on unrolled loops + setTimeout
  • Timed loops are also a hack, based on unrolled loops + setTimeout
  • Bananas sometimes remain on canvas due to glitches on my animation code. Watch your step.
  • The CPU "AI" is not really intelligent
  • When the CPU appears next to a tall building, it's currently stuck. Reset Scenario allows you to skip that city scape. It's cheating otherwise.
  • A bunch more.

Code
The code is cryptic and I am definitely not a Javascript guy. It's full of bugs. Don't run this on your pacemaker. If you've got questions about it, I'd really like to hear back from you. I'll ask the doctors to let me reply ASAP.

Written by Ze Fonseca (jfonseca [@] zefonseca.com)

Back to GORILLAS.JS