mirror of
https://github.com/IllusionMan1212/adventures-of-kuroneko.git
synced 2026-10-24 02:12:36 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
ig.module(
|
||||
'game.entities.easteregg'
|
||||
)
|
||||
.requires(
|
||||
'impact.entity',
|
||||
'game.entities.kuroneko',
|
||||
'game.entities.cheese',
|
||||
)
|
||||
.defines(function() {
|
||||
EntityEasteregg = EntityCheese.extend({
|
||||
|
||||
animSheet: new ig.AnimationSheet('media/easteregg.png', 32, 32),
|
||||
|
||||
collideWith: function(other, axis) {
|
||||
this.player = ig.game.getEntitiesByType(EntityKuroneko)[0];
|
||||
if (other instanceof EntityKuroneko) {
|
||||
this.kill();
|
||||
ig.game.score += 10000;
|
||||
if (this.player.health < 4) {
|
||||
this.player.health += 4;
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user