com.badlogic.gdx.graphics.g2d.Animation.PlayMode Java Examples
The following examples show how to use
com.badlogic.gdx.graphics.g2d.Animation.PlayMode.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #2
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #3
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #4
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #5
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #6
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #7
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #8
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #9
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #10
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #11
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #12
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #13
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #14
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #15
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #16
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #17
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #18
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #19
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #20
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #21
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #22
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #23
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #24
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #25
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #26
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #27
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #28
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #29
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }
Example #30
Source File: Assets.java From ud406 with MIT License | 6 votes |
public GigaGalAssets(TextureAtlas atlas) { standingLeft = atlas.findRegion(Constants.STANDING_LEFT); standingRight = atlas.findRegion(Constants.STANDING_RIGHT); walkingLeft = atlas.findRegion(Constants.WALKING_LEFT_2); walkingRight = atlas.findRegion(Constants.WALKING_RIGHT_2); jumpingLeft = atlas.findRegion(Constants.JUMPING_LEFT); jumpingRight = atlas.findRegion(Constants.JUMPING_RIGHT); Array<AtlasRegion> walkingLeftFrames = new Array<AtlasRegion>(); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_1)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_2)); walkingLeftFrames.add(atlas.findRegion(Constants.WALKING_LEFT_3)); walkingLeftAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingLeftFrames, PlayMode.LOOP); Array<AtlasRegion> walkingRightFrames = new Array<AtlasRegion>(); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_1)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_2)); walkingRightFrames.add(atlas.findRegion(Constants.WALKING_RIGHT_3)); walkingRightAnimation = new Animation(Constants.WALK_LOOP_DURATION, walkingRightFrames, PlayMode.LOOP); }