Skip to content

Commit 674c125

Browse files
Addition of animations for sky and ThomasGodiva
1 parent bd0255f commit 674c125

16 files changed

Lines changed: 1456 additions & 10 deletions

File tree

3.33 KB
Loading

kapotopia/android/assets/World1/Game1/nightsky.atlas

Lines changed: 718 additions & 0 deletions
Large diffs are not rendered by default.
628 KB
Loading
660 KB
Loading
290 KB
Loading

kapotopia/android/assets/game3/intro/tom.atlas

Lines changed: 712 additions & 0 deletions
Large diffs are not rendered by default.
7 MB
Loading
334 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package gdx.kapotopia.Animations;
2+
3+
import com.badlogic.gdx.graphics.g2d.Animation;
4+
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
5+
import com.badlogic.gdx.utils.Array;
6+
7+
import gdx.kapotopia.AssetsManaging.AssetsManager;
8+
import gdx.kapotopia.Helpers.Builders.AnimationBuilder;
9+
10+
public class EvilTomAnimation extends AnimationAbstract {
11+
12+
public EvilTomAnimation(Animation.PlayMode playMode) {
13+
14+
TextureAtlas atlas = AssetsManager.getInstance().getAtlasByPath("game3/intro/tom.atlas");
15+
Array<TextureAtlas.AtlasRegion> r = atlas.findRegions("tom");
16+
TextureAtlas.AtlasRegion[] array = r.toArray();
17+
18+
setAnimation(new AnimationBuilder(0.05f).withPlayMode(playMode)
19+
.addFrames(array).build());
20+
}
21+
}

kapotopia/core/src/gdx/kapotopia/Animations/SkyBackgroundAnimation.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ public class SkyBackgroundAnimation extends AnimationAbstract {
1111

1212
public SkyBackgroundAnimation(Animation.PlayMode playMode) {
1313

14-
TextureAtlas atlas = AssetsManager.getInstance().getAtlasByPath("World1/Game1/sky2.atlas");
15-
Array<TextureAtlas.AtlasRegion> r = atlas.findRegions("sky");
14+
TextureAtlas atlas = AssetsManager.getInstance().getAtlasByPath("World1/Game1/nightsky.atlas");
15+
Array<TextureAtlas.AtlasRegion> r = atlas.findRegions("Ciel");
1616
TextureAtlas.AtlasRegion[] array = r.toArray();
1717

18-
setAnimation(new AnimationBuilder(0.5f).withPlayMode(playMode)
18+
setAnimation(new AnimationBuilder(0.05f).withPlayMode(playMode)
1919
.addFrames(array).build());
2020
}
2121
}

0 commit comments

Comments
 (0)