I am working on creating an HTML mobile game using Phaser 3. So far, I have used sprites and images in multiple games that I have developed so far. Today when I added sprite and was testing on Android mobile device, it did not show the sprite. Instead, it showed up as black rectangle. Initially […]
Category Archives: Game Development
If you have a need to convert multiple *.ogg files into *.m4a files, it is not easily possible. I have found a way to quickly convert all ogg files into m4a files. In fact, you can convert any audio file formats to any other format using a DOS bat file. Prerequisite You should have ffmpeg […]
In Phaser 3, we can set gravity for an object to make it falling for floating. I am working on a project where I want to set the gravity but when I click on it, the object should stop moving. Here is a working example of a scene. As you would notice, body.stop(), and body.allowGravity […]
If you have a background image and want to stretch it so that entire canvas area is covered, here is a sample code written in Typescript.
You started working on creating a game with Phaser and added couple of scenes. So far your game is working as expected. Now you added one more scene using following code. But somehow you don’t see this scene in your game. You can only see a background. Even though you have copied the code, validated […]