nunof07/phaser-breakout

View on GitHub
src/game/gameWidth.ts

Summary

Maintainability
A
50 mins
Test Coverage
import Phaser from 'phaser';
 
/**
* Game width.
* @param game Game.
*/
Similar blocks of code found in 2 locations. Consider refactoring.
export function gameWidth(game: Phaser.Game): number {
return (<{ width: number }>game.config).width;
}