Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (616)
Games in Android Showcase (173)
games submitted by our members
Games in WIP (659)
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  
  Space Game Map???  (Read 1451 times)
0 Members and 1 Guest are viewing this topic.
Offline aabbccddee

Junior Newbie

« Posted 2005-12-09 17:38:18 »

 hi everybody . I am cs student  that has  a project coming up Angry and i need some advice on
 how to develope a multiplayer network associated 2d top-down view space shooting game.
  I have some ideas but not done something smilar before. Also İ have to do it with Java and
  open gl and not experienced on it as you people are.

 in the game you have a ship and you have a large map that has multiple bases that you can get missions.
 Missions are like destroying asteroids, protecting cargo ships and usual enemy stuff. I have a problem
  with the map ; Embarrassed I dont know what to do about it. Constraints are; bases should have static locations and
  cargo ships should have travel points means they are depended on the map. There is a game that has very
  similar properties to the one i suppose to have. I want a map exactly like this example below. Please tell me
  what to do... i am desperate Undecided

Offline K.I.L.E.R

Senior Devvie

Java games rock!

« Reply #1 - Posted 2005-12-10 06:46:53 »

Well for starters you need a data structure to encapsulate your world.
Personally I use trees, specifically quad trees to break up quadrants.
Basically what you really want to model are the things you mentioned.

Spaceships, planets, worlds, missions, etc...
It wont matter if you do it in 2D or 3D (Java2D or JOGL) but unless you are well versed in 3D math and 3D programming with OpenGL I suggest you use Java2D.

What don't you know about the map?
A map is a data structure that holds everything together.

Is there a name for a "redneck" programmer?

Unemployed. Wink
Offline aabbccddee

Junior Newbie

« Reply #2 - Posted 2005-12-11 03:40:45 »

Hmmm. It will definately be 2d but i think i will prefer Open GL because
i am more familiar with it from my computer graphics course. And thanks
for the map data structure explanation  Wink i think i get it now. is there anything
that i miss other than the x,y cordinates and let's say the type of the object that i
want to keep in the data structure?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline K.I.L.E.R

Senior Devvie

Java games rock!

« Reply #3 - Posted 2005-12-11 05:29:21 »

You should be able to keep any type of an object within a tree's node.
You should build yourself a function that converts a tree node's lcoation within the tree into an x, y location.
If you use quad trees you already have an x,y location.

The questions you are asking are way too generic. There are far too many ways to represent a solution to a single problem.

Is there a name for a "redneck" programmer?

Unemployed. Wink
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Coldstream24 (18 views)
2015-09-03 00:41:28

Andrew_3ds (29 views)
2015-09-01 19:08:10

afikri (20 views)
2015-08-31 09:30:22

afikri (27 views)
2015-08-31 09:30:07

afikri (15 views)
2015-08-31 09:27:24

afikri (17 views)
2015-08-31 09:26:40

Roquen (32 views)
2015-08-29 11:30:54

GamerC4 (38 views)
2015-08-22 20:38:50

GamerC4 (36 views)
2015-08-22 20:37:18

GamerC4 (42 views)
2015-08-22 20:37:01
HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30 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‑
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!