I’ve recently been messing around with the Kryonet library and decided to make a multiplayer, planet trading game. Inspired by Eve Online and Tribal Wars. This started out as a server/client test; but turned into a slightly functional, pretty ugly looking game.
I’ve been making this up as I go along, but here’s what I’m planning. Some of these points have been already implemented.
- The server generates a galaxy which contains regions.
- Regions contain sectors and sectors contain star systems. Star systems can spawn with 0-5 planets.
- Planets have types (Gas, lava, ocean, terran, etc), different types spawn different resources.
- When a player logs in for the first time, they are assigned a random starting planet.
- They have to build factories to harvest the resources and turn them into goods.
- Goods are used to build factories and can be traded.
- Players can trade goods and planets.
- The server dynamically loads in items, resources and buildings from text files. Allowing the server to be highly customisable.
- Generates in a vaguely-galaxy-like-shape.
- Local system map which displays planets in star system.
- And thats all I have so far…
A small galaxy (0.2mb) with the 487 planets in 164 star systems takes 2.95 seconds to generate. A larger galaxy (6.4mb) with 15,203 planets in 6133 systems took 76 seconds to generate.
EDIT:
Instead of attaching big ass pictures to this post, I’ll give you the link to an imgur album: http://imgur.com/a/KHQFX. I will be updating this with the latest images. I’ll attach any small images that will fit on this post.
I’m not to sure what kind of resources,goods or factories I could have.
What I’d like to add
- Proper GUI, currently I’m using Java Graphics to render everything.
- Random events, natural disasters?
- Guilds/corporations/groups. Players join together to pool their resources.
- Maps. Render the local map to find nearby planets and players.
- Ships/transport ships. Transport goods between planets? Attack player owned planets? Scout out other planets for resources?
- Highscores. List of all players and their total worth? Player profiles?
I may be biting off more than I can chew here, but its a fun project. I’d love to hear your suggestions/comments/criticism. I’ll release the source code when I am less ashamed of it, its very messy and I just want to get the functionally working.
Thanks!
Update 1: 10/12/14
- Game now loads in resources from text files, populates planets with them.
- Game also loads factory types, can now build factories on planets.
- Tested connecting to a remote computer (gave friend a client), not local host. Successfully connected to my server!
- More to come soon.
Update 2: 17/12/14
b9uepfHfPvk
Update 3: 30/12/14
7io4SPgXDrw
This is how the server generates the galaxy:
Bonus gif
Update 4: 02/01/15
STAR SYSTEM MAPS! You can now view the planets in your star system. More info in the imgur album above &^^.
Bonus gif