input / output | ColorObject | Color† | HSVColorObject | number† | string |
---|---|---|---|---|---|
(h: number, s: number, l: number) | HSLToColor | ||||
(h: number, s: number, v: number) | HSVToRGB | HSVToRGB | |||
(r: number, g: number, b: number, a: number) | GetColor32 | ||||
(r: number, g: number, b: number) | RGBToHSV | RGBToHSV | GetColor | RGBToString | |
ColorObject | ObjectToColor, ValueToColor | ||||
string '#RGB' '#RRGGBB' |
View ScaleX.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
JavaScript port of <http://scale2x.sourceforge.net/algorithm.html> | |
*/ | |
var scaleX = (function (exports) { | |
function getPixel32(data, x, y, w) { | |
var id = (x + y * w) * 4; | |
return (data[id] << 16) | (data[id + 1] << 8) | data[id + 2]; | |
} |
View base.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class BaseScene extends Phaser.Scene | |
{ | |
constructor(config) | |
{ | |
super(config); | |
} | |
init() | |
{ | |
this.user = this.registry.get('user'); |
View dungeon.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | |
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░ | |
░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░▓ ▓ ▓░░░░░░░░░░░░░░░░░░░░ | |
░░░░░░░░░▓ ▓░░░░░░░░░▓ $ ◆ ▓░░░░░░░░░░░░░░░░░░░░ | |
░░░░░░░░░▓ ⚜︎ ▓░░░░░░░░░▓ ▓ ⚒︎ ▓░░▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░ | |
░░░░░░░░░▓ $ $ ▓▓▓▓▓▓▓▓▓▓▓ ▓ ▓░░▓ ⚱︎ ▓░░░░░ | |
░░░░░░░░░▓ ▓ ⚜︎ $ ▓▓▓◇▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░▓ ▓░░░░░ | |
░░░░░░░░░▓ ▓ ⚑ ▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓░░░░░ | |
░░░░░░░░░▓ ◆ ▓ ▓ ▓ ▓░░░░░ | |
░░░░░░░░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ◆ ⚘ ▓ ◇ ▓░░░░░ |
View main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var music = [ | |
{ | |
key: 'bgMusic', | |
url: 'assets/TownTheme.mp3', | |
config: { | |
volume: 0.1, | |
loop: true | |
} | |
}, | |
{ |
View readme.md
View phaser-test.js
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Richard Davey <rich@photonstorm.com> | |
* @copyright 2016 Photon Storm Ltd. | |
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} | |
* | |
* @overview | |
* | |
* Phaser - http://phaser.io | |
* |
View index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'phaser'; | |
import GameScalePlugin from 'phaser-plugin-game-scale'; | |
console.assert(GameScalePlugin, 'GameScalePlugin'); | |
var config = { | |
type: Phaser.AUTO, | |
width: 800, | |
height: 600, |
View phaser-scenes-summary.md
Calls without a
Scene control
key
argument
Calls without a These affect the calling scene only.
Example:
this.scene.start()
View app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Phaser.Game(/* ... */); |
View phaser.d.ts
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare type CallCallback = (item: Phaser.GameObjects.GameObject)=>void; | |
declare type GridAlignConfig = { | |
/** | |
* The width of the grid in items (not pixels). -1 means lay all items out horizontally, regardless of quantity. | |
* If both this value and height are set to -1 then this value overrides it and the `height` value is ignored. | |
*/ | |
width?: integer; | |
/** |
NewerOlder