Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 36
1  Discussions / General Discussions / Re: great article on good coding practice on: 2014-09-12 18:10:58
arTiCl3w0nDeRFultH1s1S.
2  Games Center / WIP games, tools & toy projects / Re: Nano-platformer, a really basic platformer for teaching purposes on: 2014-09-09 19:52:09
For who is this class? I seriously hope it is not for first time programmers o-o
3  Game Development / Newbie & Debugging Questions / Re: How to port a java game to android on: 2014-09-08 13:26:27
How big is your game? Is it written some kind of wrapper? If you really are programming for less than a month, I doubt you made a big game.. All the code should work except the code related to Java2D stuff. (Rendering)
4  Game Development / Newbie & Debugging Questions / Re: How to port a java game to android on: 2014-09-08 10:45:16
Do you already have a game made?
5  Game Development / Newbie & Debugging Questions / Re: Newb implementing pathfinding into my game on: 2014-09-07 14:03:58
@Icass

What are you talking about, he already implemented A*, he just doens't know how to move the character along the path.
6  Game Development / Newbie & Debugging Questions / Re: Game Ideas for someone who understands, but wants to improve, collision? on: 2014-09-07 08:35:34
That would be a good start I guess.
7  Game Development / Newbie & Debugging Questions / Re: Noob Questions From Nickropheliac: First game String drawing issues on: 2014-09-06 08:45:59
The best way would be to get the width of the rendered string and center it around the point you want to render it.
8  Game Development / Newbie & Debugging Questions / Re: Newb implementing pathfinding into my game on: 2014-09-06 06:13:58
http://www.policyalmanac.org/games/aStarTutorial.htm
9  Game Development / Newbie & Debugging Questions / Re: KeyEventDispatcher stops working on: 2014-09-05 13:57:51
Java can only listen to window events, when they are dispatched to window itself. If the window you have your key listener is not focused, keyboard input will not be received.

If you want to get input events from the keyboard itself, here is a very simple and awesome library I have used in one of my past projects.
https://code.google.com/p/jnativehook/
10  Game Development / Game Play & Game Design / Re: Keeping Track of Time (24 Hour System) on: 2014-09-04 04:59:59
This is up to you to decide..

I would make minutes variable a float instead of int and do this in the update method.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
public void update(float delta){

   float deltaMinutes = delta / 60; // assuming delta is in seconds

   minutes += deltaMinutes * speed;

   while(minutes >= 60) {
       hours++;
       minutes -= 60;
   }
   
   if(hours > 24){
       daysPassed++;
       dayIndex++;
       if(dayIndex > 7)
      dayIndex = 1;
   }
   
   // How would I go about updating the minutes variable?
   }
11  Game Development / Newbie & Debugging Questions / Re: Take shortest rotation on: 2014-09-03 07:19:18
The answer I found for this is pretty simple. Instead of say
1  
float degrees = 270 + vec.angle();


Do this:
1  
2  
vec.rotate(270);
float degrees = vec.angle();
12  Game Development / Newbie & Debugging Questions / Re: Take shortest rotation on: 2014-09-03 06:25:41
When your ship is looking in this direction:
    |
    |
 ===
.angle() is 90 I think


When your ship is looking in this direction:
 ===
    |
    |
