Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.setHabboLeft = function(src)
- {
- var self = this;
- var callback = function() {
- self.draw(self);
- }
- this.habboLeft = getImage(src, callback);
- }
- this.update = function()
- {
- this.draw(this);
- }
- this.draw = function(options)
- {
- if(options.background != null) {
- ctx.drawImage(options.background,0,0);
- }
- if(options.habboLeft != null) {
- ctx.drawImage(options.habboLeft, options.habboLeft_x, options.habboLeft_y);
- }
- if(options.habboRight != null) {
- ctx.drawImage(options.habboRight, options.habboRight_x, options.habboRight_y);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement