|
|
@@ -116,7 +116,7 @@ class Marker { |
|
|
|
|
|
|
|
void display() { |
|
|
|
if (!dead) { |
|
|
|
frameIdle = (frameIdle+2) % idleImageCount; |
|
|
|
frameIdle = (frameIdle+1) % idleImageCount; |
|
|
|
if (waitForPlay) { |
|
|
|
if (frameIdle >= idleImageCount - 1) { |
|
|
|
waitForPlay = false; |
|
|
@@ -124,7 +124,7 @@ class Marker { |
|
|
|
} |
|
|
|
} |
|
|
|
if (playAction) { |
|
|
|
frameAction = (frameAction+2) % actionImageCount; |
|
|
|
frameAction = (frameAction+1) % actionImageCount; |
|
|
|
renderer.image(actionImages[frameAction], canvasPosX, canvasPosY, canvasImgW, canvasImgH); |
|
|
|
if (frameAction >= actionImageCount - 3) { |
|
|
|
playAction = false; |