Tagged Questions
-2
votes
0answers
61 views
How to Fix Choppy Movement [closed]
I've just started game programming yesterday, reading things here and there on the internet, and I've been testing the java 2D API.
The code below does basically what I want it to (move the red ...
-1
votes
1answer
73 views
How would you program sprite movement in a 2-D ariel view rpg game?
I'm relatively new to programming and I have recently programmed an RPG game in java.
Any tips on character movement with animations? I would like it to be similar to those of other rpg games such as ...
-2
votes
4answers
160 views
Making 2D Games [closed]
I am starting out on making my own games. I am very interested in making 2D side scrolling games, such as SNES/Mega Drive games and eventually I want to create my own Metroid/Cave Story inspired game.
...
-2
votes
1answer
74 views
Slick game adding enemies towards the player [closed]
I'm beginner in java games, and this is my first time using Slick!
I followed the thenewboston tutorials to code my game.
My game is about a princess lost in a maze, on her way she finds bugs coming ...
0
votes
1answer
76 views
My logic in collision detection in diagonal code correct? [closed]
I made this code to detect collision from the diagonal(top left). I'm trying to find the problem on what I'm doing wrong. Is it necessary to have a diagonal collision for the wall?
Player class:
...
0
votes
0answers
96 views
Libgdx vs slick [closed]
I know slick2d and libgdx are built on top of lwjgl. I just want to choose what 2d game library to go. Is slick better than libgdx? or the other way around? and why?
-1
votes
1answer
71 views
How can one make multiple movable images in OpenGL ES 2.0? [closed]
I was wondering, I've only seen examples of OpenGL ES 2.0 where people have used one or perhaps two images. I didn't see multiple images of where they each had independent movement.
What if someone ...
2
votes
2answers
101 views
Java Tetris - Matrix Rotations
I'm building Tetris in Java and am trying to use linear algebra to rotate a piece composed of 4 tiles.
My friend was explaining the way to do it is:
He said:
"To clarify, you do need to rotate ...
3
votes
3answers
258 views
Tetris - Rotations using Linear Algebra (Rotation Matrices)
I'm making Tetris in Java and am at the point of rotations... Originally I was hardcoding each rotation:
if (direction.equals("right")) {
if (shape.equals("Bar")) {
if ...
-1
votes
1answer
60 views
Refering to an object from an array in Java [closed]
In my game, the whole thing is based off of grids. So the map is a dual dimensional array of 32 (32 x 32 grid map). Now what I want to be able to do is to grab a grid and be able to access it and ...
5
votes
2answers
334 views
Java 2D game programming: Different approaches to make a game loop
I am new to Java game programming, but the more I read the more I'm confused, because I've seen several different approaches to make a game loop:
1. The standard approach, that uses the Timer class ...
3
votes
2answers
160 views
Distortion Effect
I'm trying to make a distortion effect for a space game. The idea is that the effect has a central point, and all nearby objects appear to swirl into that point. I've made a preliminary version and it ...
-1
votes
1answer
94 views
Creating 2D game engine, image = null error [closed]
When ever I run this, I get the error
Exception in thread "main" java.lang.IllegalArgumentException: input == null!
I tried many different solutions including moving parts of the code around and ...
-1
votes
2answers
165 views
Lwjgl Random 2D Map Generation [closed]
First time poster here. I am somewhat (as in mid - low, closer to mid) experienced with Java but I seem to be having some trouble. I'm using the lwjgl library to make a "2D Minecraft-esque" game. ...
0
votes
1answer
77 views
Collision and gravity problems
So this is an easy question. I need to implement gravity in my game but where I'm stuck is what variables do I need in my Entity object for the calculations and a good algorithm that I can use for ...
0
votes
1answer
155 views
Problem with enum as game state
In the current game I'm building, I'm having trouble moving from one game state to another. I'm using enum to control my states. As of now, this is my enum:
public static enum State
{
M_MENU, ...
2
votes
1answer
135 views
2D Software Lighting Issues in Java
I'm creating a 2D top-down tiled game in pure Java and by now I'm trying to implement a way to do lighting.
First, some details on how I render: there is a screen class which handles all the ...
-2
votes
1answer
134 views
Will this Entity Code work? [closed]
How do you create 2D entities?
Here is something i tried to write up as a base for entities but is this usable and is entites like this?:
public abstract class Entity {
int attackRange; // ...
0
votes
1answer
225 views
Develop a 2D game in Java [closed]
At first i want to mention that i already searched much on the web, also in this forum, but i couldn“t find accurate answers to my questions or only outdated answers.
My goal is to write a 2D game in ...
-2
votes
1answer
288 views
Which of these languages: Java, C++, or Python (Pygame) would be most effecient for a 2d rpg game? [closed]
I'm trying to create a 2d rpg game that could be comparable to Realm of Mad God, but would be singleplayer only. I would like to use Pygame but I heard that 1.It's too slow, and 2)It would crash to ...
0
votes
2answers
168 views
What java library/framework for a game with baldurs gate like grapics? [closed]
I really would like to create my own small rpg. It could probably look as simple like baldurs gate. So without fancy 3D stuff.
As language I want to use java (or scala, I thinking about it - the good ...
1
vote
4answers
262 views
Limiting a player's movement to the screen's dimensions
I have a player, that I can control using WASD. And I don't want him to leave the screen.
So I've tried the following:
if (player1.getX()+5 < 974 && player1.getX()-5 > 0) {
...
0
votes
1answer
277 views
Please help me with my 2D isometric tile picking [duplicate]
Possible Duplicate:
How to convert mouse coordinates to isometric indexes?
Okay, I apologise in advance if I make no sense here.
Basically, I've got a simple application that takes in a ...
0
votes
0answers
39 views
Creating transparent image with localGraphicsConfig not always working
Consider using the following, commented-out code (https://github.com/kozie/twodee/blob/master/src/nl/kozie/twodee/Display.java#L135-L136).
This creates an empty image which i'm filling with a mosaic ...
0
votes
1answer
73 views
Find the footprint of an isometric entity
I'm working on making a 2D isometric engine in Java. I'm getting into collision detection and I've hit a bit of a problem.
Characters in-game are not restricted to movement from tile to tile - they ...
0
votes
6answers
467 views
Can I develop a game on PC in Java and move it to Android?
I have fairly good experience with Java, but new to Android development. I would like to develop a 2D game which would have animations and online play.
Can I initially develop this game on my pc ...
1
vote
0answers
84 views
2D Java Networked Game Coordinate Updating [closed]
I'm currently developing a networked 2D MMO-style game in which several thin clients (ran in an applet) are able to connect to a server and well, do MMO-style "things"!
Some more background on the ...
-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 ...
0
votes
0answers
703 views
Issues playing audio with Slick 2D [closed]
Started trying to learn Slick 2D a few days ago and have enjoyed it so far. The only problem is I can't seem to be able to get audio to play. I have tried going through the documentation examples, ...
1
vote
3answers
820 views
How to add a scrolling camera to a 2D Java game?
I am attempting to create a game where the camera follows the player, always making sure the player is in the center of the screen. How would I go about this? This game is a 2D Java game, made with no ...
1
vote
1answer
209 views
Point inside Oriented Bounding Box?
I have an OBB2D class based on SAT.
This is my point in OBB method:
public boolean pointInside(float x, float y)
{
float newy = (float) (Math.sin(angle) * (y - center.y) + Math.cos(angle) *
...
1
vote
2answers
126 views
Perpendicularity of a normal and a velocity?
I'm trying to fake angular velocity on my vehicle when it hits a wall by getting the dot product of the normal of the edge the car is hitting and the vehicle's velocity:
Vector2D normVel ...
1
vote
1answer
535 views
Java 2D Tile Collision
I have been working on a way to do collision detection forever, and just can't figure it out. Here's my simple 2D array:
for (int x = 0; x < 16; x++) {
for (int y = 0; y < 16; y++) {
...
-1
votes
1answer
298 views
Resource not found?
When I write in my terminal, java -jar myJar.jar, it gives me an error "Resource Not found res/playNow.png" When I run it in eclipse, it does not give me any errors about this image.
My folder in my ...
0
votes
2answers
120 views
Unable to access jar. Why?
I was making a game in java and exported it as jar file. Then after that, I opeed jar splice. I added the libaries and exported jar. I added the natives then i made a main class. I created a fat jar ...
-1
votes
1answer
218 views
How to make an Image still when at position at Slick 2D?
I wanted to have a build functions. When I press for example 2, the image will appear with my character.
The question is, how do I stop it from following my character
//build
//I created many ...
0
votes
0answers
141 views
Exporting .jar files with Jarsplice [closed]
Help! I'm Using Mac OS X 10.8 Mountain Lion and Using Eclipse. I'm using the library called Slick and Lwjgl. When i first exported it, it has a .jar file. I followed some You Tube Tutorials ...
-1
votes
1answer
817 views
How to create a simple side scroller game [duplicate]
Possible Duplicate:
How to create games with scrolling?
I'm still pretty new to game programming and any tutorial that I have worked with stuck to only games with the initial screen. I want ...
-2
votes
2answers
116 views
How do I add Destroy with radius on Java Slick2d? [closed]
For Example, There is a tree(image) and i want to destroy it. I want my character only destroy it (For example the character must be facing the tree to destroy it and there must be a range were you ...
3
votes
2answers
897 views
OpenGL Lighting [duplicate]
I have a simple day and night cycle by at day disabling OpenGL lighting and at night enabling openGL Lighting. When I enable everything appears darker. My question is How would I make it that at a ...
2
votes
2answers
202 views
Updating “Inactive” Chunks
In my game, the only chunks (4x4 areas of tiles) in memory are the ones that the player is in. However, chunks need to have updates applied to them over time. A (likely) well-known example would be ...
-7
votes
1answer
544 views
Is the game Wakfu really fully coded in JAVA? [closed]
If so, this shows that you can develop amazing logic/graphic wise games with JAVA. I think this should be used as an example when people ask about games developed in java instead of just mincraft and ...
1
vote
1answer
953 views
PokeMMO. How they do it?
Well PokeMMO is a JAVA game project which basically is the original FireRed title for the GBA made online. They know this type of projects don't last long because of the copyrighted material used, but ...
-2
votes
2answers
494 views
Coding games similar to Machinarium in Java? [closed]
I wan't to see how great of an idea is to start a game project like Machinarium coded in Java. I'm not really good at Java yet, but it's the programming language I decided to go with first. Not really ...
1
vote
2answers
832 views
Creating maps and tileset for a 2d java game
I'm not a completly beginner to java, so I decided to write a map loader and a tileset loader myself instead of using a tilemap editor like Tiled. I'm using Slick & LWJGL for my game.
The plan ...
1
vote
3answers
766 views
How to efficiently manage animations and/or textures (resources) in a game?
I am using Java, particularly the Slick2D library. Seeing as this is my first game, I have no idea how I should manage the Animations and the textures in the game in a way to be both memory efficient ...
2
votes
1answer
726 views
How can I accomplish Pokemon-style movement over tiles in java?
I'm talking about where if you press a directional key once you walk over to the adjacent tile and can't do any other actions during the walk. I can get my character to move one tile width, but my ...
0
votes
1answer
413 views
Java2D Game Flickering
I'm in the process of trying to get familiar with making games in Java, using the Swing library.
Coding my Snake game however, I've got to a point where the game is flickering/ghosting and I haven't ...
-6
votes
1answer
333 views
Choosing the right game engine [closed]
1 down vote favorite
I'm trying to create a game in java inspired by a Gameboy Color Zelda game. I'm exprienced in java but not in game programming. I've been doing a lot of research on game engines, ...
1
vote
6answers
960 views
How do i choose what technology to use for a 2D game like Pokemon?
I apologize in advance for the wall of text about to come. I've had an idea for a game for a while now, and am stuck at step 1 of game development: Choosing a language/engine. I've read a whole ...

