Skip to content

Commit ae9c3b6

Browse files
committed
Tidying up for 3.15 release
1 parent daee448 commit ae9c3b6

22 files changed

Lines changed: 23 additions & 871 deletions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "phaser",
3-
"version": "3.15.0-beta1",
3+
"version": "3.15.0",
44
"release": "Batou",
55
"description": "A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.",
66
"author": "Richard Davey <rich@photonstorm.com> (http://www.photonstorm.com)",

src/boot/CreateRenderer.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ var CreateRenderer = function (game)
5858
{
5959
game.canvas = config.canvas;
6060

61-
game.canvas.width = game.scale.canvasWidth;
62-
game.canvas.height = game.scale.canvasHeight;
61+
game.canvas.width = game.config.width;
62+
game.canvas.height = game.config.height;
6363
}
6464
else
6565
{
66-
game.canvas = CanvasPool.create(game, game.scale.canvasWidth, game.scale.canvasHeight, config.renderType);
66+
game.canvas = CanvasPool.create(game, config.width * config.resolution, config.height * config.resolution, config.renderType);
6767
}
6868

6969
// Does the game config provide some canvas css styles to use?
@@ -78,6 +78,10 @@ var CreateRenderer = function (game)
7878
CanvasInterpolation.setCrisp(game.canvas);
7979
}
8080

81+
// Zoomed?
82+
game.canvas.style.width = (config.width * config.zoom).toString() + 'px';
83+
game.canvas.style.height = (config.height * config.zoom).toString() + 'px';
84+
8185
if (config.renderType === CONST.HEADLESS)
8286
{
8387
// Nothing more to do here

src/boot/Game.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ var EventEmitter = require('eventemitter3');
1919
var InputManager = require('../input/InputManager');
2020
var PluginCache = require('../plugins/PluginCache');
2121
var PluginManager = require('../plugins/PluginManager');
22-
var ScaleManager = require('../dom/ScaleManager');
2322
var SceneManager = require('../scene/SceneManager');
2423
var SoundManagerCreator = require('../sound/SoundManagerCreator');
2524
var TextureManager = require('../textures/TextureManager');
@@ -226,17 +225,6 @@ var Game = new Class({
226225
*/
227226
this.device = Device;
228227

229-
/**
230-
* An instance of the Scale Manager.
231-
*
232-
* The Scale Manager is a global system responsible for handling game scaling events.
233-
*
234-
* @name Phaser.Game#scale
235-
* @type {Phaser.Boot.ScaleManager}
236-
* @since 3.15.0
237-
*/
238-
this.scale = new ScaleManager(this, this.config);
239-
240228
/**
241229
* An instance of the base Sound Manager.
242230
*
@@ -375,8 +363,6 @@ var Game = new Class({
375363

376364
this.config.preBoot(this);
377365

378-
this.scale.preBoot();
379-
380366
CreateRenderer(this);
381367

382368
if (typeof EXPERIMENTAL)
@@ -386,8 +372,6 @@ var Game = new Class({
386372

387373
DebugHeader(this);
388374

389-
// console.log('Canvas added to DOM');
390-
391375
AddToDOM(this.canvas, this.config.parent);
392376

393377
this.events.emit('boot');

src/const.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var CONST = {
2020
* @type {string}
2121
* @since 3.0.0
2222
*/
23-
VERSION: '3.15.0 Beta 1',
23+
VERSION: '3.15.0',
2424

2525
BlendModes: require('./renderer/BlendModes'),
2626

src/dom/Calibrate.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/dom/ClientHeight.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/dom/ClientWidth.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/dom/DocumentBounds.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/dom/GetAspectRatio.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/dom/GetBounds.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)