jeff
12/27/2020, 9:08 PMnpm()
but that doesn't seem to resolve.Pablo Caviglia
12/28/2020, 3:13 PMscene.launchImmediately {
animate(completeOnCancel = false) {
sequence(looped = true) {
parallel {
circleOuter.moveToWithSpeed(width - 100, 0.0)
circleInner.moveToWithSpeed(width - 100, 0.0)
}
parallel {
circleOuter.moveTo(width - 100, height - 100)
circleInner.moveTo(width - 100, height - 100)
}
}
}
}
even after setting looped=true I'm not getting an animated loop, just one animation and then it gets finishedPablo Caviglia
12/28/2020, 5:41 PMGregor Zeitlinger
12/30/2020, 9:29 AMIndex: korge-gradle-plugin/src/main/kotlin/com/soywiz/korge/gradle/targets/jvm/Jvm.kt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/korge-gradle-plugin/src/main/kotlin/com/soywiz/korge/gradle/targets/jvm/Jvm.kt b/korge-gradle-plugin/src/main/kotlin/com/soywiz/korge/gradle/targets/jvm/Jvm.kt
--- a/korge-gradle-plugin/src/main/kotlin/com/soywiz/korge/gradle/targets/jvm/Jvm.kt (revision Staged)
+++ b/korge-gradle-plugin/src/main/kotlin/com/soywiz/korge/gradle/targets/jvm/Jvm.kt (date 1609320472418)
@@ -9,6 +9,7 @@
import org.gradle.api.tasks.bundling.*
import org.gradle.api.tasks.testing.*
import org.gradle.jvm.tasks.Jar
+import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
import org.jetbrains.kotlin.gradle.plugin.mpp.*
import proguard.gradle.*
@@ -19,6 +20,7 @@
val jvmTarget = jvmPreset.createTarget("jvm")
gkotlin.targets.add(jvmTarget)
//jvmTarget.attributes.attribute(KotlinPlatformType.attribute, KotlinPlatformType.jvm)
+ jvmTarget.withJava()
project.korge.addDependency("jvmMainImplementation", "org.jetbrains.kotlin:kotlin-stdlib-jdk8")
project.korge.addDependency("jvmTestImplementation", "org.jetbrains.kotlin:kotlin-test")
Mayank
01/03/2021, 1:20 PMjeff
01/11/2021, 4:32 PMError Compiling Shader
crash (blank white game window) this morning. No changes on my side, was working fine yesterday. I did install updates on Ubuntu, didn't notice if there was anything OpenGL-related. Anyone seen something similar?jeff
01/11/2021, 8:28 PM.scale
of most views does not affect the output of getBounds()
(SolidRect for example). But changing the .scale
of Text
views does (slightly) -- is that expected?Jess Nielsen
01/12/2021, 7:31 AMjeff
01/16/2021, 8:16 PMjeff
01/18/2021, 1:53 AMtween
cause an ugly flicker. Is there a better way to avoid that than manually tracking Jobs? Example in 🧵Michael Sigl
01/21/2021, 12:52 PMMichael Sigl
01/22/2021, 12:12 PMMayank
01/23/2021, 2:29 PMMayank
01/24/2021, 7:30 PMjeff
01/24/2021, 8:09 PMMax
01/27/2021, 10:18 PMtobsef
01/28/2021, 8:17 PMView
-classes are not open
anymore? For exampe in my game, I extend Image
to add some meta data to it. But this isn't possible in Korge 2.0.5.1
anymore. It's also not consistence because these views are open: Circle, Mesh, Sprite, Text,Michael Sigl
01/30/2021, 12:14 AMjavaClass.enclosingMethod.name
in java, but java is not available and I don't want to just run on the jvmMain, I want to have commonMain. So is there any way to get and execute a method with just its name as string?tobsef
01/30/2021, 10:26 AMMichael Sigl
01/30/2021, 2:24 PMjeff
01/30/2021, 7:44 PMMyCustomComponent : Component
) that is attached to a view IFF it is already attached (i.e. don't create one if it doesn't exist)?jeff
02/02/2021, 6:55 PMDeactivated User
02/04/2021, 2:45 PMCh8n
02/05/2021, 2:55 PMCh8n
02/06/2021, 10:11 AMcamera
and cameraContainer
?Michael Sigl
02/11/2021, 7:03 AMMichael Sigl
02/11/2021, 4:50 PMTrevor
02/27/2021, 6:01 PMDeactivated User
03/05/2021, 10:16 AMcoroutineContext
, or being called from a suspend function. You can use the old version with playOld
but you might have issues with sounds being stopped in some cases. Details here: https://github.com/korlibs/korge-next/pull/181
## Fixes
* Fixed BitSet memory usage. https://github.com/korlibs/korge-next/pull/179 Thanks @andrei-cosmin !
* Added missing Pinned<FloatArray>.startAddressOf
and Pinned<DoubleArray>.startAddressOf
* Fixes AudioData.toStream hang
* Prevents audio from stop working when spamming on JVM/JNA/OpenAL
* Fixes audio not playing when loaded from one coroutineContext Job that was already completed
* Fixes audio startup on JS. Now it tries to unlock audio when KorGE starts, so any initial user input event will unlock audio.
## New features
* Support trimmed atlases on BaseImage, Sprite, etc. https://github.com/korlibs/korge-next/pull/172 Thanks @jobe-m !
* Added FlagFilter. https://github.com/korlibs/korge-next/pull/182 Thanks @MikeSmithEU !
* Added arrayinterleave
to kmem
* Added FastByteTransfer
, FastShortTransfer
, FastIntTransfer
, FastFloatTransfer
to be able to unsafely read/write from/to arrays faster on K/N while working on all the targets
* Added waitSubscriber
and waitSubscriberCloseable
## Performance improvements
* Substantial performance improvement on audio on Android and Win32
* Cache refresh rate from displays (fixes low framerate regression on some linux setups)
* arraycopy in MemBuffer is now faster on Kotlin/Native
* arrayfill now uses the embedded array filling from the stdlib
* WeakMap.getOrPut is now inline
* Improve performance of some Audio operations on all the targets
## Deprecations
* Deprecate redirect(KProperty)
and KProperty.redirected
since by ::field
already does that on latest versions of KotlinLucas Hebinger
03/17/2021, 6:06 PM