Tagged Questions
2
votes
4answers
54 views
Java - Best Implementation KeyListener For Games
I am working on a game using only the swing and awt packages. Note I can only use the default Java libs. Meaning I have to use KeyListener. I have imported KeyListener properly, however, it is still ...
-1
votes
1answer
63 views
Get distance between the edge of screen and a moving sprite
How to get the distance between the edge of the screen and a vector moving sprite? I want to get the distance between my moving sprite and the edge of the screen so that when my sprite touches the ...
1
vote
0answers
60 views
Steering behaviour
So I found this steering behaviour code in a book but i dont really understand the last part of the code what exactly is he doing because im unfamiliar with c++. Why would you need to ...
0
votes
1answer
175 views
Pokémon character turning / facing: How is it achieved? Movement is already done though [closed]
You know that when the player playing Pokémon games want to change the facing of the main character, one would simply tap on the directional pad (D-pad) on the Game Boy (Color/Advanced/Advanced SP) or ...
0
votes
1answer
51 views
Follow behavior with randomization factor
I'm trying to make enemy follow player as in picture below, the code below is code for following player with steering behavior ( i'm not sure it steering works tho but it does follow player ), how ...
-1
votes
1answer
95 views
A paddle in my pong game isn't moving [closed]
I'm working on a little pong game in LWJGL but only one paddle moves. I've tried to switch around some code in the hopes it would work again but it still doesn't.
Here is my paddle class:
public ...
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 ...
-6
votes
2answers
145 views
Moving a sprite diagonal?
I wonder how I should increase and decrease the value of xPos and yPos to be able to move a sprite object diagonal and in different angles?
canvas.drawBitmap(image, xPos - (image.getWidth() / 2), ...
4
votes
1answer
372 views
RPG game engine. Skill application calculations
Short preface
I am a part of a small team which is entering game development. We're creating a new RPG setting with custom game system and mechanics based on dice rolls. I'm server-side java ...
0
votes
0answers
79 views
LWJGL not working, need help [closed]
I'm trying to make a simple game in LWJGL but no matter what I do I just get a black screen and it becomes unresponsive. Here is the code that opens the window:
package src;
import ...
-1
votes
1answer
130 views
Collision detection tutorials [closed]
I'm supposed to develop a Java game using AWT and Applet libraries. I'm stuck with the concept of "collision detection". If you can help me with any tutorials that explain the concept (how it works) ...
7
votes
2answers
2k views
How do I render terrain in a 2.5D perspective, like in the game Don't Starve?
I have experience in making 2D side scroller games such as Terraria, but now I want to challenge myself and make a game that has a 2.5D perspective. The game I am trying to mimic is Don't Starve. ...
0
votes
1answer
144 views
jBullet Collision/Physics not working as expected
Below is the code for one of my objects in the game I am creating (yes although this is a cube, I am not making anything remotely like MineCraft), and my issue is I while the cube will display and is ...
0
votes
2answers
481 views
Collision between sprites in game programming?
I've since just started coding for an android game using eclipse. I've read Beginning Android Game Programming and various other e-books. Recently, I've encountered a problem with collision between ...
0
votes
3answers
512 views
How do you make bullets move at an angle in different angles using delta
I'm having trouble making my bullets move at a steady pace using delta. I have the formula I used outside of slick2d, but it doesn't take delta into account. My bullets fly fast. How do I make them go ...
0
votes
1answer
210 views
Effectively implementing a game view using java
I am writing a 2d game in java. The game mechanics are similar to the Pokémon game boy advance series e.g. fire red, ruby, diamond and so on.
I need a way to draw a huge map maybe 5000 by 5000 pixels ...
0
votes
1answer
508 views
How can I Implement KeyListeners/ActionListeners into the JFrame?
I'll get to the point: I have a player in my game that you control with the keyboard yet the key methods in the player class and ActionListener w/ KeyAdapter in the Board class don't seem to fire.
...
1
vote
1answer
1k views
Are there any top down view sources available for SLICK/LWJGL?
I've been working with java for a few months now with my girlfriend and we're moving along at an expected rate. I understand the concepts of OOP, we've built many pseudo code starter games from ...
-3
votes
1answer
311 views
Populating Sprites
I am making a android game, it's a tower/base defense like type of game (yea I know it is kind of confusing), I was wondering if anyone knows a good way to have the attacking sprites randomly generate ...
-2
votes
8answers
785 views
Where is a good place to learn how to develop games?
I'm brazilian and I want to learn how to develop a game in some college or something like that, but I don't know any place here to learn it. Here is not that good either to develop games, as we don't ...