Game programming

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 1661 Views - Last Post: 07 December 2010 - 12:16 PM Rate Topic: -----

#1 giggly kisses  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 80
  • View blog
  • Posts: 391
  • Joined: 29-March 09

Game programming

Posted 06 December 2010 - 03:47 PM

I just finished my Programming II class and feel like I have a ferm grasp on most of the concepts dealing with OOP. Now I want to get into something a bit more advanced like making a 2D game or something. My problem is I don't really know where to start. If anyone could give me some insight on where to start, what concepts I should learn, some game programming structure, and what classes to look into I would really appreciate it :)

Is This A Good Question/Topic? 0
  • +

Replies To: Game programming

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10803
  • View blog
  • Posts: 40,263
  • Joined: 27-December 08

Re: Game programming

Posted 06 December 2010 - 03:49 PM

Take a look at the Java Game Programming Thread pinned at the top of the page. It has links to a lot of good tutorails. :)
Was This Post Helpful? 0
  • +
  • -

#3 giggly kisses  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 80
  • View blog
  • Posts: 391
  • Joined: 29-March 09

Re: Game programming

Posted 06 December 2010 - 03:53 PM

View Postmacosxnerd101, on 06 December 2010 - 02:49 PM, said:

Take a look at the Java Game Programming Thread pinned at the top of the page. It has links to a lot of good tutorails. :)


I checked it out and found some good stuff but I still really don't know where to start. Their is just so much I don't know and its kind of overwhelming :blush:
Was This Post Helpful? 0
  • +
  • -

#4 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10803
  • View blog
  • Posts: 40,263
  • Joined: 27-December 08

Re: Game programming

Posted 06 December 2010 - 03:57 PM

I would start out with 2D graphics and things like animations. Then move onto tutorials on things like State Machines, which Dogstopper has a good blog entry on.
Was This Post Helpful? 1
  • +
  • -

#5 Luckless  Icon User is offline

  • </luck>
  • member icon

Reputation: 293
  • View blog
  • Posts: 1,146
  • Joined: 31-August 09

Re: Game programming

Posted 06 December 2010 - 03:57 PM

start from square one. Pick a game and make a class for each piece that you will need. For example, my Pong tutorial up there (though its from back in my repaint instead of timer days :whistling:) I think I have a good thought process of how to get the beginning stages of a game rolling. It's all about thinking it through before coding it. May I suggest a giant white board?
Was This Post Helpful? 1
  • +
  • -

#6 giggly kisses  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 80
  • View blog
  • Posts: 391
  • Joined: 29-March 09

Re: Game programming

Posted 06 December 2010 - 04:12 PM

View Postmacosxnerd101, on 06 December 2010 - 02:57 PM, said:

I would start out with 2D graphics and things like animations. Then move onto tutorials on things like State Machines, which Dogstopper has a good blog entry on.


Ok, I'll look around for a good 2D graphics tutorial.

View PostLuckless, on 06 December 2010 - 02:57 PM, said:

start from square one. Pick a game and make a class for each piece that you will need. For example, my Pong tutorial up there (though its from back in my repaint instead of timer days :whistling:) I think I have a good thought process of how to get the beginning stages of a game rolling. It's all about thinking it through before coding it. May I suggest a giant white board?


I'll check this out, thanks.
Was This Post Helpful? 0
  • +
  • -

#7 giggly kisses  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 80
  • View blog
  • Posts: 391
  • Joined: 29-March 09

Re: Game programming

Posted 06 December 2010 - 04:27 PM

I went looking around on google and couldn't really find any good tutorials. Most of the tutorials say they are for beginners but really assume the reader knows more then an absolute beginner would. Its really frustrating actually, I would just like to read something that tells me how to use the Graphics2D class and what good practice is when using it. I don't know if its just me but I learn best when I understand everything about a particular topic down to the core of it especially with programming. If I see some code that I don't understand it drives me nuts. A lot of these tutorials have code that I don't understand and make no attempt to explain what it does. Maybe I should be looking for a book instead of a tutorial.
Was This Post Helpful? 0
  • +
  • -

