Skip to content

Instantly share code, notes, and snippets.

@morganherlocker
Created August 12, 2014 17:48
Show Gist options
  • Select an option

  • Save morganherlocker/2e5c9e68337bf146da9e to your computer and use it in GitHub Desktop.

Select an option

Save morganherlocker/2e5c9e68337bf146da9e to your computer and use it in GitHub Desktop.
function(direction){
if (collision().hasOwnProperty(direction)) {
if (collision()[direction].func == "I") {
var width = collision()[direction].Width;
var height = collision()[direction].Height;
var do = create("i", width, image_height, "cyan");
collision()[direction].elk.doit(do, collision()[direction]);
} else if (collision()[direction].finish_it.indexOf("xd") == -1) {
collision()[direction].it_is = " ";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment