Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Kotlin is a statically typed programming language that can be compiled into Java Bytecode or JavaScript source code. It is fully interoperable with Java and Android libraries.

0
votes
1answer
23 views

How to setup engine properly in ktx-ashley?

I'm trying to setup simplest Ashley project with only 2 entities and get this error: ...
0
votes
2answers
51 views

How to make shake effect on camera in LibGDX?

I want to shake my OrhographicCamera on some event (i.e. click on the keyboard). How can I do that?
1
vote
0answers
16 views

Inner shadow of a polygon in libgdx

Is it possible to draw inner shadow for some polygon to make it look like this?
0
votes
0answers
26 views

Is there any better way to interact with HUD?

Lets imagine 3 classes: HUD, Player and PlayScreen. I want to control ...
0
votes
0answers
24 views

What is wrong with intersectLinePolygon method?

I need to detect intersection of a line and polygon, and now I use Intersector.intersectSegmentPolygon method (and it works well), but before that I tried to use <...
1
vote
2answers
40 views

Do I need to dispose Pixmap in Actor?

I create Pixmap in Actor and don't know how to dispose it. Is it necessary in my case? ...
1
vote
2answers
52 views

How can I draw Polyline and detect its collision with other objects?

The idea is to draw trace of moving Actor and if some other Actor intersect it, some function would be called. I've been searching for solution to this problem in Intersector class, but it seems to ...
0
votes
1answer
41 views

Focus scene2d UI actors programmatically in libGDX

I am trying to implement keyboard movement in game main menu which is libGDX Stage with UI-Actors. I'm also trying to code this feature myself since I can't neither ...
0
votes
1answer
144 views

How to draw a list of images?

I found an example with strings ...
0
votes
2answers
130 views

Access violation when using shaders in LWJGL 3

I've successfully used LWJGL 2.9.3 in the past and am now giving LWJGL 3.15 a shot in Kotlin. I had a quad rendering nicely but now I'm using shaders it seems that openGL isn't initialized and I'm ...
0
votes
0answers
110 views

Android - kotlin - init OpenGL from JNI

Currently, I have this Kotlin code for my OpenGL view: ...