#8 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10803
  • View blog
  • Posts: 40,263
  • Joined: 27-December 08

Re: Game programming

Posted 06 December 2010 - 05:22 PM

Did you check out the Java Game Programming thread yet? There are a couple good tutorials on animations alone. :)
Was This Post Helpful? 0
  • +
  • -

#9 giggly kisses  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 80
  • View blog
  • Posts: 391
  • Joined: 29-March 09

Re: Game programming

Posted 06 December 2010 - 06:50 PM

View Postmacosxnerd101, on 06 December 2010 - 04:22 PM, said:

Did you check out the Java Game Programming thread yet? There are a couple good tutorials on animations alone. :)


I have and honestly its not doing it for me. I can't learn such a detailed topic like making games from just a short tutorial I guess. Can anyone suggest any good books for developing games in java?
Was This Post Helpful? 0
  • +
  • -

#10 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2876
  • View blog
  • Posts: 11,051
  • Joined: 15-July 08

Re: Game programming

Posted 06 December 2010 - 06:52 PM

Why don't you look at the tutorial and if you have questions about what things mean, you post them here and we can explain...
Was This Post Helpful? 0
  • +
  • -

#11 giggly kisses  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 80
  • View blog
  • Posts: 391
  • Joined: 29-March 09

Re: Game programming

Posted 06 December 2010 - 07:02 PM

View PostDogstopper, on 06 December 2010 - 05:52 PM, said:

Why don't you look at the tutorial and if you have questions about what things mean, you post them here and we can explain...


Well with all the tutorials out there each one does everything a little bit differently and this really confuses me. When I learn to do something I need to know a unified way of doing something and all these different ways of doing it is really confusing me. Its just the way I work unfortunately.
Was This Post Helpful? 0
  • +
  • -

#12 pbl  Icon User is offline

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

Reputation: 8346
  • View blog
  • Posts: 31,905
  • Joined: 06-March 08

Re: Game programming

Posted 06 December 2010 - 07:15 PM

Start by simple ones:
- tic tac toe
- memory game
- snake
- game of life

There are plenty of examples around. (I think I have code snippet for the last 3) Seems boaring ? It is the only way to learn.
If you try the big game right away.. it will never work
Was This Post Helpful? 0
  • +
  • -

#13 giggly kisses  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 80
  • View blog
  • Posts: 391
  • Joined: 29-March 09

Re: Game programming

Posted 06 December 2010 - 07:26 PM

View Postpbl, on 06 December 2010 - 06:15 PM, said:

Start by simple ones:
- tic tac toe
- memory game
- snake
- game of life

There are plenty of examples around. (I think I have code snippet for the last 3) Seems boaring ? It is the only way to learn.
If you try the big game right away.. it will never work


I have made a tic tac toe game before and understand things like this, I'm just trying to understand things like double buffering, how the graphics work, whether I should make a game in an applet or jframe, etc.
Was This Post Helpful? 0
  • +
  • -

#14 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10803
  • View blog
  • Posts: 40,263
  • Joined: 27-December 08

Re: Game programming

Posted 06 December 2010 - 07:31 PM

You shouldn't need double bufferring anytime soon in Java. Just use Swing Timer for repainting. Regardless of JApplet or JFrame, extend JPanel and override paint() for your game. Then add the JPanel to your JFrame or JApplet. For simple games like those listed, this will be more than sufficient. :)
Was This Post Helpful? 0
  • +
  • -

#15 pbl  Icon User is offline

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

Reputation: 8346
  • View blog
  • Posts: 31,905
  • Joined: 06-March 08

Re: Game programming

Posted 06 December 2010 - 07:31 PM

So go to snake or game of life
they have basic animations and timers

As far as JApplet or Application your choice
you can actually write a program that can run as one or the other
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2