Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-2007, 03:55 PM
Member
 
Join Date: Dec 2007
Posts: 2
gt123 is on a distinguished road
Programming a Game?
Hi there,

I'm new to Java programming and have only previously made a logic gate simulation program using the command prompt for input/output.

As part of my university degree I have been asked to create a game that uses a moving object(s). I have never used any of the graphics libraries and so could someone suggest something that would be relatively easy to program? and if possible, suggest how I would go about doing so?

Thank you very much,

GT
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-31-2007, 06:01 PM
Member
 
Join Date: Dec 2007
Posts: 16
Cazrin is on a distinguished road
Although not very experienced myself with the graphics side of Java, I've made a few attempts.

I'd say get to grips with Thread, and Canvas. Canvas is pretty much what you draw to, and the thread can keep updating the canvas so that you can see the changes being made.

There's probably a much easier way of doing it, and whole articles explaining how to go about games programming with Java. I'm sure a google search will give you the right results.

Also, you might want to say whether you want this to be applet or application based.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-31-2007, 06:07 PM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
Performance
Hello

It is also important to consider the performance of your game. You will need to use buffers if you want to use Graphic objects to draw stuff. It probably depends on your course, but maybe your educator is looking for something that uses Open GL or some other graphic tool.

I am also working on a game. It's a 2D space simulator with asteroids and scenery like planets and nebulas. It has an accurate collision system that functions well even if objects move at great velocities. Asteroids can bounce of each other and create exploding effects.

I am looking forward to hearing about your project.
__________________
If your ship has not come in yet then build a lighthouse.

Last edited by tim : 12-31-2007 at 06:14 PM.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 12-31-2007, 06:33 PM
Member
 
Join Date: Dec 2007
Posts: 2
gt123 is on a distinguished road
The game is supposed to an applet, and needs to be multi player to achieve higher grades. At the moment i'm clueless as to where to start. I've attached the assignment specification in text format (so it will let me upload it).

Thanks for your help.
Attached Files
File Type: txt ass.txt (2.9 KB, 8 views)
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 01-01-2008, 01:41 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 2,959
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
You have to make some steps to do this by yourself depend on the knowledge of Java. Applet comes later, you have to get few things to touch before, like how to move an object randomly and stuff. Start from that point and step by step involve it into an applet.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
(Close on September 4, 2008)

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
programming abcdefg New To Java 9 03-10-2008 11:34 AM
The words *game* in java programming :confused: ibmzz Advanced Java 1 01-23-2008 10:23 AM
java game programming gammaman New To Java 1 12-25-2007 02:01 AM
Implementing "Game Over" in Minesweeper game based on Gridworld framework. JFlash New To Java 0 11-16-2007 12:02 AM
Which book is good for 3D+2D game programming with java romina Java 2D 1 08-07-2007 06:19 AM


All times are GMT +3. The time now is 10:37 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org