Skip to content
#

Phaser

phaser logo

Phaser is a fast, free, and fun open source HTML5 game framework. It uses a custom build of Pixi.js for WebGL and Canvas rendering, and supports desktop and mobile web browsers. Games can be compiled to iOS, Android and native desktop apps via third party tools. You can use JavaScript or TypeScript for development.

Here are 920 public repositories matching this topic...

javidcf
javidcf commented Jun 11, 2017

I was having trouble getting a body to collide with the world, and I finally realized that the collision only worked if I called updateCollisionMask() on the body. Right now this is only called by Phaser when you toggle the value of collideWorldBounds, so maybe the fix is just calling it at the end of the constructor of the body? I'm not too sure...

There is a demo at https://codepen.io/jav

sergey-pimenov
sergey-pimenov commented Dec 3, 2018

First of all, thank you very much for the coolest animation tool. Thanks to you, a huge number of people have the opportunity to animate.

I have a few comments for you.


1. Examples in ES6

It will be great if you provide examples not only in Typescript, but also in ES6. Typescript is very popular, but Vanilla JS is much more popular. Therefore, it is more reasonable maintain pur

Project to get you started with your Phaser-CE (using the npm module) game using Typescript and Webpack for building! No hassle asset management, Google Web Font loader, live server, development vs distribution build pipeline, Electron packaging for desktop builds, and more...

  • Updated Mar 16, 2020
  • JavaScript
bck2207
bck2207 commented Jul 27, 2017

If I follow the documentation and enter something like the following code

this.pointInput = game.add.inputField(300, 300, {
  type: 'text',
  forceCase: 'upper',
  max: '6',
});

It doesn't force the upper case and it also doesn't limit the length of entered text to 6 charactes as expected. In order to let forceCase work, you need to enter forceCase: 2.

the max property w

arvinsingla
arvinsingla commented Mar 27, 2020

Please let me know if this should be posted in the Expo forums instead of here. When following the basic example in the README I get the following error

TypeError: Cannot assign to read only property 'readyState' of object '#'

Module.game
node_modules/expo-phaser/lib/game.js:12
   9 |   onRender,
  10 | }): Phaser.Game {
  11 |   global.__context = context;
> 12 |

Created by Richard Davey

Latest release about 1 month ago

Repository
photonstorm/phaser
Website
phaser.io
You can’t perform that action at this time.