jsBalls

  • Introduction

    jsBalls is a framework for making interactive entities in javascript.  It was created for fun and serves no real purpose.  It tries to abstract browser compatibility, event handling, and painting to allow you to focus on the logic of the entity you are creating.

  • Benchmarks

    Because of the way input is abstracted it makes it easy to record and playback interaction with jsBalls.  I recorded myself playing the fight game demo and timed how long it takes to playback with no delays.  This was done to help with optimizing the code, but it also turned out to be an interesting way to benchmark the different browsers.

    Graph of browser times
    All Test run on Windows 2003 R2, Intel Core 2 6420, 4GiB RAM.  Times are average of 3 trials

    Run The Benckmark

  • Demos

    Barack Whack

    My first attempt at creating something other than the simple things that amuse me.  My friend wanted a whack-a-mole game and I thought it would be neat to try and use jsBalls to build it.

    Try It

    Fight Game

    Something a little more complicated this time.  Good for helping develop the sprite functionality.  Still more to do on this one before I am tired of it.

    Try It