优化动画
This commit is contained in:
parent
fdabea761e
commit
4f1de3b41c
2 changed files with 13 additions and 7 deletions
|
@ -509,7 +509,7 @@ public class AnnihilatorEntity extends Entity implements GeoEntity, ICannonEntit
|
||||||
}
|
}
|
||||||
|
|
||||||
private PlayState movementPredicate(AnimationState<AnnihilatorEntity> event) {
|
private PlayState movementPredicate(AnimationState<AnnihilatorEntity> event) {
|
||||||
if (this.entityData.get(COOL_DOWN) > 80) {
|
if (this.entityData.get(COOL_DOWN) > 85) {
|
||||||
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.annihilator.fire"));
|
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.annihilator.fire"));
|
||||||
}
|
}
|
||||||
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.annihilator.idle"));
|
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.annihilator.idle"));
|
||||||
|
|
|
@ -41,7 +41,8 @@
|
||||||
"0.0": [0, 0, 0],
|
"0.0": [0, 0, 0],
|
||||||
"0.0083": [1, 1, 1],
|
"0.0083": [1, 1, 1],
|
||||||
"0.1917": [1, 1, 1],
|
"0.1917": [1, 1, 1],
|
||||||
"0.5": [0, 0, 0]
|
"0.5": [0, 0, 0],
|
||||||
|
"0.9917": [0, 0, 0]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"light1": {
|
"light1": {
|
||||||
|
@ -57,7 +58,8 @@
|
||||||
"0.0": [0, 0, 0],
|
"0.0": [0, 0, 0],
|
||||||
"0.0083": [1, 1, 1],
|
"0.0083": [1, 1, 1],
|
||||||
"0.1917": [1, 1, 1],
|
"0.1917": [1, 1, 1],
|
||||||
"0.5": [0, 0, 0]
|
"0.5": [0, 0, 0],
|
||||||
|
"0.9917": [0, 0, 0]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"light2": {
|
"light2": {
|
||||||
|
@ -73,7 +75,8 @@
|
||||||
"0.0": [0, 0, 0],
|
"0.0": [0, 0, 0],
|
||||||
"0.0083": [1, 1, 1],
|
"0.0083": [1, 1, 1],
|
||||||
"0.1917": [1, 1, 1],
|
"0.1917": [1, 1, 1],
|
||||||
"0.5": [0, 0, 0]
|
"0.5": [0, 0, 0],
|
||||||
|
"0.9917": [0, 0, 0]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"light3": {
|
"light3": {
|
||||||
|
@ -89,7 +92,8 @@
|
||||||
"0.0": [0, 0, 1],
|
"0.0": [0, 0, 1],
|
||||||
"0.0083": [1, 1, 1],
|
"0.0083": [1, 1, 1],
|
||||||
"0.1917": [1, 1, 1],
|
"0.1917": [1, 1, 1],
|
||||||
"0.5": [0, 0, 1]
|
"0.5": [0, 0, 1],
|
||||||
|
"0.9917": [0, 0, 1]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"laser2": {
|
"laser2": {
|
||||||
|
@ -97,7 +101,8 @@
|
||||||
"0.0": [0, 0, 1],
|
"0.0": [0, 0, 1],
|
||||||
"0.0083": [1, 1, 1],
|
"0.0083": [1, 1, 1],
|
||||||
"0.1917": [1, 1, 1],
|
"0.1917": [1, 1, 1],
|
||||||
"0.5": [0, 0, 1]
|
"0.5": [0, 0, 1],
|
||||||
|
"0.9917": [0, 0, 1]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"laser3": {
|
"laser3": {
|
||||||
|
@ -105,7 +110,8 @@
|
||||||
"0.0": [0, 0, 1],
|
"0.0": [0, 0, 1],
|
||||||
"0.0083": [1, 1, 1],
|
"0.0083": [1, 1, 1],
|
||||||
"0.1917": [1, 1, 1],
|
"0.1917": [1, 1, 1],
|
||||||
"0.5": [0, 0, 1]
|
"0.5": [0, 0, 1],
|
||||||
|
"0.9917": [0, 0, 1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue