Pal Matolay
06/14/2020, 11:36 PMendFrame
instead of `startFrame`or similar)
(Because by default it goes back to the first frame at the end of the animation.)andylamax
06/15/2020, 12:05 AMarocnies
06/15/2020, 2:28 AMrunJs
and everything is several times larger than you expect (works fine in runJVM
)?Pal Matolay
06/15/2020, 4:58 AMarocnies
06/16/2020, 4:26 AMarnis71
06/16/2020, 10:24 AMNico
06/16/2020, 5:27 PMhttps://www.youtube.com/watch?v=31V6ZnMvrkY&feature=youtu.be▾
tobsef
06/16/2020, 10:21 PMstage.onKeyDown {
log.debug { "Pressed key: $it.key" }
}
| It's always N1
for Numpad and normal numbers
But it should also return KP_1
.
This is the behavior if numlock is enabled. If it's disabled, the numpad keys are mapped to the arrows DOWN, UP, LEFT & RIGHTandylamax
06/17/2020, 2:19 AMPipeCruz
06/18/2020, 2:19 AMDeactivated User
06/19/2020, 9:55 PMSerVB
06/19/2020, 11:25 PMplugins
DSL is more convenient for me but it seems I can't use it because there is no up-to-date plugin at Gradle Plugins Portal...SerVB
06/20/2020, 12:50 AMval c = circle()
and then when I don't need it I must do c.removeFromParent()
to avoid memory leaks. Can I just draw a circle without creating an object? Like in Canvas2D Web API, for example?SerVB
06/20/2020, 1:51 PMSerVB
06/20/2020, 3:09 PMsuspend fun main() = Korge {
val t = resourcesVfs["korge.png"].readBitmap()
image(t)
}
However, if I add an icon, the program seems to block at val t
line so no rendering happens after it:
suspend fun main() = Korge(icon = resourcesVfs["korge.png"].readBitmap()) {
val t = resourcesVfs["korge.png"].readBitmap()
image(t)
}
Is it expected?SerVB
06/20/2020, 4:24 PMconstructor(
bmpSlice: BmpSlice = Bitmaps.white,
anchorX: Double = 0.0,
anchorY: Double = anchorX,
hitShape: VectorPath? = null,
smoothing: Boolean = true
) : this(bmpSlice.bmp, anchorX, anchorY, hitShape, smoothing) // <= it seems that here the full bmp is taken
Is it expected? My workaround is to call bmpSlice.extract()
...dector
06/21/2020, 1:44 PMNico
06/21/2020, 3:32 PMNico
06/22/2020, 9:51 AMkotlin
closure is not available in the consuming project?Nico
06/22/2020, 4:45 PMhttps://youtu.be/fZUL8_kgHXg▾
janvladimirmostert
06/23/2020, 7:48 PMval commonMain by getting {
dependencies {
implementation(kotlin("stdlib-common"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serializationVersion")
implementation("com.soywiz.korlibs.klock:klock:1.10.3")
settings.gradle.kts
enableFeaturePreview("GRADLE_METADATA")
when i use this snippet to test it
import com.soywiz.klock.DateTimeTz
fun main() {
val local = DateTimeTz.nowLocal()
println(local)
println(local.toString("yyyy-MM-dd"))
gradle build complains about Unresolved reference: soywiz
Nico
06/24/2020, 6:22 AMNico
06/26/2020, 10:09 AMPablo Caviglia
06/26/2020, 11:37 AMNico
06/28/2020, 8:19 PMandylamax
06/28/2020, 8:23 PMandylamax
06/28/2020, 8:34 PMandylamax
06/28/2020, 8:36 PMNico
06/30/2020, 8:01 PMhttps://youtu.be/pdUEQP1Ry08▾
Deactivated User
07/01/2020, 11:12 AMDeactivated User
07/01/2020, 11:12 AMRishav Sharan
07/01/2020, 11:44 AM