Skip to content

Commit 6dcb7a0

Browse files
committed
Update to KorGE 6.0.0
1 parent 51e42ea commit 6dcb7a0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+27
-16
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323

2424
steps:
2525
- uses: actions/checkout@v3
26-
- name: Set up JDK 11
26+
- name: Set up JDK 21
2727
uses: actions/setup-java@v3
2828
with:
29-
java-version: '11'
29+
java-version: '21'
3030
distribution: 'temurin'
3131
- name: Build & Test with Gradle
3232
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/.gradle
22
/.idea
3+
/.kotlin
34
/build
45
/deps
56
/modules

build.gradle.kts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ korge {
1818

1919
targetJvm()
2020
targetJs()
21-
targetIos()
22-
targetAndroidDirect()
21+
//targetIos()
22+
targetAndroid()
2323
serializationJson()
2424
}
2525

26+
kotlin {
27+
jvmToolchain(21)
28+
}
29+
2630
dependencies {
2731
add("commonMainApi", project(":deps"))
2832
}

gradle.properties

Lines changed: 0 additions & 2 deletions
This file was deleted.

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[plugins]
2-
korge = { id = "com.soywiz.korge", version = "5.3.2" }
2+
korge = { id = "com.soywiz.korge", version = "6.0.0" }
33
#korge = { id = "com.soywiz.korge", version = "999.0.0.999" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

korge-k3d/src/commonMain/kotlin/korlibs/korge3d/tween/tween.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ package korlibs.korge3d.tween
55
import korlibs.korge.tween.get
66
import korlibs.korge.tween.tween
77
import korlibs.korge3d.View3D
8-
import korlibs.math.interpolation.Easing
8+
import korlibs.math.interpolation.*
99
import korlibs.time.*
10+
import kotlin.time.*
1011

1112
@PublishedApi
1213
internal val DEFAULT_EASING = Easing.EASE_IN_OUT_QUAD
@@ -20,9 +21,9 @@ internal val DEFAULT_TIME = 1.seconds
2021
//suspend fun View3D.hide(time: TimeSpan = DEFAULT_TIME, easing: Easing = DEFAULT_EASING) =
2122
// tween(this::alpha[0.0], time = time, easing = easing)
2223

23-
suspend inline fun View3D.moveTo(x: Float, y: Float, z: Float, time: TimeSpan = DEFAULT_TIME, easing: Easing = DEFAULT_EASING) = tween(this::x[x], this::y[y], this::z[z], time = time, easing = easing)
24-
suspend inline fun View3D.moveBy(dx: Float, dy: Float, dz: Float, time: TimeSpan = DEFAULT_TIME, easing: Easing = DEFAULT_EASING) = tween(this::x[this.x + dx], this::y[this.y + dy], this::z[this.z + dz], time = time, easing = easing)
25-
suspend inline fun View3D.scaleTo(sx: Float, sy: Float, sz: Float, time: TimeSpan = DEFAULT_TIME, easing: Easing = DEFAULT_EASING) = tween(this::scaleX[sx], this::scaleY[sy], this::scaleZ[sz], time = time, easing = easing)
24+
suspend inline fun View3D.moveTo(x: Float, y: Float, z: Float, time: Duration = DEFAULT_TIME, easing: Easing = DEFAULT_EASING) = tween(this::x[x], this::y[y], this::z[z], time = time, easing = easing)
25+
suspend inline fun View3D.moveBy(dx: Float, dy: Float, dz: Float, time: Duration = DEFAULT_TIME, easing: Easing = DEFAULT_EASING) = tween(this::x[this.x + dx], this::y[this.y + dy], this::z[this.z + dz], time = time, easing = easing)
26+
suspend inline fun View3D.scaleTo(sx: Float, sy: Float, sz: Float, time: Duration = DEFAULT_TIME, easing: Easing = DEFAULT_EASING) = tween(this::scaleX[sx], this::scaleY[sy], this::scaleZ[sz], time = time, easing = easing)
2627

2728
//suspend inline fun View3D.rotateTo(deg: Angle, time: TimeSpan = DEFAULT_TIME, easing: Easing = DEFAULT_EASING) =
2829
// tween(this::rotationRadians[deg.radians], time = time, easing = easing)
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)