Derek Berner
12/20/2019, 4:59 PMdector
05/31/2020, 8:05 PMThe genre and theme of the game will be made public once the JAM starts.Just wondering if there are some specific goals to limit games to some genre? Usually game jams make limitations about theme only.
Dima Avdeev
06/01/2020, 2:55 AMdector
06/01/2020, 5:34 AMdector
06/01/2020, 5:23 PMrunJvm
on 2048 sample. Nothing in logs, however. Are there some things I can do to get quick debug info?
I will be able to do full debug session, but later.Nico
06/01/2020, 6:06 PMRishav Sharan
06/01/2020, 6:21 PMRishav Sharan
06/01/2020, 7:59 PMDima Avdeev
06/02/2020, 5:49 AMsuspend fun main() = Korge(...) {
this.filter = BlurFilter()
this.invalidate()
...
but after that screen is black.
Is it possible to add custom filter to the Stage, or another Container ?Rishav Sharan
06/02/2020, 9:37 AMvar exitButton = textButton(256.0, 32.0) {
text = "Exit Game"
position(100, 400 + 32)
onClick {
sceneContainer.changeToAsync<PlayScene>()
}
enable()
}
Prasanth
06/02/2020, 2:51 PMimage.onClick {
print("mouse clicked")
}
but nothing is getting printed. I am running korge with runJs.RezMike
06/02/2020, 8:54 PMDeactivated User
06/02/2020, 11:47 PM1.12.12.0
Rishav Sharan
06/03/2020, 4:13 AMRishav Sharan
06/03/2020, 4:37 AMclass PlayScene(val myDependency: MyDependency) : Scene() {
suspend override fun Container.sceneInit() {
text("Play Scene: ${myDependency.value}") {
filtering = false
position(10, 10)
}
2. In my sceneInit, i have added multiple game objects and want to be able to refer to one object from within the addupdater code of the other object
class PlayScene(val myDependency: MyDependency) : Scene() {
suspend override fun Container.sceneInit() {
var ball = circle (....
var paddle = SolidRect(....
For example, I want to add a check in the add updater for ball object that gets the position and dimensions of the paddle object every tick, so I can do simple bound checking. However, I am not able to call one objects from within another. WHat would be the way to go about it?r4zzz4k
06/03/2020, 9:45 AMRishav Sharan
06/03/2020, 12:20 PMvar breakTime = 3
var breakTimeText = text("Starting game in $breakTime seconds") {
position(10, 500)
addUpdater {
Count down to 0 in 1 sec intervals
update breakTime on each interval
if 0, then call function breakOver
}
}
i want the counter to go down to zero and then call a function. any tips on how I can achieve that?Rishav Sharan
06/03/2020, 3:01 PMpaused
or something similar in Korge, which stops the game ticks?
Currently, I am trying to implement Paused with a simple flag and adding a check in every single game object but was wondering if there is a better way to do the samekirillrakhman
06/03/2020, 8:35 PMclass MenuScene : Scene() {
override suspend fun Container.sceneInit() {
text("Play") {
onClick {
println("Changing to Game scene")
sceneContainer.changeTo<GameScene>()
}
}
}
}
but the event never triggers.Rishav Sharan
06/03/2020, 8:55 PMDeactivated User
06/03/2020, 8:58 PMRishav Sharan
06/03/2020, 9:11 PMDima Avdeev
06/04/2020, 10:16 AMMarcin Wisniowski
06/04/2020, 11:28 AMYou can also use KorGE as a library and for example integrated it in your android-only project.But I don't see that anywhere in the documentation. How can I use KorGE as a library for an Android app? I.e. I have an existing Android app project, and I want to add a new screen where I use KorGE (imagine an easter egg game screen in a normal non-game app). So I'd need to put KorGE in an Android
View
or Fragment
.Rishav Sharan
06/04/2020, 2:53 PMkirillrakhman
06/04/2020, 3:07 PM17:07 Unknown Module Type
Cannot determine module type ("korge") for the following module:"three-in-a-row"
The module will be treated as a Unknown module.
Deactivated User
06/04/2020, 3:18 PM1.12.14.0
Nico
06/04/2020, 7:15 PMdector
06/05/2020, 1:58 AMonClick {}
?kirillrakhman
06/05/2020, 8:20 AMkirillrakhman
06/05/2020, 8:20 AMNico
06/05/2020, 8:23 AMModule
https://github.com/korlibs/korge/blob/b5f22c96a2478441de5cdea995ffb8876b7cdcee/korge/src/commonMain/kotlin/com/soywiz/korge/scene/Module.kt#L27RezMike
06/05/2020, 8:24 AMsize
property in Modulekirillrakhman
06/05/2020, 8:24 AMDeactivated User
06/05/2020, 10:06 AMNico
06/05/2020, 10:08 AMDeactivated User
06/05/2020, 10:09 AMNico
06/07/2020, 8:58 AM