mirror of
https://github.com/wassname/phaser.git
synced 2026-07-01 16:50:43 +08:00
Sprite optimisations :)
This commit is contained in:
@@ -30,8 +30,8 @@ window.onload = function () {
|
||||
|
||||
for (var i = 0; i < 100; i++)
|
||||
{
|
||||
var s = game.add.sprite(game.world.randomX, game.world.randomY, 'mushroom');
|
||||
console.log(s.x, s.y);
|
||||
// var s = game.add.sprite(game.world.randomX, game.world.randomY, 'mushroom');
|
||||
// console.log(s.x, s.y);
|
||||
}
|
||||
|
||||
d = game.add.sprite(0, 0, 'phaser');
|
||||
@@ -43,6 +43,8 @@ window.onload = function () {
|
||||
|
||||
function update() {
|
||||
|
||||
// d.angle++;
|
||||
|
||||
if (cursors.up.isDown)
|
||||
{
|
||||
if (cursors.up.shiftKey)
|
||||
|
||||
Reference in New Issue
Block a user