Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (527)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (594)
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  
  Starting with which game? (newbie)  (Read 1251 times)
0 Members and 1 Guest are viewing this topic.
Offline ThePrinny

Junior Newbie





« Posted 2010-11-14 20:14:00 »

Hello, everyone!

Discovered this forum after reading parts of Killer Game Programming. Not sure where to start, making a game is so different from making a traditional application it kinda hits me how a game should flow when the program starts/pause/resume. Like I said, been reading that book for a while, then I helped myself to read a few topics here to glue together my requirements of what I need to know before starting but it's still not enough I guess.

About the Basic Game, is the Canvas is some sort of component too?, never seen the Canvas class before so I'm guessing it's sort of like a JPanel or something like that. (Still learning Java, slow but steady Smiley ).

The UI elements used in some games in the showcase, are they Swing buttons, or do they create their own customized UI for the game?


Anyway, besides those questions, most important one is which game should I try to program. I tried to do tetris but without any guidance it was mostly a hopeless attempt, couldn't do much.

Cheers,
David
P.S my bad if there are some grammar errors! Main lang is spanish
Offline CyanPrime
« Reply #1 - Posted 2010-11-14 20:41:12 »

Basic Game seems to be a full templet, and not a panel.
Offline ThePrinny

Junior Newbie





« Reply #2 - Posted 2010-11-14 22:20:11 »

Basic Game seems to be a full templet, and not a panel.

Ah no, I didn't mean that, was just wondering about the java.awt.Canvas class and what I could do with it.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

« JGO Spiffy Duke »


Medals: 425
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #3 - Posted 2010-11-14 22:24:05 »

More or less all you can do with it is draw on it. You can get it double buffered using BufferStrategy, and render it actively in a loop, like most games do.

Cas Smiley

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #4 - Posted 2010-11-14 22:30:54 »

The UI elements used in some games in the showcase, are they Swing buttons, or do they create their own customized UI for the game?
Depends, most will create their own especially when not using Java2D.

Anyway, besides those questions, most important one is which game should I try to program. I tried to do tetris but without any guidance it was mostly a hopeless attempt, couldn't do much.
Personally I like shmups, they're pretty easy to code and they cover most of the basics you'd need for general games programming.
Offline ThePrinny

Junior Newbie





« Reply #5 - Posted 2010-11-14 23:03:27 »

Depends, most will create their own especially when not using Java2D.
Personally I like shmups, they're pretty easy to code and they cover most of the basics you'd need for general games programming.

it looks fun Smiley, is there any resources available (like ships, pew pew lasers lol, etc) ?

The only problem I'm having is this... I don't know how to answer it myself since I never programmed a game.

Moving forward,up etc, thats all normal, yet moving the whole background along... I load the background, paint it to the canvas. How should I "move" the background so it seems like I'm moving through space? my bad if it looks confusing, kinda hard to elaborate =/

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #6 - Posted 2010-11-14 23:16:23 »

it looks fun Smiley, is there any resources available (like ships, pew pew lasers lol, etc) ?

There are plenty of resources online, just google for them and if your just learning you can just use ripped sprites from shmup games (again theirs tons of sites that provide these).

e.g. you could use http://www.flyingyogi.com/fun/spritelib.html

Moving forward,up etc, thats all normal, yet moving the whole background along... I load the background, paint it to the canvas. How should I "move" the background so it seems like I'm moving through space? my bad if it looks confusing, kinda hard to elaborate =/
Not all shmups have scrolling backgrounds, and if your considering space for a background then you don't even have to scroll the background, just have the random speed stars (white dots) scroll past on the black background.
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.

PocketCrafter7 (12 views)
2014-11-28 16:25:35

PocketCrafter7 (8 views)
2014-11-28 16:25:09

PocketCrafter7 (8 views)
2014-11-28 16:24:29

toopeicgaming1999 (75 views)
2014-11-26 15:22:04

toopeicgaming1999 (65 views)
2014-11-26 15:20:36

toopeicgaming1999 (15 views)
2014-11-26 15:20:08

SHC (29 views)
2014-11-25 12:00:59

SHC (27 views)
2014-11-25 11:53:45

Norakomi (32 views)
2014-11-25 11:26:43

Gibbo3771 (28 views)
2014-11-24 19:59:16
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!