diff --git a/.DS_Store b/.DS_Store index 8de20ff..f06f854 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/graphics/falling-scooters/README.md b/graphics/falling-scooters/README.md old mode 100755 new mode 100644 diff --git a/graphics/falling-scooters/assets/fruit-sprites.json b/graphics/falling-scooters/assets/fruit-sprites.json old mode 100755 new mode 100644 diff --git a/graphics/falling-scooters/assets/tier.png b/graphics/falling-scooters/assets/tier.png deleted file mode 100644 index d6adb9d..0000000 Binary files a/graphics/falling-scooters/assets/tier.png and /dev/null differ diff --git a/graphics/falling-scooters/index.html b/graphics/falling-scooters/index.html old mode 100755 new mode 100644 index c806965..024c1e1 --- a/graphics/falling-scooters/index.html +++ b/graphics/falling-scooters/index.html @@ -25,14 +25,23 @@ #game { + width: 100; + height: 100; margin: 0 auto; } + + #inviteDiv { + color: aquamarine; + font-size: 30px; + position: absolute; + pointer-events: none; + } - +

YOU'RE INVITED!

diff --git a/graphics/falling-scooters/index.js b/graphics/falling-scooters/index.js index 5517207..cc83c82 100755 --- a/graphics/falling-scooters/index.js +++ b/graphics/falling-scooters/index.js @@ -1,5 +1,7 @@ /* * This example show how to load complex shapes created with PhysicsEditor (https://www.codeandweb.com/physicseditor) + * + * Scaling via: https://www.joshmorony.com/how-to-scale-a-game-for-all-device-sizes-in-phaser/ */ @@ -9,8 +11,8 @@ var config = { mode: Phaser.Scale.FIT, parent: 'game', autoCenter: Phaser.Scale.CENTER_BOTH, - width: 1024, - height: 600 + width: window.innerWidth * window.devicePixelRatio, + height: window.innerHeight * window.devicePixelRatio }, transparent: true, backgroundColor: 0xffffff, scene: { @@ -56,6 +58,8 @@ function create() { var sprites = ['crate','banana','orange','cherries']; //array to choose random sprite from this.input.on('pointerdown', function (pointer) { + // var touchX = pointer.x; + // var touchY = pointer.y; this.matter.add.sprite(pointer.x, pointer.y, 'sheet', sprites[getRandomInt(4)], {shape: shapes.banana}); }, this); } diff --git a/graphics/falling-scooters/shapes.pes b/graphics/falling-scooters/shapes.pes old mode 100755 new mode 100644 diff --git a/graphics/falling-scooters/spritesheet.tps b/graphics/falling-scooters/spritesheet.tps old mode 100755 new mode 100644 diff --git a/insta/1.jpg b/graphics/insta/1.jpg similarity index 100% rename from insta/1.jpg rename to graphics/insta/1.jpg diff --git a/insta/2.jpg b/graphics/insta/2.jpg similarity index 100% rename from insta/2.jpg rename to graphics/insta/2.jpg diff --git a/insta/3.jpg b/graphics/insta/3.jpg similarity index 100% rename from insta/3.jpg rename to graphics/insta/3.jpg diff --git a/insta/4.jpg b/graphics/insta/4.jpg similarity index 100% rename from insta/4.jpg rename to graphics/insta/4.jpg diff --git a/insta/5.jpg b/graphics/insta/5.jpg similarity index 100% rename from insta/5.jpg rename to graphics/insta/5.jpg diff --git a/insta/6.jpg b/graphics/insta/6.jpg similarity index 100% rename from insta/6.jpg rename to graphics/insta/6.jpg diff --git a/insta/7.jpg b/graphics/insta/7.jpg similarity index 100% rename from insta/7.jpg rename to graphics/insta/7.jpg diff --git a/insta/8.jpg b/graphics/insta/8.jpg similarity index 100% rename from insta/8.jpg rename to graphics/insta/8.jpg diff --git a/insta/9.jpg b/graphics/insta/9.jpg similarity index 100% rename from insta/9.jpg rename to graphics/insta/9.jpg diff --git a/insta/instagrid.psd b/graphics/insta/instagrid.psd similarity index 100% rename from insta/instagrid.psd rename to graphics/insta/instagrid.psd diff --git a/logo.png b/graphics/logo.png similarity index 100% rename from logo.png rename to graphics/logo.png diff --git a/logo2.png b/graphics/logo2.png similarity index 100% rename from logo2.png rename to graphics/logo2.png