我是新手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