Questions tagged [kotlin]
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.
26 questions
0
votes
0
answers
45
views
How can I make the material edges smoother on a PBR terrain?
I'm using HillHeightMap to generate a heightmap. I found a way to generate an alphamap based on a heightmap.
This is how I create the material
...
0
votes
1
answer
539
views
Is it a good idea to detect collisions in 2D game on different thread?
I am writing simple tiled map based game using LWJGL and Kotlin. I am testing out different collision detection algorithms and avoid using out of box solutions for personal reasons.
I figured out that ...
0
votes
1
answer
132
views
Is there an algorithm for a Joystick class that happens to be engine/framework independent?
I need to be able to get the given input's distance inside the joystick, bounded within -100% and 100% and an unbounded version of it, get the position of where the mouse's position projects to the ...
-1
votes
1
answer
288
views
Extracting cell center and corner points from rasterized Voronoi diagram
I currently have this code which I copied from Rosetta code:
...
1
vote
1
answer
102
views
0
votes
2
answers
186
views
What rotation needs to be applied to align mesh with expected axis of target?
I'm using LWJGL and JOML to create a 3D view of hexagons whose positions lie on a torus.
I have a number (NxM) hexagons, whose centres and normals I have calculated to be placed on the torus to ...
1
vote
2
answers
812
views
Fixed timestep, updates per second keeps changing?
I've been trying to create a deterministic, fixed gameloop.
The game loop should run TICK_RATE # of physics updates per second, and then render as quickly as possible (didn't do interpolation yet).
...
1
vote
1
answer
60
views
Action never fires
I have a method, which runs the action MenuScreen at the very end. It never fires. Why is that?
...
1
vote
0
answers
52
views
Implementing an Asset Lifecycle
I'm currently developing a game using Kotlin and LibGDX. But this Question should be Framework/Engine agnostic. Given I have a Screen class like this:
...
0
votes
1
answer
284
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:
...
1
vote
0
answers
91
views
Inner shadow of a polygon in libgdx
Is it possible to draw inner shadow for some polygon to make it look like this?
1
vote
2
answers
589
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 ...
1
vote
1
answer
622
views
How to draw a list of images?
I found an example with strings
...