Tagged Questions
1
vote
2answers
153 views
Collision checking problem on a Tiled map
I'm working on a pacman styled dungeon crawler, using the free oryx sprites. I've created the map using Tiled, separating the floor, walls and treasure in three different layers. After importing the ...
3
votes
1answer
330 views
Circle-Rectangle collision in a tile map game
I am making a 2D tile map based putt-putt game.
I have collision detection working between the ball and the walls of the map, although when the ball collides at the meeting point between 2 tiles I ...
2
votes
2answers
198 views
Checking if an object is inside bounds of an isometric chunk
How would I check if an object is inside the bounds of an isometric chunk? for example I have a player and I want to check if its inside the bounds of this isometric chunk.
I draw the isometric ...
0
votes
2answers
455 views
Efficient way to render tile-based map in Java
Some time ago I posted here because I was having some memory issues with a game I'm working on. That has been pretty much solved thanks to some suggestions here, so I decided to come back with another ...
0
votes
3answers
181 views
Saving and loading large tilemaps
As the title state, I have a large tilemap 400 x 400 x 26. Which currently just about fairs when using it. Saving takes a couple of seconds and it saves to a .ser file which is okay at the moment ...
1
vote
3answers
313 views
Compressing 2D level data
So, I'm developing a 2D, tile based game and a map maker thingy - all in Java.
The problem is that recently I've been having some memory issues when about 4 maps are loaded. Each one of these maps ...
0
votes
1answer
100 views
Java: Standing Animation
I've been working on a top-down, and the player already has animations for moving left and right. However, if I move a certain distance and stop, it will stop on the walking animation, which isn't ...
1
vote
4answers
407 views
Implmenting RLE into a tilemap or how to create a large 3D array?
Currently I've been using a 3D array for my tiles in a 2D world but the 3D side comes in when moving down into caves and whatnot. Now this is not memory efficient and I switched over to a 2D array and ...
0
votes
3answers
255 views
For the handling of buildings on a tile-based strategy game, what aproach should I use?
On a tile-based game of the strategy genre, which allows the player to place buildings over the terrain tiles, there are multiple approaches that can be taken for handling such situation.
The ones ...
2
votes
1answer
562 views
Rending 2D Tile World (With Player In The Middle)
What I have at the moment is a series of data structures I'm using, and I would like to render the world onto the screen (just the visible parts).
I've actually already done this several times (lots ...
-5
votes
1answer
482 views
How to properly scroll a 2D tilemap?
Hello and I'm trying to make my own game engine in Java. I have completed all the necessary ones but I can't figure it out with the TileGame class. It just can't scroll. Also there are no exceptions. ...
2
votes
1answer
415 views
Slick2D Tile Based 'Fog of War' Blurring Problem
I'm working on my first Java Game and I have run into a little problem I'm hoping to get some help with. I'm using Slick2D displaying a tile based map, and I'd like to know how I can created a ...
1
vote
2answers
503 views
Isometric game data structure and rendering
I'm starting development of a 2d isometric(tiled, roguelike) game and i'm brainstorming wich kind of data structure i would use to store runtime data like tiles and entities, but i don't want to use ...
0
votes
1answer
3k views
Java 2D Tile Map and Moving Sprites with threads
I'm having difficulties understanding how to use threads and I'm not sure if my basic structure is right.
This is my Board Class:
package mortifera;
import java.awt.Color;
import java.awt.Graphics;
...