Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (117)
games submitted by our members
Games in WIP (564)
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  
  Getting Started  (Read 841 times)
0 Members and 1 Guest are viewing this topic.
Offline bitsplitter

Junior Newbie





« Posted 2005-07-01 02:47:35 »

Hi everyone.  I have been programming for more than a couple of years, but mostly on and off.  I have never quite finished a project, except for a few dynamic web pages, and those weren't coded in Java.  I started using Java when I was in college way back in the day ov 1.1, and now 1.5 is out and I am completely lost.  To add to that, all info I find is aimed mostly at application design instead of game design.  I am interested in getting started with the nitty gritty Java game coding.

Most people have told me to buy books, but I seldom find books to be helpful, being as they often are expensive, and usually verge off into areas that have nothing to do with what I am doing.  So, here it goes.

I have found a couple of problems:

How do I get a Simple window, or fullscreen in which I can code?
How do I make sure I can render images wherever I want?

I have the Java 1.5 SDK and docs, and that's what I want to stick with for the moment.  I am not interested in 3D games yet, as the engines to those are too complicated to get started.  I basically wanna do a Tic Tac Toe app, most of the AI stuff I am VERY familiar with, it's the graphical stuff that's getting in the way.

Tutorials, or links to threads where this has already been answered would be appreciated.  Yes I did search the forums for Getting started, and Making a Window and such, but no luck.  Maybe I should RTFM a bit more, but I was wondering if anyone had already invender the wheel before I started with the stonecutting.

Thanks in advance.

- Carlos
Offline Patdumpsite

Senior Newbie





« Reply #1 - Posted 2005-07-01 09:04:10 »

Here is a link to a tutorial on how to make a space invaders game:

http://www.planetalia.com/cursos/index.jsp

I am working on a board game, so it is not even in the same genre as this tutorial, but I found it incredibly useful for the basics on getting started.

Hope it helps.   Wink
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #2 - Posted 2005-07-01 14:12:50 »

Typed in, so watch for typos

1  
2  
3  
4  
5  
6  
JFrame window = new JFrame();
DisplayMode displayMode = new DisplayMode(800, 600, 16, 75);
GraphicsEnvironment environment = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice device = environment.getDefaultScreenDevice();
device.setFullScreenWindow(window);
device.setDisplayMode(displayMode);


1  
2  
3  
Graphics g = getGraphics();
or
Graphics2D = (Graphics2D)getGraphics();


The first code snippit is deliberately taken from David Brackeen's 'Developing Games in Java'.  Books can save a lot of time...but it has to be the right book

Alan Wink

Time flies like a bird. Fruit flies like a banana.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Malohkan

Senior Member




while (true) System.out.println("WOO!!!!");


« Reply #3 - Posted 2005-07-03 02:49:15 »

You could give my tutorial a lookin over too:
http://www.gamelizard.com/JavaGameProgrammingPresentation.htm
The link at the top gives the source.  Play with that and you should find your question answered.  It can run the same game in Applets, windowed Frames, and fullscreen Frames in Java2D.

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
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.

Grunnt (22 views)
2014-09-23 14:38:19

radar3301 (14 views)
2014-09-21 23:33:17

BurntPizza (31 views)
2014-09-21 02:42:18

BurntPizza (22 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (30 views)
2014-09-20 20:14:06

BurntPizza (34 views)
2014-09-19 03:14:18

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

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

TehJavaDev (108 views)
2014-09-10 06:39:09
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!