Looks like it works now!

feature/coffeescript
Sven Slootweg 10 years ago
parent 8f52e91bf3
commit 89507cf125

@ -1670,7 +1670,6 @@ Sprite = (function() {
this.image = image; this.image = image;
this.getSize = __bind(this.getSize, this); this.getSize = __bind(this.getSize, this);
this.draw = __bind(this.draw, this); this.draw = __bind(this.draw, this);
true;
_ref = this.getSize(), this.width = _ref.width, this.height = _ref.height; _ref = this.getSize(), this.width = _ref.width, this.height = _ref.height;
} }

@ -1,6 +1,5 @@
class Sprite class Sprite
constructor: (@engine, @name, @image) -> constructor: (@engine, @name, @image) ->
true # Debugging
{width: @width, height: @height} = @getSize() {width: @width, height: @height} = @getSize()
draw: (x, y, options = {}, surface = "") => draw: (x, y, options = {}, surface = "") =>

Loading…
Cancel
Save