我是新手phaser,我試圖創建一個「懸停」事件。也就是說,當鼠標懸停在對象上時,它顯示了一些東西。下面是代碼: var hoverPS, hoverEG, hoverAQI, AQIBar, ecoBar, pubBar;
var Game = {
create: function() {
this.add.sprite(0, 0, 'game-bg');
t
的代碼是這樣的: function RainDrops(charLabel){
this.xLocArray = [50, 120, 190, 260]; //Array for x pos
this.charLabel = charLabel;
this.rainCreator = function(){
var x = Math.floor