All Questions
19 questions
0
votes
0
answers
63
views
Only first line/column of level text file gets loaded into tile map
I'm trying to make a map using a text file, but it only does the first line / column and not the rest.
I know the problem is in getTileImage.
...
0
votes
0
answers
66
views
Is using sprite sheets and drawing specific part the way to go?
I'm programming in Java.
I have more than 200 MB of images used in my games, something like 100000 40x40ish images. I initially wanted to load them all during app initialization but it took like 2 ...
0
votes
1
answer
380
views
What is the most efficient way to load all the textures?
I am developing a game (in Java) that is going to have a lot of textures and images in it.
What is the most efficient way to load all the textures? I was thinking on pre-loading all the images ...
1
vote
0
answers
375
views
Loading a TMX file with Java [duplicate]
I use the program Tiled to create tile maps, which export to the TMX format. However, I can't find a way to load them into my LWJGL game. I don't want anything that renders them automatically, I want ...
0
votes
1
answer
88
views
Loading settings files better?
I have recently been working on a small game project and decided to implement settings loading at game startup. The problem is that my method seems to be too hard coded and not scalable without having ...
-1
votes
2
answers
113
views
How to make a proper cache on user computer?
Currently when launching the client of the game, it connects to the server and loads all the cachedata in a normal form (= folders, .txt files and .png files). However I don't like that the players ...
0
votes
0
answers
790
views
Android: Asynctask causes ANR (very) intermittently
I'm doing some work on an AsyncTask (creating game objects, loading resources etc) while displaying a static splashscreen.
The problem is that every now and then, the AsyncTask doesn't run and the ...
0
votes
1
answer
754
views
Nullpointerexception when loading resources in openGL ES 2.0 Android project
Overview
My splash screen starts by display a 'loading' dialogue and then kicks off an asyncTask (The loading dialogue is derived from the standard Android View class)
Within the doInBackground ...
0
votes
1
answer
81
views
How to handle runtime exceptions that occur on a loading process delegated to newly spawned thread
I am looking to multi-thread the resource allocation routines (i.e world loading) in my game so that they can occur in the background whilst rendering a loading screen etc... The problem is, I used to ...
1
vote
2
answers
181
views
Java: creating an instance of a user defined class by reading xml file
I am trying to write an engine for a game, in particular a component-based one (in my approach components contain both data and logic). So basically I have entities, and each entity has a list of ...
0
votes
1
answer
149
views
Streaming resources
I'm writing a game using the Slick2D library. I recently added a loading screen using deferred loading. I use the Music class to load OGG files to be used as music. These take an excessive amount of ...
2
votes
1
answer
1k
views
What's the most memory efficient way to load a tiled map?
Currently I am working on a simple 2D platformer and I want to load a tiled map.
What I've started working on is loading the tiles using a text file. My first question is simple: is a text file the ...
4
votes
3
answers
3k
views
Saving instances of classes, then recreating the instances [closed]
I have many types of entities, each type has a lot of if instanceof Spider (for example ) then do this in the game code... Now I got to the part where I want to ...
0
votes
1
answer
368
views
How to load images on startup
I want to load all my game's images on the game's startup and have a loading bar to show it's progress. I already know how to create and display the loading bar, but I can't figure out how to load the ...
1
vote
1
answer
226
views
Terrain square loading
Games like Skyrim, Morrowind, and more are using quads or square to divide the terrain if im correct. The player is always at #5
1 | 2 | 3
4 | 5 | 6
7 | 8 | 9
So ...