MCPcopy Create free account
hub / github.com/SilverTree7622/Phaser3_GUI_Inspector / create

Function create

zExample/ionic/app.js:64–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62var game = new Phaser.Game(config);
63
64function create()
65{
66 // Default text with no style settings
67 this.add.text(100, 100, 'Phaser');
68
69 // Pass in a basic style object with the constructor
70 this.add.text(100, 200, 'Phaser', { fontFamily: 'Arial', fontSize: 64, color: '#00ff00' });
71
72 // Or chain calls like this:
73 this.add.text(100, 400, 'Phaser').setFontFamily('Arial').setFontSize(64).setColor('#ffff00');
74
75 PhaserGUIAction(this);
76}

Callers

nothing calls this directly

Calls 1

PhaserGUIActionFunction · 0.85

Tested by

no test coverage detected