Tagged Questions
0
votes
0answers
35 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?
0
votes
0answers
28 views
How can one make multiple movable images in OpenGL ES 2.0?
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
88 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
180 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
56 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
220 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
145 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
87 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
152 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
71 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
148 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
113 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
211 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
278 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 ...