.angle() is -90
13  Game Development / Newbie & Debugging Questions / Re: Noob Questions from Nickropheliac: Your stories, programming lifestyle, etc. on: 2014-09-02 14:25:37
Started programming almost 2 years ago, during New Year school break. After half a year, during the summer, decided to drop out of school with 2 years left. Was programming for around a year at home and playing videos games. Googled 'game programmer job' in my language, saw some company, decided to give a job application a try. I was told to make a Galaga clone in a week, which I did. They invited my to a job interview. That was my first job interview ever, I didn't know what I was doing. They asked my question, I answered some of them. After a week they emailed me that I got the job. So yeah thats my success story so far Cheesy
14  Game Development / Newbie & Debugging Questions / Re: Dellta time issues on: 2014-09-01 06:04:56
Did you change the return type of getDt to long also?
15  Game Development / Newbie & Debugging Questions / Re: Noob questions: Bitwise operators in screen movement on: 2014-09-01 05:55:08
Because Notch did that, and all the hobby programmers followed.
16  Game Development / Newbie & Debugging Questions / Re: Dellta time issues on: 2014-09-01 05:53:54
You need to use long instead of float
17  Game Development / Game Mechanics / Re: Rotated Rectangle collision on: 2014-08-31 19:04:30
I would suggest you get rid off all abstractions at first and work on getting the basics down first. Its really much harder to fix bugs on lower level when you have abstractions.
18  Game Development / Game Mechanics / Re: Rotated Rectangle collision on: 2014-08-31 18:59:02
Lets say you have a Rectangle called R. You also have a point called P. You rotate R by 35 degrees. To check if P collides with R, you rotate P around the point you rotated R (center of R probably) by 35 degrees and check for collision like you would normally.
19  Game Development / Newbie & Debugging Questions / Re: reading from vertex buffer does not change the display content on: 2014-08-31 17:27:34
I'm not keen on whole OpenGL rendering stuff, but shouldn't you be calling some kind of draw method in your render() method? glDrawArrays for example or something like that.
20  Game Development / Newbie & Debugging Questions / Re: What kind of game should a noob make for his first one? on: 2014-08-30 06:19:55
@TehJavaDev
Not finishing the game is the same as not making one. It only counts if you finish it.
21  Game Development / Newbie & Debugging Questions / Re: What kind of game should a noob make for his first one? on: 2014-08-30 06:10:52
Make a pong game.
22  Games Center / WIP games, tools & toy projects / Re: Gunslugs 2 - 10th week of development on: 2014-08-29 19:23:49
The gameplay seems really fast paced and fun, however I think it would be too fast for first time players.. It looks way to fast. I have no idea what is going on in there. You should probably add some sort of learning curve to the end product Smiley Other than that, the game looks sweet and fluid, which I value the most in games.
23  Game Development / Newbie & Debugging Questions / Re: Getting GLG2D to work in my Java2D game. on: 2014-08-29 08:39:01
I'm too for using Libgdx or LWJGL for games.. I don't see the need to use any other library that is not 'popular'

However, this thread is about getting something to work, so this is not really the place to talk about that stuff.. However, could you just tell us if there is any specific reason you need to use GLG2D?
24  Game Development / Newbie & Debugging Questions / Re: Getting GLG2D to work in my Java2D game. on: 2014-08-29 08:03:33
Any reason why GLG2D (I don't even know what that is..)
25  Game Development / Newbie & Debugging Questions / Re: Enabling hardware acceleration (Java2D) on: 2014-08-29 07:41:25
Just go use Libgdx if you want to make a game quickly, or use LWJGL if you need hardcore low level control (I doubt you would need that).
26  Games Center / WIP games, tools & toy projects / Re: Oppugno on: 2014-08-28 19:33:14
How many vertices do you have?
Maybe you are creating your VBO each frame?
27  Games Center / WIP games, tools & toy projects / Re: Oppugno on: 2014-08-28 19:21:31
When I ran the game, my PC completely froze for a few minutes. Then, the game crashed and all my applications took another minute or so to restore their memory o-o

I don't understand, what the hell are you doing that is consuming 2gigs or ram? Could you explain that more or did I miss something?
28  Discussions / Miscellaneous Topics / Re: Killers/Murderers - Are they really wrong? on: 2014-08-27 15:53:50
I would say evolution is the survival of those who are best adapted to their environment for short.

About the topic, there is nothing wrong with killing other humans. The only problem is that you will either get a death penalty or spend most of your life behind bars if you are caught.

You might argue why there are such laws, and the answer is pretty simple. That's what most of the people decided, and that's how it is. You might also argue why everyone decided like that, and the answer is pretty simple yet again. That's because killing your fellow society members is very unhealthy for evolutionary survival.
29  Game Development / Newbie & Debugging Questions / Re: LibGDX - rotate player to face the mouse on: 2014-08-23 18:19:38
Math.atan2(x-x,y-y)

You put wrong coordinates.

EDIT--
Also, .rotate probably adds to the current rotation. You need to do something like .setAngle or .setRotation or something like that.
30  Game Development / Game Play & Game Design / Re: Need Opinions - yes really - Game Control on: 2014-08-23 16:36:36
I would say try something like Runescape. Sorta like turn based, but the turns occur automatically.
Pages: [1] 2 3 ... 36
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Dwinin (21 views)
2014-09-12 09:08:26

Norakomi (55 views)
2014-09-10 13:57:51

TehJavaDev (66 views)
2014-09-10 06:39:09

Tekkerue (33 views)
2014-09-09 02:24:56

mitcheeb (54 views)
2014-09-08 06:06:29

BurntPizza (38 views)
2014-09-07 01:13:42

Longarmx (24 views)
2014-09-07 01:12:14

Longarmx (30 views)
2014-09-07 01:11:22

Longarmx (28 views)
2014-09-07 01:10:19

mitcheeb (37 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!