mirror of
https://github.com/wassname/phaser.git
synced 2026-07-09 00:20:17 +08:00
Minor labs updates.
This commit is contained in:
@@ -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++)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
// Global
|
||||
$files = dirToArray(dirname(__FILE__) . '/code');
|
||||
$files = array_reverse($files);
|
||||
|
||||
$total = 0;
|
||||
$demo = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user