diff --git a/Phaser/Scratch/Scratch.csproj b/Phaser/Scratch/Scratch.csproj deleted file mode 100644 index 55a10e77..00000000 --- a/Phaser/Scratch/Scratch.csproj +++ /dev/null @@ -1,66 +0,0 @@ - - - - Debug - {FC407544-CFE2-414B-8936-7355D00E881A} - {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} - Library - bin - v4.5 - full - true - true - - - - - - - - - - app.ts - - - - - - - 10.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - Scratch - - - - - - - - True - True - 0 - / - http://localhost:65337/ - False - False - - - False - - - - - - ES5 - true - false - - - ES5 - false - false - - - \ No newline at end of file diff --git a/Phaser/Scratch/app.css b/Phaser/Scratch/app.css deleted file mode 100644 index eb24fc61..00000000 --- a/Phaser/Scratch/app.css +++ /dev/null @@ -1,8 +0,0 @@ -body -{ - font-family: 'Segoe UI', sans-serif -} - -span { - font-style: italic -} \ No newline at end of file diff --git a/Phaser/Scratch/app.ts b/Phaser/Scratch/app.ts deleted file mode 100644 index 6ad74c86..00000000 --- a/Phaser/Scratch/app.ts +++ /dev/null @@ -1,95 +0,0 @@ -module Phaser { - - export class Point1 { - - constructor(x: number = 0, y: number = 0) { - - //this.values = (typeof Float32Array !== 'undefined') ? new Float32Array(2) : new Array; - this.x = x; - this.y = y; - - } - - x: number; - y: number; - - public add(dx: number, dy: number): Point1 { - - this.x += dx; - this.y += dy; - - return this; - - } - - } - - export class Point2 { - - constructor(x: number = 0, y: number = 0) { - - this.values = new Float32Array(2); - this.values[0] = x; - this.values[1] = y; - - } - - get x(): number { - return this.values[0]; - } - - get y(): number { - return this.values[1]; - } - - set x(v: number) { - this.values[0] = v; - } - - set y(v: number) { - this.values[1] = v; - } - - values; - - public add(dx: number, dy: number): Point2 { - - this.values[0] += dx; - this.values[1] += dy; - - return this; - - } - - } - -} - -window.onload = () => { - - var b = document.getElementById('start').onclick = test; - var e = document.getElementById('content'); - - function test() { - - var started = Date.now(); - - var a = new Phaser.Point1(Math.random(), Math.random()); - - for (var i = 0; i < 10000000; i++) - { - var b = new Phaser.Point1(Math.random(), Math.random()); - a.add(b.x, b.y); - } - - var ended = Date.now(); - var duration = (ended - started) / 1000; - - var s = 'Test started: ' + started + '\n'; - s = s + 'Test ended: ' + ended + '\n'; - s = s + 'Duration: ' + duration + '\n'; - e.textContent = s; - - } - -}; \ No newline at end of file diff --git a/Phaser/Scratch/default.htm b/Phaser/Scratch/default.htm deleted file mode 100644 index beddab50..00000000 --- a/Phaser/Scratch/default.htm +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - Point Test - - - - -

Point Test

- - - -
- - - - - \ No newline at end of file diff --git a/build/phaser.js b/build/phaser.js index e7155785..2068185f 100644 --- a/build/phaser.js +++ b/build/phaser.js @@ -13800,6 +13800,7 @@ var Phaser; (function (Phaser) { var Camera = (function () { /** + *Sprite constructor * Instantiates a new camera at the specified location, with the specified size and zoom level. * @@ -14059,8 +14060,6 @@ var Phaser; if(this._rotation !== 0 || this._clip || this.scale.x !== 1 || this.scale.y !== 1) { this._game.stage.context.save(); } - // It may be safer/quicker to just save the context every frame regardless (needs testing on mobile - sucked on Android 2.x) - //this._game.stage.context.save(); this.fx.preRender(this, this._stageX, this._stageY, this.worldView.width, this.worldView.height); if(this.alpha !== 1) { this._game.stage.context.globalAlpha = this.alpha; @@ -14114,6 +14113,7 @@ var Phaser; this._game.stage.context.closePath(); this._game.stage.context.clip(); } + // Render all the Sprites this._game.world.group.render(this, this._sx, this._sy); if(this.showBorder == true) { this._game.stage.context.strokeStyle = this.borderColor;