xxbokusu / 202007_1week

game_jam(Java Script)
0 stars 0 forks source link

視界の実装 #1

Open xxbokusu opened 4 years ago

xxbokusu commented 4 years ago

↓が参考になりそう https://github.com/mrMav/oblivious

    q.prototype.update = function() {
        this.imune && (this.tint = 16711680,
        this.alpha = 10 < this.game.time.now % 20 ? .5 : 1,
        this.game.time.now > this.imuneTimer && (this.imune = !1,
        this.alpha = 1,
        this.tint = 16777215));
        this.body.velocity.multiply(.8, .8)
    }

aplphaが怪しい… https://phaser.io/examples/v2/tweens/alpha-text コレや!

xxbokusu commented 4 years ago

image