Skip to content

Instantly share code, notes, and snippets.

@bulkan
Created March 20, 2014 11:57
Show Gist options
  • Save bulkan/9662183 to your computer and use it in GitHub Desktop.
Save bulkan/9662183 to your computer and use it in GitHub Desktop.
goog.provide('mygame.PauseScene');
goog.require('lime.Scene');
goog.require('lime.Sprite');
mygamesq.PauseScene = function(size) {
lime.Scene.call(this);
var layer = new lime.Sprite()
.setSize(size)
.setFill(100, 100, 100)
.setOpacity(1);
//this.domElement.style.cssText = 'background:rgba(255,255,255,.8)';
var label = new lime.Label().setText('Paused').setPosition(100,100);
layer.appendChild(label);
this.appendChild(layer);
};
goog.inherits(mygame.PauseScene, lime.Scene);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment