From 4af4733477f0a2001612493c71b798a4ef3dc638 Mon Sep 17 00:00:00 2001 From: geeksploit Date: Sat, 9 Sep 2017 13:03:16 +0300 Subject: [PATCH 1/6] Update the Android Gradle plugin. --- 2.1.06-Exercise-LoadA9Patch/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.1.06-Exercise-LoadA9Patch/build.gradle b/2.1.06-Exercise-LoadA9Patch/build.gradle index 105f655..c796eef 100644 --- a/2.1.06-Exercise-LoadA9Patch/build.gradle +++ b/2.1.06-Exercise-LoadA9Patch/build.gradle @@ -6,7 +6,7 @@ buildscript { } dependencies { classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6' - classpath 'com.android.tools.build:gradle:2.2.3' + classpath 'com.android.tools.build:gradle:2.3.3' classpath 'org.robovm:robovm-gradle-plugin:1.8.0' } } From b7e1621deb27068cf4b5f63b88d66b6f4586eed2 Mon Sep 17 00:00:00 2001 From: geeksploit Date: Sat, 9 Sep 2017 13:14:53 +0300 Subject: [PATCH 2/6] Fix access modifiers. --- .../core/src/com/udacity/gamedev/ninepatch/NinePatchDemo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2.1.06-Exercise-LoadA9Patch/core/src/com/udacity/gamedev/ninepatch/NinePatchDemo.java b/2.1.06-Exercise-LoadA9Patch/core/src/com/udacity/gamedev/ninepatch/NinePatchDemo.java index 4400197..c815b05 100644 --- a/2.1.06-Exercise-LoadA9Patch/core/src/com/udacity/gamedev/ninepatch/NinePatchDemo.java +++ b/2.1.06-Exercise-LoadA9Patch/core/src/com/udacity/gamedev/ninepatch/NinePatchDemo.java @@ -13,8 +13,8 @@ public class NinePatchDemo extends ApplicationAdapter { private static final float TEST_SIZE_1 = 20; private static final float TEST_SIZE_2 = 40; - SpriteBatch batch; - FitViewport viewport; + private SpriteBatch batch; + private FitViewport viewport; // TODO: Add a Texture for the raw platform image From 7f0922be3dedb839530939a64f85274eaf26c043 Mon Sep 17 00:00:00 2001 From: geeksploit Date: Mon, 11 Sep 2017 15:25:52 +0300 Subject: [PATCH 3/6] Update the Android Gradle plugin. --- 2.1.07-Exercise-Animations/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.1.07-Exercise-Animations/build.gradle b/2.1.07-Exercise-Animations/build.gradle index 832d14d..e92174c 100644 --- a/2.1.07-Exercise-Animations/build.gradle +++ b/2.1.07-Exercise-Animations/build.gradle @@ -6,7 +6,7 @@ buildscript { } dependencies { classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6' - classpath 'com.android.tools.build:gradle:2.2.3' + classpath 'com.android.tools.build:gradle:2.3.3' classpath 'org.robovm:robovm-gradle-plugin:1.8.0' } } From 50eeb3b2dafc01ee55cba2c06560844162514db6 Mon Sep 17 00:00:00 2001 From: geeksploit Date: Mon, 11 Sep 2017 15:56:45 +0300 Subject: [PATCH 4/6] Fix access modifiers. --- .../gamedev/animations/Animations.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/2.1.07-Exercise-Animations/core/src/com/udacity/gamedev/animations/Animations.java b/2.1.07-Exercise-Animations/core/src/com/udacity/gamedev/animations/Animations.java index 881e183..782075a 100644 --- a/2.1.07-Exercise-Animations/core/src/com/udacity/gamedev/animations/Animations.java +++ b/2.1.07-Exercise-Animations/core/src/com/udacity/gamedev/animations/Animations.java @@ -23,14 +23,14 @@ public class Animations extends ApplicationAdapter { private static final float WALK_LOOP_FRAME_DURATION = 0.1f; - SpriteBatch batch; - ExtendViewport viewport; + private SpriteBatch batch; + private ExtendViewport viewport; - Animation walkLoop; - long startTime; + private Animation walkLoop; + private long startTime; - Animation explosion; - DelayedRemovalArray explosions; + private Animation explosion; + private DelayedRemovalArray explosions; @Override public void create() { @@ -141,12 +141,12 @@ private void updateExplosions() { } - class OneShotAnimation { - public final Vector2 position; + private class OneShotAnimation { + final Vector2 position; private final Animation animation; private final long startTimeNanos; - public OneShotAnimation(Animation animation, Vector2 position, long startTimeNanos) { + OneShotAnimation(Animation animation, Vector2 position, long startTimeNanos) { this.animation = animation; this.position = position; this.startTimeNanos = startTimeNanos; @@ -156,11 +156,11 @@ private float elapsedTime() { return MathUtils.nanoToSec * (TimeUtils.nanoTime() - startTimeNanos); } - public TextureRegion getFrame() { + TextureRegion getFrame() { return animation.getKeyFrame(elapsedTime()); } - public boolean isAnimationFinished() { + boolean isAnimationFinished() { return animation.isAnimationFinished(elapsedTime()); } From acdc6b6524ae943d7378a426c70f4a9af281ba4c Mon Sep 17 00:00:00 2001 From: geeksploit Date: Tue, 12 Sep 2017 20:51:07 +0300 Subject: [PATCH 5/6] Update the Android Gradle plugin. --- 2.1.08-Exercise-CreatingATextureAtlas/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.1.08-Exercise-CreatingATextureAtlas/build.gradle b/2.1.08-Exercise-CreatingATextureAtlas/build.gradle index 91a6319..8dce658 100644 --- a/2.1.08-Exercise-CreatingATextureAtlas/build.gradle +++ b/2.1.08-Exercise-CreatingATextureAtlas/build.gradle @@ -13,7 +13,7 @@ buildscript { } dependencies { classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6' - classpath 'com.android.tools.build:gradle:2.2.3' + classpath 'com.android.tools.build:gradle:2.3.3' classpath 'org.robovm:robovm-gradle-plugin:1.8.0' // TODO: Add buildscript dependency on gdx-tools classpath "com.badlogicgames.gdx:gdx-tools:1.7.0" From f8f793db1cfffb2134833ef265760ca41c081298 Mon Sep 17 00:00:00 2001 From: geeksploit Date: Tue, 12 Sep 2017 22:04:08 +0300 Subject: [PATCH 6/6] Fix access modifiers. --- .../udacity/gamedev/textureatlas/TextureAtlasExercise.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2.1.08-Exercise-CreatingATextureAtlas/core/src/com/udacity/gamedev/textureatlas/TextureAtlasExercise.java b/2.1.08-Exercise-CreatingATextureAtlas/core/src/com/udacity/gamedev/textureatlas/TextureAtlasExercise.java index 39230f8..71d290c 100644 --- a/2.1.08-Exercise-CreatingATextureAtlas/core/src/com/udacity/gamedev/textureatlas/TextureAtlasExercise.java +++ b/2.1.08-Exercise-CreatingATextureAtlas/core/src/com/udacity/gamedev/textureatlas/TextureAtlasExercise.java @@ -9,7 +9,7 @@ public class TextureAtlasExercise extends ApplicationAdapter implements AssetErrorListener { - public static final String TAG = TextureAtlasExercise.class.getName(); + private static final String TAG = TextureAtlasExercise.class.getName(); private static final String ATLAS = "images/gigagal.pack.atlas"; private static final String STANDING_RIGHT = "standing-right"; @@ -17,7 +17,7 @@ public class TextureAtlasExercise extends ApplicationAdapter implements AssetErr // TODO: Add an AssetManager - SpriteBatch batch; + private SpriteBatch batch; // TODO: Add an AtlasRegion to hold the standing right sprite