Search the Community
Showing results for tags 'options'.
-
IMO it is really confused. Options cannot make up its mind what it wants to be; being kind to the designers: A _canvas An object descriptor: i.e. { width: x, height: y } A size: i.e. { width: options, height: options } Why do I say this? I suggest making up its mind: be a descriptor: if (options.canvas !== undefined) { //... } Or: if (!(options.width === undefined || options.height === undefined)) { // ... } else if (options.size !== undefined) { // ... } This will cause some breaking changes, but I think it is acceptable to correct the course onto a path of sanity. Next, I want to add text alignment if (options.textAlign !== undefined && typeof options.textAlign === "string") { // ... } I'm glad to submit the PR. I just don't want for it to sit on the shelf when I do. I would submit a Github issue, but it seems that has been disabled, or is unavailable to BabylonJS. Is that agreeable?
-
Maybe I'm blind but is there anywhere a list of available easing effect of Phaser? such like: game.add.tween(this.pauseMenuBTNcancel).to({y:game.height - 200},0, Phaser.Easing.Bounce.Out, true);cheers
-
I used var renderer = PIXI.autoDetectRenderer(window.innerWidth, window.innerHeight);It worked perfectly with min version. But I needed to add options and I did like this: var renderer = PIXI.autoDetectRenderer(window.innerWidth, window.innerHeight, {transparent: 'true'});And with dev version it works, but with min version doesn`t
- 2 replies
-
- bad english
- minified
-
(and 3 more)
Tagged with: