Skip to content

Commit

Permalink
Merge pull request #483 from lucasnlm/bump-gdx
Browse files Browse the repository at this point in the history
Bump libgdx version
  • Loading branch information
lucasnlm authored Nov 18, 2023
2 parents 6b5a457 + bc8a4f0 commit d47e5b6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
7 changes: 7 additions & 0 deletions core/src/main/java/dev/lucasnlm/antimine/core/models/Area.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,11 @@ data class Area(
companion object {
const val BYTE_SIZE = 20 * Int.SIZE_BYTES
}

val isOdd: Boolean =
if (posY % 2 == 0) {
posX % 2 != 0
} else {
posX % 2 == 0
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ class GameApplicationListener(
atlas = null
}

minefieldStage.dispose()

Gdx.input.inputProcessor = null
boundMinefield = null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ class AreaActor(
bottomRight = field.getOrNull(bottomRightId)?.canLinkTo(area) == true,
)
}

else -> {
AREA_NO_FORM
}
Expand Down Expand Up @@ -341,12 +340,7 @@ class AreaActor(
val area = this.area ?: return

batch?.run {
val isOdd: Boolean =
if (area.posY % 2 == 0) {
area.posX % 2 != 0
} else {
area.posX % 2 == 0
}
val isOdd = area.isOdd

drawBackground(this, isOdd)

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ coreKtxVersion = "1.5.0"
coreSplashscreen = "1.1.0-alpha02"
espressoCore = "3.5.1"
fragmentKtx = "1.6.2"
gdx = "1.11.0"
gdx = "1.12.1"
google-coreKtx = "1.8.1"
junit = "4.13.2"
junitVersion = "1.1.5"
Expand Down

0 comments on commit d47e5b6

Please sign in to comment.