Tagged Questions
3
votes
1answer
42 views
2d coordinates vs x/y screen positioning
I have a 2d top-down view tile map game, that generates random color tiles (water colors) as you move the character. I've been positioning elements on screen using the x/y coords (finding a way to ...
1
vote
1answer
173 views
Precise Touch Screen Dragging Issue: Trouble Aligning with the Finger due to Different Screen Resolution
Please, I need your help. I'm trying to make a game that will drag-n-drop a sprite/image while my finger follows precisely with the image without being offset. When I'm trying on a 900x1280 (in X ...
3
votes
2answers
2k views
Java Slick2d - How to translate mouse coordinates to world coordinates
I am translating in my main class render. How do I get the mouse position where my mouse actually is after I scroll the screen
public void render(GameContainer gc, Graphics g) throws SlickException
...
2
votes
2answers
154 views
Transition Player Position
I'm currently working on a Java MMO with a pretty solid start, but I've come across an issue I need a little help with.
I'm working on player positions. Meaning their X/Y on the screen, if the ...
3
votes
1answer
441 views
Most efficient way to handle coordinate maps in Java
I have a rectangular tile-based layout. It's your typical Cartesian system.
I would like to have a single class that handles two lookup styles
Get me the set of players at position X,Y
Get me the ...