Skip to content

Commit

Permalink
refactor(scenes): alias Math from Phaser as PhaserMath
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Feb 6, 2019
1 parent 40d0a69 commit 99a8f63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scenes/createLevel.js
Expand Up @@ -8,9 +8,9 @@ import {
SIZES,
TEXTURES,
} from '../constants';
import { Math, Scene } from 'phaser';
import { Math as PhaserMath, Scene } from 'phaser';

const NINETY_DEGREES = Math.DegToRad(90);
const NINETY_DEGREES = PhaserMath.DegToRad(90);
const TEXT_MARGIN_LEFT = 25;
const TEXT_MARGIN_RIGHT = TEXT_MARGIN_LEFT;
const TEXT_MARGIN_TOP = 25;
Expand Down Expand Up @@ -116,7 +116,7 @@ export default function createLevel(levelConfig) {
}

launchBall() {
const ballX = Math.Between(0, this.game.config.width - 200);
const ballX = PhaserMath.Between(0, this.game.config.width - 200);
const ballY = -200;
const ball = this.matter.add.sprite(
ballX,
Expand Down

0 comments on commit 99a8f63

Please sign in to comment.