MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / StartCurrentAction

Method StartCurrentAction

Player.js:1175–1188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1173
1174
1175 StartCurrentAction() {
1176 this.aiActionMaxTime = floor(this.currentAction.holdTime * 30);
1177 this.aiActionTimer = 0;
1178 if (this.currentAction.isJump) {
1179 this.jumpHeld = true;
1180 }
1181 if (this.currentAction.xDirection === -1) {
1182 this.leftHeld = true;
1183 this.rightHeld = false;
1184 } else if (this.currentAction.xDirection === 1) {
1185 this.leftHeld = false;
1186 this.rightHeld = true;
1187 }
1188 }
1189
1190 EndCurrentAction() {
1191 if (this.currentAction.isJump) {

Callers 1

UpdateAIActionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected