Skip to content

Commit c48e685

Browse files
committed
Minor labs updates.
1 parent 91c0299 commit c48e685

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

labs/code/004 maggot batch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function create() {
1616

1717
batch = game.add.spriteBatch();
1818

19-
var total = (game.renderType === Phaser.WEBGL) ? 10000 : 100;
19+
var total = (game.renderType === Phaser.WEBGL) ? 5000 : 100;
2020

2121
for (var i = 0; i < total; i++)
2222
{

labs/code/008 cannon balls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function fire() {
4646
bullet.position.set(cannon.x, cannon.y);
4747
bullet.physicsEnabled = true;
4848

49-
bullet.body.rotation = cannon.rotation + game.math.degToRad(90);
49+
bullet.body.rotation = cannon.rotation + game.math.degToRad(-90);
5050

5151
var magnitude = game.math.px2p(-500);
5252
var angle = bullet.body.rotation + Math.PI / 2;

labs/list.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
// Global
33
$files = dirToArray(dirname(__FILE__) . '/code');
4+
$files = array_reverse($files);
5+
46
$total = 0;
57
$demo = '';
68

0 commit comments

Comments
 (0)