Category "phaser-framework"

How do you use functions in a different js file in phaser 3?

Im trying to create a js file with functions relevant to my game but i get an error message saying Uncaught TypeError: Cannot read properties of undefined (rea

Jest import statement: 'TypeError: Cannot set property 'fillStyle' of null'

I type: npm test and I get: It's interesting to note that the import statement works inside the BootScene.test.js file but it doesn't work in the imported fil

Ways to limit Phaser3 update rate?

In my Phaser3 game there is a global gameTick variable that is incremented every update. I am using this to spawn in enemies in my game every 100th update. Her

Phaser 3: Update Sprite object from canvas texture

I have created 3 canvas textures: this.textures1 = this.textures.createCanvas('canvastextures1', 450, 170) this.textures2 = this.textures.createCanvas('

Phaser 3 Sound issue on iOS

In my game, I have a video playing before the game itself begins (short instruction about the game). After the video ends, I destroy it and the game starts, but