Permalink
Browse files

Better pause screen

  • Loading branch information...
1 parent a51e47a commit b67f41cd8c3981b02242503144077b2fef75fccb @doowttam committed Dec 19, 2011
Showing with 8 additions and 5 deletions.
  1. +8 −5 lostmom.js
View
@@ -264,11 +264,14 @@ MOM = function() {
clearInterval( frameInterval );
frameInterval = null;
- context.fillStyle = 'black';
- context.font = "bold 12px sans-serif";
- context.textAlign = "right";
- context.textBaseline = "top";
- context.fillText("PAUSED", canvas.width - 20, 20);
+ context.fillStyle = 'rgba(0,0,0,.5)';
+ context.fillRect( 0, 0, canvas.width, canvas.height);
+
+ context.font = "bold 48px sans-serif";
+ context.fillStyle = "white";
+ context.textAlign = "center";
+ context.textBaseline = "middle";
+ context.fillText("PAUSED", canvas.width - canvas.width / 2, canvas.height - canvas.height / 2);
}
else {
frameInterval = MOM.play();

0 comments on commit b67f41c

Please sign in to comment.