Skip to content

Commit

Permalink
fix: fix double jump
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubKostrzewsky committed Apr 21, 2024
1 parent c81db87 commit b81f5f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (flutterVersionName == null) {
android {
namespace "com.example.endless_runner"
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
ndkVersion "25.1.8937393"

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand Down
3 changes: 1 addition & 2 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
org.gradle.java.home=/Users/Agnieszka/Library/Java/JavaVirtualMachines/corretto-20.0.2.1/Contents/Home
android.enableJetifier=true
Binary file modified assets/animations/map.riv
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,13 @@ class LightsOutEco extends SpriteAnimationGroupComponent<EcoLightsOutState>
if (_canDoubleJump) {
jumpEffect = JumpEffect(Vector2(0, -_jumpLength)..scaleTo(_jumpLength));
_canDoubleJump = false;
add(jumpEffect);
}
} else {
_canDoubleJump = true;
jumpEffect = JumpEffect(Vector2(0, -_jumpLength / 2 - 100));
add(jumpEffect);
}
add(jumpEffect);

if (!inAir) {
game.audioController.playSfx(SfxType.jump);
Expand Down

0 comments on commit b81f5f2

Please sign in to comment.