Thread: A bit of color!
View Single Post
  #1 (permalink)  
Old 01-07-2008, 07:52 PM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 291
tim is on a distinguished road
A bit of color!
Hello everyone!

I've noticed that there are many new members that are interested in Java gaming. I'm currently busy with a space game called "Eath's Belt". I think that some members on Java Forums might appreciate some pictures of what can be done with Java2D.

The game has the ability to generate and draw scenery for my game. The game has collision detection and a reasonable frame rate, on my PC so far. Anyway here are the pictures:



Picture 1: The planet is generated by the Java program. It uses BufferedImage objects and alpha blending. The spaceship is made out of polygons, loaded from a file. The polygons are shaded appropriately as the ship moves to simulate a “3D” effect. It also leaves a cyan trail of the engine for the spacey effect.



Picture 2: In the background is a nebula or dust cloud. It adds color to my game and gives a sense of position and motion to the player. The ship can shoot lasers and the lasers can hit (or miss closely) certain bodies defined in my game, like asteroid. Asteroids can bounce of the player’s ship and split into two smaller asteroids when shot - just like the original Asteroids game. Asteroids can also bounce off each other to make them behave more unpredictably. The player’s ship is smaller in this screenshot because I “zoomed” the camera out.



Picture 3: This is a birds-eye view of the entire solar system. It contains a star in the center, planets (indicated by the green icons) and asteroid clusters (indicated by the blue icons).



Picture 4: Here the player is shooting rapidly and rotating.

Thank you for reading this monster. I would be glad if any one can give their opinions and tips where I can make improvements.

Thanks - Tim
__________________
If your ship has not come in yet then build a lighthouse.

Last edited by tim : 01-17-2008 at 12:30 PM.
Reply With Quote
Sponsored Links