Comments (7)
I've tried with empty config and have the same error but let me share my config.
When I debug if I change to Phaser.CANVAS this line still assumes CONST.AUTO
const config = {
type: Phaser.AUTO,
scale: {
mode: Phaser.Scale.FIT,
parent: 'game',
autoCenter: Phaser.Scale.CENTER_BOTH,
width: '100%',
height: '100%'
},
pixelArt: true,
render: {
antialias: false,
pixelArt: true,
roundPixels: true
},
physics: {
default: 'arcade',
arcade: {
gravity: { y: 400 }
// debug: true
}
},
scene
};
from ion-phaser.
3.22
"dependencies": {
"@datorama/akita": "^4.19.2",
"@ion-phaser/react": "^1.2.1",
"bootstrap": "^4.4.1",
"i18next": "^19.1.0",
"inversify-hooks": "^2.0.0-alpha3",
"node-sass": "^4.13.1",
"normalize-scss": "^7.0.1",
"open-simplex-noise": "^2.2.0",
"phaser": "^3.22.0",
"react": "^16.12.0",
"react-bootstrap": "^1.0.0-beta.16",
"react-dom": "^16.12.0",
"react-i18next": "^11.3.2",
"react-transition-group": "^4.3.0",
"reflect-metadata": "^0.1.13",
"svgo": "1.3.2"
},
from ion-phaser.
Ok, I updated the packages and your configuration is working in the demo project also with types => https://github.com/proyecto26/ion-phaser/blob/master/demo-react/src/App.tsx#L31
from ion-phaser.
After update I have this error:
index.js:1 TypeError: Cannot read property 'hasOwnProperty' of null
at GetValue (ion-phaser.entry.js:3945)
else if (key.indexOf('.') !== -1) {
var keys = key.split('.');
var parent = source;
var value = defaultValue;
// Use for loop here so we can break early
for (var i = 0; i < keys.length; i++) {
if (parent.hasOwnProperty(keys[i])) {
// Yes it has a key property, let's carry on down
value = parent[keys[i]];
parent = parent[keys[i]];
}
else {
// Can't go any further, so reset to default
value = defaultValue;
break;
}
}
from ion-phaser.
Please share the config of your game :)
from ion-phaser.
what version of Phaser are you using? thanks!
from ion-phaser.
Please attach a demo to be able to reproduce that issue
from ion-phaser.
Related Issues (20)
- How to upgrade to Phaser 3.52.0 HOT 14
- How do I declare functions in phaser using vue? HOT 8
- Issue while using with Vue 3 - Canvas not loaded HOT 8
- Strange Error With Using Spine HOT 4
- Using a custom `Phaser.Game` class HOT 1
- How to use with phaser 2? HOT 1
- Property 'ion-phaser' does not exist on type 'JSX.IntrinsicElements' HOT 2
- Next.js: ReferenceError: Phaser is not defined HOT 3
- image cannot be loaded HOT 3
- use in Taro HOT 3
- How to load a web picture HOT 1
- Interested making it work with next.js HOT 20
- React HTMLIonPhgaissue HOT 1
- Access Vue this from the scene object HOT 6
- Failed to parse source map warnings - @ion-phaser/react HOT 1
- Support React v17 HOT 3
- [Question] Is it possible to use reactive properties inside ion-phaser?
- Some functions are missing HOT 3
- Support React 18
- can not reinitialize after destroy becauseof plugin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ion-phaser.