All Questions
20 questions
0
votes
1
answer
6k
views
Invalid maximum heap size: -XX:MaxHeapSize=4096m
I am trying to package android project in UE4.27. And getting this
I tried changing environment variable _JAVA_OPTIONS: -Xmx512M -Xms512M not worked.
Where can I change MaxHeapSize, please tell me ...
0
votes
2
answers
952
views
How to port/convert a Java program to mobile?
I have coded a simple video game in Java. It works fine on all computers that have Java installed. However, I would really like to play it on my smartphone and it would also be nice to be able to play ...
0
votes
1
answer
200
views
How can I add a button that opens a pop-up?
I have developed a game with a libGDX game engine. I want to create a button on the game screen and add a popup to this button. How can I do this?
My current code:
...
0
votes
1
answer
130
views
Can Mobile Games use Fragments instead of SurfaceViews?
All the tutorials of mobile games for android (such as this one), use the to display game objects. Most other applications tend to use an ...
0
votes
1
answer
478
views
How do I make so the player jump happens only once in a onScreenController on LIBGDX and the player doesn't stick on the roof?
I'm making a simple platform game, and I was following this tutorial to make an onScreenController (https://www.youtube.com/watch?v=z4Vqkp_ve3I&t=66s).
There's one think that's not how I want it ...
0
votes
1
answer
195
views
Using Java on mobile, should I avoid object construction to reduce GC overhead?
I new to both Java and game development and working on my first LibGDX game targeting mobile systems.
How problematic is the garbage collector in a mobile environment? Should I try to reuse as many ...
4
votes
1
answer
1k
views
Should UI be part of the game-loop?
I can't really find a good answer to this anywhere, I have never worked on games in a proffessional environment and I am wondering; Do these games render their UI in the main game-loop?
That is, do ...
4
votes
1
answer
6k
views
How do I get the number of online players in a Minecraft server from outside the client?
I know that the Minecraft client can query the server for number of players and maximum players, even when the server properties has enable-query set to ...
4
votes
3
answers
442
views
Controlling a fighter jet's altitude using device accelerometer
When I hit an object, my Fighter is supposed to fall to the Ground but because of the Accelerometer, I can still move it up and down even though it died. The Scroller on the x-Axis though stops.
...
2
votes
2
answers
152
views
View-Update versus Model-update
I am creating a game using a relatively new platform called "codenameOne", but I'm actually a software engineer, so this question might be rather basic or odd, but I'm unsure what to do.
The game is ...
2
votes
2
answers
1k
views
Poor mobile performance when running from Eclipse
So after weeks of thinking my rendering code was bad, I accidentally discovered the following:
Running my game on a Nexus S
From Eclipse (Debug as -> Android application): 12fps
From the device
while ...
1
vote
0
answers
283
views
Rendering tile maps for mobile devices
Hitting a bit of a roadblock with my game's development and I'm just looking for some outside advice.
I'm trying to render a tilemap for my mobile game (Android) and I'm using LibGDX.
Now, here's ...
1
vote
4
answers
256
views
Checking game objective status in efficient way on each update call
I am creating a 2d mobile game where there are three levels. Each level has 20 objectives. This can increase in the future.
Examples:
...
0
votes
1
answer
138
views
Is there any map maker for javaME game? [closed]
For the past two weeks I was trying to make a map maker for my java ME 2D RPG game. I failed because i get errors using slick TWL and the forum for this is inactive.
So I just wondered is there ...
0
votes
1
answer
899
views
j2me Bitmap font
I have found a tutorial how to make a bitmap font from an image.
So I have used this code in my game and the problem is that the rest of the graphics which should be seen on the screen like ...