var ClearScreen = me.Rect.extend({init: function() {this.parent(new me.Vector2d(0, 0), me.video.getWidth(), me.video.getHeight());this.z = -Infinity;},update: function() {return true;},draw: function(context) {context.clearRect(0, 0, this.width, this.height);}});var cls = new ClearScreen();me.game.add(cls);me.game.sort();
this.isPersistent = true;this.visible = true;
--
You received this message because you are subscribed to the Google Groups "melonJS - A lightweight HTML5 game engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to melonjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
renderer.clearSurface(renderer.getContext(), 'rgba(0,0,0,0)');