From c48e685802140f22c067c5e5948d079437d7f09b Mon Sep 17 00:00:00 2001 From: photonstorm Date: Thu, 20 Feb 2014 04:28:19 +0000 Subject: [PATCH] Minor labs updates. --- labs/code/004 maggot batch.js | 2 +- labs/code/008 cannon balls.js | 2 +- labs/list.php | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/labs/code/004 maggot batch.js b/labs/code/004 maggot batch.js index 07968109..cb6d1f6e 100644 --- a/labs/code/004 maggot batch.js +++ b/labs/code/004 maggot batch.js @@ -16,7 +16,7 @@ function create() { batch = game.add.spriteBatch(); - var total = (game.renderType === Phaser.WEBGL) ? 10000 : 100; + var total = (game.renderType === Phaser.WEBGL) ? 5000 : 100; for (var i = 0; i < total; i++) { diff --git a/labs/code/008 cannon balls.js b/labs/code/008 cannon balls.js index 95581922..4a42a9ab 100644 --- a/labs/code/008 cannon balls.js +++ b/labs/code/008 cannon balls.js @@ -46,7 +46,7 @@ function fire() { bullet.position.set(cannon.x, cannon.y); bullet.physicsEnabled = true; - bullet.body.rotation = cannon.rotation + game.math.degToRad(90); + bullet.body.rotation = cannon.rotation + game.math.degToRad(-90); var magnitude = game.math.px2p(-500); var angle = bullet.body.rotation + Math.PI / 2; diff --git a/labs/list.php b/labs/list.php index 35a0ca7f..5cb7b743 100644 --- a/labs/list.php +++ b/labs/list.php @@ -1,6 +1,8 @@