Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Questions before writing Games: Concepts, Basics and first steps  (Read 831 times)
0 Members and 1 Guest are viewing this topic.
Offline Noran

Innocent Bystander





« Posted 2012-07-01 00:58:19 »

Hi Everyone,

after trying to make games with a engine and a C# framework (XNA) I wanted to start even lower. Not only to make games but for fun and education.
So I decided to start with nothing but java and it´s libraries and nothing more. (I chose java because I have to learn it for university right now)

After my first crappy attempts of writing a game loop I found some great tutorials (including the one here). But after the loop I´m stuck.
I have an abstract class for my game loop with the abstract methods start, update, draw and end. My idea was to create a subclass and override the abstract methods with the implementation.
And here is my problem: I have no idea of the concept behind a game!
How do the class with the game loop, the class with the frame, another class with something drawable come together?

I saw this one (http://www.java-gaming.org/topics/game-loops/24220/view.html) but I don´t want to write everythin in just one class. How do I implement this one object-oriented?
Offline sproingie
« Reply #1 - Posted 2012-07-01 02:56:39 »

Don't bother with the abstract class, you don't need one til you're ready to write multiple things all using that loop code.  There's no greater concept behind a game -- it's just a program like any other, and you can assemble it in any of a hundred different ways. 

Do what you know, get a program working, then push yourself to learn one new thing at a time, whether it's abstracting things out into interfaces or composing behavior out of components.  There's nothing wrong with starting off by throwing everything into one or two classes then breaking pieces out later.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (55 views)
2014-04-15 18:08:23

BurntPizza (53 views)
2014-04-15 03:46:01

UprightPath (66 views)
2014-04-14 17:39:50

UprightPath (49 views)
2014-04-14 17:35:47

Porlus (66 views)
2014-04-14 15:48:38

tom_mai78101 (90 views)
2014-04-10 04:04:31

BurntPizza (151 views)
2014-04-08 23:06:04

tom_mai78101 (246 views)
2014-04-05 13:34:39

trollwarrior1 (204 views)
2014-04-04 12:06:45

CJLetsGame (211 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!