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
205
views
How do I implement data persistence?
I wonder how do I implement data persistence in 2d game. I am not using any engine, just pure Kotlin and OpenGL for rendering, so it is more of a software architecture question. The case:
Character ...
0
votes
1
answer
540
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
172
views
Libgdx OrthogonalTiledMapRenderer doesn't render properly
I will simply leave a clip of it as it's easier than describing the problem.
https://i.sstatic.net/bBAVC.jpg
This is All the code that i have
...
0
votes
1
answer
133
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 ...
0
votes
1
answer
97
views
-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:
...
0
votes
1
answer
142
views
Conway's game of life algorithm does not work
the getNeighbors and isOutOfBounds function works fine as far as my tests go but for some reason the game never works as ...
1
vote
1
answer
102
views
0
votes
1
answer
166
views
Why does my PBR material appear grey in game?
I am playing around with PBR materials and I cant get them to work correctly. When I create a material using PBR the model appears gray in game. Any ideas on why I’m not getting the same result?
...
0
votes
2
answers
189
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 ...
0
votes
1
answer
65
views
Android Game - Screen Flickers When an Entity Removed From The List
I am using Canvas in my android game. When I remove a no longer displayed entity in my entity list, all other entities are flickering for a brief time. When it's not removed, there is no such problem. ...
1
vote
2
answers
816
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).
...
-2
votes
2
answers
540
views
Is passing big objects in parameters not performant? [closed]
let's say that I have a big main class with a lot of variables, subclasses, etc... in it. Like "IngameScreen"
What if this class is passed as a parameter very often for each frames ? For example ...
1
vote
1
answer
61
views
Action never fires
I have a method, which runs the action MenuScreen at the very end. It never fires. Why is that?
...