Tagged Questions
0
votes
2answers
148 views
best structure to handle entities in an entity component based game engine
I am trying to develop a 2D entity component based game with multiple layers as tilemaps (front or back from the scene).
I currently handle the tilemap layers in a 3 dimension array[z][y][x]. Each ...
4
votes
2answers
176 views
3D models on 2D tilemap perspective when scrolling
I am creating a small top-down game, where the player traverses a 2D tilemap, with an illusion of depth provided by 3D models for things like buildings or trees.
Having gotten to the point where I ...
0
votes
1answer
111 views
Creating a BufferedImage with several smaller images?
I am making a 2D tile based game. The tiles render fine from a spritesheet and a text file. However, I am using a for loop to draw the map to the screen. When it refreshes, it slows down the loop, and ...
-2
votes
2answers
205 views
How can I draw a map that is stored in arrays [closed]
I have spent over 12 hours with no avail trying to successfully draw my map.
The map is stored in an array called Tiles[]. Each value in Tiles can either be 4 numbers:
Grass
Stone
Water
Void (EMPTY ...
-1
votes
1answer
143 views
Tilemap collision detection strangeness [closed]
I have used this code, or code very similar to it, to detect collisions between rectangle shaped entities and a tilemap for a long time. When I read the code it seems to me that it is impossible for ...
1
vote
2answers
314 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
661 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
378 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
1k 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
236 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
417 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
130 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
478 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 ...
1
vote
3answers
308 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
772 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
564 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
518 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
618 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 ...
1
vote
1answer
5k 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;
...
