Programming a Game?
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,
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.
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.:D
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.
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. :)
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.