Questions tagged [korge]

Questions about KorGE game engine

Documentation: https://docs.korge.org/korge/

Github: https://github.com/korlibs/korge

23 questions
13
votes
2 answers

Problem after adding external dependencies in IntelliJ

I'm starting a project using the KorGE library, and I would like to use Retrofit as XML parser. So I try to follow this guide, which seems fine, but I just poorly get stuck by adding the dependencies in the first step. I already have the KorGE…
vsilaire
  • 131
  • 1
  • 5
4
votes
0 answers

I get an error when trying to build android releases for my KorGe app with Gradle

I'm working on a rather simple game with Kotlin using KorGe. It works just fine on the JVM, but when I try to run an androidDebug/release it throws the following error: Execution failed for task ':compileTestKotlinJvm'. Error while evaluating…
3
votes
1 answer

Error "Unable to find library" thrown when compiling native with Korge

I'm trying to test out the Kotlin Game engine called Korge. I downloaded the default "Hello world!" template directly from their website. After downloading, I created a new project from existing files with IDEA and tried to run gradle's script…
MG lolenstine
  • 919
  • 1
  • 11
  • 32
2
votes
2 answers

Kotlin Sealed Class of same Classes

A KorGE Game Library example game (CounterStrike) has the following construct: sealed class SideEffect{ class Hit() : SideEffect() class TerroristShot(val terrorist: Terrorist) : SideEffect() class KillTerrorist(val terrorist:…
2
votes
1 answer

How can I prevent Korge views from updating?

I have an addFixedUpdater { } block attached to a view that is being executed on every frame. Is there a way to pause that block temporarily?
Kirill Rakhman
  • 42,195
  • 18
  • 124
  • 148
1
vote
2 answers

How rotate image respecting proportions

I would like to rotate long image representing hand of a clock. I have following code: val hand = Image(handBitmap).apply { scaledHeight = 50.0 scaledWidth = 400.0 anchor(.0, 0.5) addUpdater { rotation…
aQuu
  • 565
  • 8
  • 18
1
vote
1 answer

Korge gradle setup for JVM target

I want to try the Korge libs on the JVM. I used the Korge IntelliJ plugin to create a new project. My build.gradle.kts looks like this : import com.soywiz.korge.gradle.* buildscript { val korgePluginVersion: String by project repositories { …
Pylvain
  • 110
  • 1
  • 7
1
vote
1 answer

How to setup my KorGE project to use Fleks ECS library?

I want to use Fleks ECS as shown in this example: https://github.com/korlibs/korge-next/tree/main/samples/fleks-ecs How to setup my KorGE project to be able to import the Fleks library?
Mario Rezende
  • 461
  • 5
  • 10
1
vote
1 answer

Android Studio - KorGE plugin - build.gradle

I would like to use Open Source KorGE Game Engine. I'm using Android Studio and I would like to know if anyone know how to import the library. I've installed the plugin following the setup documentation. Could anyone show me how to setup right my…
DoctorWho
  • 1,044
  • 11
  • 34
1
vote
1 answer

Exception when I change to other scene in KorGE

com.soywiz.korinject.AsyncInjector$NotMappedException: Class 'class ChooseCampaign (Kotlin reflection is not available)' doesn't have constructors RequestContext(initialClazz=class ChooseCampaign (Kotlin reflection is not available)) Above…
snaulX
  • 17
  • 7
0
votes
0 answers

Problem with collisions detection of views (KorGE)

I create two SolirRect in random position and drag them on each other, but hitTestView() always return null val list = mutableListOf() fun box() = solidRect(width / 10, height / 10, randColor()) { anchor(0.0, 0.0) scale(1.0) …
AlexVs86
  • 25
  • 7
0
votes
0 answers

Structuring Views in Korge

I'm not sure if this is the best place to ask this question or not but I feel like I'm struggling to grasp something relatively simple and can't find any decent advice on it in relation to KorGE so if anyone can offer any assistance it would be much…
James Lendrem
  • 1,780
  • 2
  • 15
  • 23
0
votes
1 answer

unsolved reference: KorgeGradlePlugin at apply()

Has anyone experienced unresolved reference in build.gradle.kts? The relevant part of my build.gradle.kts: import com.soywiz.korge.gradle.* buildscript { repositories { mavenLocal() maven { url =…
0
votes
1 answer

Wrong physics with circle in korge with box2d

I changed box2d example to spawn circles. But the physic looks wrong. For example, when the circle stops jumping, it is not on the rectangle, but is immersed in the rectangle. solidRect(600, 100, Colors.WHITE) .position(100, 412) …
0
votes
1 answer

Korge: What does the bitmap `premultiplied` variable do?

In the Bitmap documentation, I noticed that there was this premultiplied variable in the bitmap. What does it mean and what does it do?
xeno
  • 33
  • 4
1
2