Skip to content

Instantly share code, notes, and snippets.

Jon Robson jdlrobson

Block or report user

Report or block jdlrobson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jdlrobson
jdlrobson / toucan.js
Created Sep 8, 2011
Toucan Creature (Javascript jungle)
View toucan.js
/**
* @see https://github.com/asyncjs/Javascript-Jungle/wiki/api
*/
//TODO: add to creatures.js instead..
var creature = jj.createCreature('toucan', function (layer) {
$ = jj.jQuery;
var jungle = $(layer.el).parent();
var jungleWidth = jungle.width();
var jungleHeight = jungle.height();
var jungleBounds = { left: 0 - 50, right: jungleWidth + 50 }
You can’t perform that action at this time.