Skip to content
Snippets Groups Projects
Commit a95e21c7 authored by Shengyu JIANG's avatar Shengyu JIANG
Browse files

fix animation bug and spider data reading bug

parent a706e562
No related branches found
No related tags found
No related merge requests found
Showing with 7 additions and 7 deletions
README_IMAGE/1.PNG

179 KiB

README_IMAGE/10.PNG

209 KiB

README_IMAGE/11.PNG

181 KiB

README_IMAGE/12.PNG

184 KiB

README_IMAGE/13.PNG

179 KiB

README_IMAGE/14.PNG

184 KiB

README_IMAGE/15.PNG

198 KiB

README_IMAGE/2.PNG

180 KiB

README_IMAGE/3.PNG

181 KiB

README_IMAGE/4.PNG

180 KiB

README_IMAGE/5.PNG

183 KiB

README_IMAGE/6.PNG

190 KiB

README_IMAGE/7.PNG

184 KiB

README_IMAGE/8.PNG

207 KiB

README_IMAGE/9.PNG

183 KiB

No preview for this file type
......@@ -23,16 +23,16 @@ SignUp,1,5
Chest,1,1
Witch,2,8,2,5
Skull,3,3,0,5
Spider,2,6,1,2,2
Spider,2,6,1,0,2
SignUp,1,10
Spider,1,9,1,0,5
Spider,1,9,1,0,3
Portal,10,5,5,7
Portal,5,7,10,5
Skeleton,5,4,1,4
SignDown,8,4
Skeleton,11,8,0,6
Skeleton,11,1,2,7
Spider,12,7,3,2,2
Spider,12,7,3,2,3
Spider,14,3,3,2,4
Skeleton,10,3,1,4
Skeleton,2,9,1,4
......@@ -50,6 +50,7 @@ public class Level {
private final int extraActorY = 4;
private final int extraInfo0 = 3;
private final int extraInfo1 = 4;
private final int extraInfo2 = 5;
//refreshRate
public static final int STEP_REFRESH = 63;
......@@ -480,7 +481,6 @@ public class Level {
checkInt(actorInfo[actorY], filename, lineNum) * TILED_LENGTH);
//add attribute
int extraInfo2 = 2;
add(new Spider(spawnPoint, checkInt(actorInfo[extraInfo0], filename, lineNum), checkInt(actorInfo[extraInfo1], filename, lineNum), checkInt(actorInfo[extraInfo2], filename, lineNum)));
}
......
......@@ -8,13 +8,13 @@ import myUtil.Vec2D;
public class Skeleton extends Actor {
//state
private static final int IDLE_VERTICAL = 0;
private static final int WALK_VERTICAL = 2;
private static final int IDLE_HORIZON = 1;
private static final int WALK_VERTICAL = 2;
private static final int WALK_HORIZON = 3;
private static final int IDLE_VERTICAL_LEFT = 4;
private static final int WALK_VERTICAL_LEFT = 5;
private static final int IDLE_HORIZON_LEFT = 6;
private static final int IDLE_HORIZON_LEFT = 5;
private static final int WALK_VERTICAL_LEFT = 6;
private static final int WALK_HORIZON_LEFT = 7;
private static final int LAYER = 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment