Java Game Programming Thread

  • (2 Pages)
  • +
  • 1
  • 2

29 Replies - 72638 Views - Last Post: 23 July 2011 - 04:29 PM Rate Topic: ***** 4 Votes

#1 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2870
  • View blog
  • Posts: 11,021
  • Joined: 15-July 08

Java Game Programming Thread

Posted 07 April 2010 - 09:52 PM

*
POPULAR

Java Gaming Thread
Gaming in Java is not something that is thought of all that often, but it actually is quite feasable and really not altogether too difficult once you learn how to get them started. Following are a list of Dream In Code Tutorials, Snippets, and Blogs. Note that these are for Java only.

General Topics
Dogstopper's Gaming Blog: http://www.dreaminco...log&blogid=867&
WolfCoder's contributions: http://www.dreaminco...udosmember=4811

Basic Java Game Tutorials
Rock Paper Scissors - NeoTifa:
http://www.dreaminco...wtopic92907.htm

Tic Tac Toe - Dogstopper:
http://www.dreaminco...topic143744.htm

Pong - Luckless: http://www.dreaminco...gopid__1061811&

Graphics and Image Manipulation
Dogstopper's Image Series (Still in progress):
http://www.dreaminco...topic162748.htm
http://www.dreaminco...topic162774.htm
http://www.dreaminco...nd-swingworker/
http://www.dreaminco...scaleop-filter/

pbl's Repaint() tutorials:
http://www.dreaminco...snippet5506.htm


Frame Rate
pbl's tutorials:
http://www.dreaminco...howtopic=113451
http://www.dreaminco...howtopic=113977

Other snippets:
http://www.dreaminco...&showentry=2094

Game Structure
http://www.dreaminco...&showentry=2104
http://www.dreaminco...&showentry=2210
http://www.dreaminco...&showentry=2221

Fonts
http://www.dreaminco...&showentry=2236

Audio
http://www.dreaminco...showtopic=14083
http://www.dreaminco...snippet1036.htm

Non-Java Specific/Important Concepts
(Written by our Java people)
Goals - NeoTifa:
http://www.dreaminco...as-blog-of-00m/

Math in Games- macosxnerd101, NeoTifa:
http://www.dreaminco...topic165639.htm
http://www.dreaminco...topic166013.htm
http://www.dreaminco...topic168022.htm
http://www.dreaminco...-1d-collisions/
http://www.dreaminco...-2d-collisions/

http://www.dreaminco...-for-beginners/


Now, if there are other Java-specific tutorials that need to be added, either post below or shoot me a PM. Remember, either Java-Specific or Math/Life skill related. Hope it's helpful!


Is This A Good Question/Topic? 8
  • +

Replies To: Java Game Programming Thread

#2 NeoTifa  Icon User is offline

  • Whorediot
  • member icon





Reputation: 2586
  • View blog
  • Posts: 15,614
  • Joined: 24-September 08

Re: Java Game Programming Thread

Posted 08 April 2010 - 05:51 AM

I wrote a game programming tutorial for Java but it's under the Java tutorials not Game Programming.
Was This Post Helpful? 1
  • +
  • -

#3 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2870
  • View blog
  • Posts: 11,021
  • Joined: 15-July 08

Re: Java Game Programming Thread

Posted 08 April 2010 - 06:23 PM

Added :)
Was This Post Helpful? 1
  • +
  • -

#4 NeoTifa  Icon User is offline

  • Whorediot
  • member icon





Reputation: 2586
  • View blog
  • Posts: 15,614
  • Joined: 24-September 08

Re: Java Game Programming Thread

Posted 09 April 2010 - 06:53 AM

Thanks.
Was This Post Helpful? 0
  • +
  • -

#5 nick2price  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 561
  • View blog
  • Posts: 2,826
  • Joined: 23-November 07

Re: Java Game Programming Thread

Posted 15 April 2010 - 05:58 PM

When programming a game, I tend to use something like c# with xna, or something like opengl. What I want to know is why java has never really been associated with creating games. Is it to do with graphics or something? I know xna is the framework for the xbox 360, hense you can make xbox quality games. Could this be done in java or is there no way to reproduce a game of this intensity?

On a side note, would using an additional library provide the quality? Maybe something like jogl.
Was This Post Helpful? 0
  • +
  • -

#6 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2870
  • View blog
  • Posts: 11,021
  • Joined: 15-July 08

Re: Java Game Programming Thread

Posted 15 April 2010 - 07:35 PM

Good question! I think that Java just sort of "missed" the games...It was too slow when it came out to compete with C++/C#/... and now is emerging as a language that could be used in gaming (now that the JVM is nearly as fast as C++). However, several reasons why this could be the case is the fact that Java does not have "easy" game development tools just set out like C++ and C# do with DirectX, OpenGL, and XNA. The same stuff CAN be done using Java, the methods are just a bit more obscure.

Also, Java, unlike C++ and C# doesn't have its own console gaming system. This is a pitfall that the other languages have on it. However, web games are frequently written in Java, and these are very good due to Java's web capabilities. As for JOGL, I have just begun with it and have found a gap in tutorials which is a little demoralizing. However, I know that Runescape used JOGL in it. However, I do believe that MOST things that OpenGL can do so can native Graphics (and the extra Graphics3D package). I personally like JOGL for its native calls and the lighting/ modeling and that sort of thing.
Was This Post Helpful? 2
  • +
  • -

#7 nick2price  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 561
  • View blog
  • Posts: 2,826
  • Joined: 23-November 07

Re: Java Game Programming Thread

Posted 16 April 2010 - 06:30 PM

My god, your too young to know this much stuff!!!! Atleast there is a niche in the market for a java game development tool. I bet you could make a pretty penny porting xna to be compatable with java (If this is even possible)
Was This Post Helpful? 0
  • +
  • -

#8 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2870
  • View blog
  • Posts: 11,021
  • Joined: 15-July 08

Re: Java Game Programming Thread

Posted 16 April 2010 - 08:26 PM

...thanks! Is 15 too young though? The XNA project does sound interesting, and the similarities between the languages would be great. JOGL is mostly made using JNI calls that call a library function (usually written in C). However, the same system could theoretically exist except for the fact that C# is Microsoft and does not work on every system equally. Personally, I think the same affects can be created with Native Java as XNA does but you make an interesting proposal. I might be interested in giving it a shot.
Was This Post Helpful? 0
  • +
  • -

#9 NeoTifa  Icon User is offline

  • Whorediot
  • member icon





Reputation: 2586
  • View blog
  • Posts: 15,614
  • Joined: 24-September 08

Re: Java Game Programming Thread

Posted 19 April 2010 - 08:58 AM

>=3 Neopets is written in Java..... (don't ask me how I know..... SHUT UP I WAS BORED!!! D: )
Was This Post Helpful? 0
  • +
  • -

#10 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 520
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: Java Game Programming Thread

Posted 20 April 2010 - 12:28 PM

View Postnick2price, on 16 April 2010 - 07:30 PM, said:

My god, your too young to know this much stuff!!!!


You're tellin' me.

He's makin' me look bad, and I've got 5 years on him (age-wise). He might actually have more programming experience than me (time-wise, I'm fairly certain he does (knowledge-wise) just based on looking at some of the stuff he posts).
Was This Post Helpful? 0
  • +
  • -

#11 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2870
  • View blog
  • Posts: 11,021
  • Joined: 15-July 08

Re: Java Game Programming Thread

Posted 20 April 2010 - 12:57 PM

Well...thanks...Locke: I've only been programming Java for 2 years now. I did C++ a little on my own 3 years ago, but that was more learning what computers do with programming.
Was This Post Helpful? 0
  • +
  • -

#12 Esoo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 27-November 09

Re: Java Game Programming Thread

Posted 07 June 2010 - 04:17 PM

Hi,

i just want to ask you Is learning game programming using java easy ??

and from where should i start???

Thanks for your efforts.
Was This Post Helpful? 0
  • +
  • -

#13 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10391
  • View blog
  • Posts: 38,455
  • Joined: 27-December 08

Re: Java Game Programming Thread

Posted 07 June 2010 - 04:46 PM

I'm not going to say Game Programming in general is easy, but it is very doable in Java. Before starting Game Programming for something like Pong or Asteroids, you should have a very strong OOP foundation, as well as a good understanding of how the Java GUI works. From there, you'll want to cover things like Event-Driven programming, painting in Java with the Graphics and Graphics2D classes, and possibly a good deal of Math and Physics depending on where you want to go with your game. The resources on this thread cover game programming for programmers of all skill levels, and are a very good starting place, given that you are familiar with the topics I outlined, in my opinion.

This post has been edited by macosxnerd101: 07 June 2010 - 04:46 PM

Was This Post Helpful? 1
  • +
  • -

#14 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8324
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: Java Game Programming Thread

Posted 07 June 2010 - 06:20 PM

I work in a shop where we make Slot Machine in C for casino's all over the world.
We have a common routine/function that make the roll to spin... quite a complicated function. When the user hit the roll it should stop, quite fast, but still showing what the math say the final result should be.

This is written in C to be quite efficient, checking for the interrupt (60 times a second) when the screen is refreshed.

When it is the time to update/modify this function, due to new functionnality for a new game, like roll accelerating before showing a WILD or a bouncing before the roll starts or something like that, it is always a nightmare and nobody wants to touch it.

One week I was tired, so during my spare time at home, I wrote a SlotMachine in Java with different sliders for the different features/effects: bouncing, slow down speed, near missed, .... all that dynamically changeable... on the fly with the sliders. It is after that exercise that I wrote my tutorials on how to draw offscreen.

Nobody will ever convinced me that Java cannot do the job. I never saw my image drawing lagging or missing a frame.
Was This Post Helpful? 2
  • +
  • -

#15 hdr  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 145
  • Joined: 15-December 08

Re: Java Game Programming Thread

Posted 29 June 2010 - 06:22 AM

thanks for compiling it all together.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2