Zombie: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 240: Line 240:
this.animationFrame = (this.animationFrame + 1) % 4
this.animationFrame = (this.animationFrame + 1) % 4
this.sprite.tileData.lowBytes = this.animations[this.direction][this.animationFrame]
this.sprite.tileData.lowBytes = this.walkingAnimations[this.direction][this.animationFrame]
this.sprite.tileData.bank = 0x90
this.sprite.tileData.bank = 0x90
if (this.direction < DOWN_LEFT) {
if (this.direction < DOWN_LEFT) {
Line 250: Line 250:
}
}
animations = {
walkingAnimations = {
{ 0xCABC, 0xCADD, 0xCAFE, 0xCB1F },
{ 0xCABC, 0xCADD, 0xCAFE, 0xCB1F },
{ 0xCB40, 0xCB61, 0xCB82, 0xCBA3 },
{ 0xCB40, 0xCB61, 0xCB82, 0xCBA3 },
Line 376: Line 376:
// Unused. Exactly equivalent to the other animations table
// Unused. Exactly equivalent to the other animations table
walkingAnimations_Hard = {
animations_Hard = {
{ 0xCABC, 0xCADD, 0xCAFE, 0xCB1F },
{ 0xCABC, 0xCADD, 0xCAFE, 0xCB1F },
{ 0xCB40, 0xCB61, 0xCB82, 0xCBA3 },
{ 0xCB40, 0xCB61, 0xCB82, 0xCBA3 },