File | Date | Author | Commit |
---|---|---|---|
LICENSE.txt | 2021-01-01 | michyo (Michiyo Tagami) | [1029b5] Release version 0.01 |
README.md | 2021-01-01 | michyo (Michiyo Tagami) | [1029b5] Release version 0.01 |
fsaph.css | 2021-01-01 | michyo (Michiyo Tagami) | [1029b5] Release version 0.01 |
fsaph.js | 2021-01-01 | michyo (Michiyo Tagami) | [1029b5] Release version 0.01 |
FSAPh is "Full Screen Assistant for Phaser".
FSAPh provides a function to easily handle full screen mode when creating games with the Phaser framework.
With FSAPh you can easily implement full screen mode in your own games.
You will also be able to easily implement the ability to switch between full screen mode and window mode.
Flag of fullscreen or not
Initialize FSAPh
width : Horizontal size of canvas (px)
height: Vertical size of canvas (px)
config: Phaser scene config object
Switch between full screen mode and window mode
Set callback function called when screen mode changed
func: Function to called back
var GameScene = new Phaser.Class({
Extends: Phaser.Scene,
initialize:
function GameScene () {
Phaser.Scene.call(this, { key: 'gameScene', active: true });
},
create: function () {
var fk11 = this.input.keyboard.addKey('F11');
fk11.on('down', function () {
fsap_modechange();
}, this);
},
});
var config = {
type: Phaser.AUTO,
scale: {
parent: 'gamezone',
},
scene: GameScene
};
function onFSchange(flag) {
if (flag == true) {
} else {
}
}
fsap_setcallback(onFSchange);
fsap_initialize(800, 600, config);
Copyright (C) 2021 michyo (Michiyo Tagami) [https://michyo.net/]
Released under the MIT license
See the LICENSE.txt for more details.