Skip to content

Instantly share code, notes, and snippets.

View photonstorm's full-sized avatar

Richard Davey photonstorm

View GitHub Profile
@AleBles
AleBles / ScaleManager.js
Last active January 15, 2019 10:28
Phaser v3 temp (css) scale amanger
class ScaleManager {
constructor(canvas, isMobile) {
this.canvas = canvas;
this.mobile = isMobile;
window.addEventListener('resize', () => {
this.resize(this.canvas);
if (this.mobile) {
if (window.innerWidth < window.innerHeight) {
@mattdesl
mattdesl / modules.md
Last active August 16, 2022 10:14
my favourite modules.