Added Game core loop stepping support. Super-useful for debugging, and helped me track down the issue with jittery physics collision. Double-win!

This commit is contained in:
photonstorm
2014-01-29 17:10:13 +00:00
parent d51a37211c
commit 651858372c
25 changed files with 1268 additions and 438 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ var layer;
var sprite;
var sprite2;
var balls;
var cursors;
function create() {
@@ -30,7 +31,7 @@ function create() {
layer.debug = true;
game.physics.gravity.y = 150;
// game.physics.gravity.y = 150;
/*
balls = game.add.group();