Category Archives: Game Development
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 […]