Witam,
Mam dwa pytania dot. używania PhaserJS:
1) Jak ustawić tło canvas?
constructor(scope, injector) {
this.game = new Phaser.Game(640, 1136, Phaser.AUTO, '#ff0000', 'gameCanvas', {
create: this.create
});
}
Powyższy kod z parametrem #ff0000 nie działa.
2) Jak nadać pozycję elementowi w dwóch płaszczyznach?
(this.game.world.centerX, 20, this.game.world.centerY, 20, "Score:", {
font: "Gill Sans Bold",
fill: "white",
fontSize: 20
});