{"id":9060,"date":"2013-05-03T09:43:03","date_gmt":"2013-05-03T13:43:03","guid":{"rendered":"https:\/\/www.spacesector.com\/blog\/?p=9060"},"modified":"2013-05-03T10:13:17","modified_gmt":"2013-05-03T14:13:17","slug":"making-a-space-4x-game-a-living-galaxy","status":"publish","type":"post","link":"https:\/\/www.spacesector.com\/blog\/2013\/05\/making-a-space-4x-game-a-living-galaxy\/","title":{"rendered":"Making a Space 4X Game: A Living Galaxy"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9061\" title=\"Exploring a living galaxy\" src=\"https:\/\/www.spacesector.com\/blog\/wp-content\/uploads\/making_a_space_4X_game_a_living_galaxy.jpg\" alt=\"Exploring a living galaxy\" width=\"600\" height=\"338\" srcset=\"https:\/\/www.spacesector.com\/blog\/wp-content\/uploads\/making_a_space_4X_game_a_living_galaxy.jpg 600w, https:\/\/www.spacesector.com\/blog\/wp-content\/uploads\/making_a_space_4X_game_a_living_galaxy-300x169.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>I&#8217;m going to start writing about the systems in the game now. This will be a series of many articles.\u00a0If you want to have a look at my previous articles of this series, please find them all\u00a0<a  href=\"https:\/\/www.spacesector.com\/blog\/tag\/making-a-space-4x-game\/\" target=\"_blank\">here<\/a>. These\u00a0are my dev journals on making my own space 4X game.<\/p>\n<p>Hopefully, by the time when I&#8217;m done you will all have a good idea of how the game will play and that&#8217;ll be enough for you to decide if it&#8217;s good enough for you to try :)<\/p>\n<p>I also want to throw out a disclaimer: I will be showing some game art now. Most of it is placeholder art. The game is still in Alpha phase (not feature complete, but getting there).<\/p>\n<p>I will be going to kickstarter later this year to get high quality art assets. So please refrain from making TOO many negative comments about my placeholder art :)<\/p>\n<h3>A Living Galaxy<\/h3>\n<p>There is a lot to say about a galaxy that feels alive, and full of discovery. It really makes the game more enjoyable \u2013 you don&#8217;t know what is at the planetary system you&#8217;re about to explore. What space monsters reside out in deep space? What sort of change happens over the course of the game to the galaxy? All of these are parts of making a living galaxy. It&#8217;s also easier said than done.<\/p>\n<p><strong>My Vision<\/strong><\/p>\n<p>I&#8217;ve taken the following approach of trying to add a bunch of unique and fun aspects to bring the galaxy alive.<\/p>\n<ul>\n<li>Allow for enough variation and cool stuff to be generated each game so discovery is always fresh and exciting.<\/li>\n<li>Make different parts of the galaxy useful for different activities and at different times of game play.<\/li>\n<li>Make sure super rare items can appear and be useful for anyone who finds them.<\/li>\n<li>Integrate some game systems into this. The galaxy view can be used in many different ways, and that can help bring the galaxy to life.<\/li>\n<\/ul>\n<p>One important note: I&#8217;m going to continually work on this idea of creating a living galaxy. I won&#8217;t be able to implement all of my ideas right away, so I&#8217;ll work on it over time but what you read here is already in.<\/p>\n<p><strong>Galaxy Types<\/strong><\/p>\n<p>Galaxy types offer a good foundation for unique game play and different experiences. This is mostly due how the topography of a galaxy affects game play choices (such as where to expand\/explore). It can set up fun situations: maybe being present at the end of a spiral arm, or in the center of a ring galaxy. Each situation can appeal to different players, and that is good.<\/p>\n<p>I will offer the following galaxy types at release:<\/p>\n<p>2 and 4 arm spiral, elliptical, ring, small and large clusters, chained clusters(clusters connected by small paths of stars), streaks(random streaks of stars) and spokes (sorta like spokes from a bike).<\/p>\n<p>For each galaxy type, it&#8217;ll be possible to specify the size, age, and resource, special and planet scarcity.<\/p>\n<p>This is quite typical of 4X games. I&#8217;m just offering several new types of galaxy structures (streaks, spokes and chained clusters). I have plans for more galaxy types later.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9065\" title=\"4 Arm Spiral Galaxy\" src=\"https:\/\/www.spacesector.com\/blog\/wp-content\/uploads\/4-arm-spiral_.jpg\" alt=\"4 Arm Spiral Galaxy\" width=\"600\" height=\"557\" srcset=\"https:\/\/www.spacesector.com\/blog\/wp-content\/uploads\/4-arm-spiral_.jpg 600w, https:\/\/www.spacesector.com\/blog\/wp-content\/uploads\/4-arm-spiral_-300x278.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><strong>Galaxy Contents<\/strong><\/p>\n<p>One important and fun aspect is to make sure that there is always a reason to explore \u2013 from the very beginning to the very end of the game.<\/p>\n<p>In order to achieve this, I&#8217;ve made it so that each star has a random set of possible planet types (all defined in XML). Each star and planet type can spawn some unique and rare characteristics (resources, improvements, trade goods, specials). Sometimes, more than 1 rare characteristic may be generated \u2013 making the planet super special and worth defending. For example, maybe a planet generates with a high amount of rare resources. This would make the planet a critical point for an empire.<\/p>\n<p>Each planet type will have a set of common characteristics that are typical for that type. But, each will have some rare and at times, ultra rare characteristics. They will have a large impact if colonized and exploited to their maximum! I also offer some unique and rare planet types (such as carbon or chthonian), which also have rare characteristics. While these have slight chances of occurring, they should happen often enough to have an impact.<\/p>\n<p>For example, maybe you were suddenly attacked and weren&#8217;t ready for this war. Your colonizer is just about to reach a rare planet, capable of producing a lot of of industry. Within a few turns your new planet is pumping out warships to help defend against this unexpected war.<\/p>\n<p>I&#8217;m also going to make some really interesting stellar objects present in the galaxy. I rarely see things such as neutron stars (sure, they sometimes are in games) actually have meaning. Maybe neutron stars are very good at producing research \u2013 so you&#8217;ll be able to build some special research improvements. Space has so many cool things out there \u2013 I want many of them to be present and each useful in their own way (or in some cases, better at doing common aspects).<\/p>\n<p>Thusly, by making sure that the planets and other stellar objects offer a chance of offering unique and rare combinations of characteristics, it will make the contents of the galaxy always different and worth exploring.<\/p>\n<p><strong>Resources<\/strong><\/p>\n<p>The game will offer 7 resources, split in three tiers. Each resource has a specific use. They are:<\/p>\n<p><em>Early Game<\/em><br \/>\nNeodymium (Mineral)<br \/>\nDeuterium (Fuel)<\/p>\n<p><em>Mid Game<\/em><br \/>\nZalluriam (Mineral)<br \/>\nAntimatter (Fuel)<\/p>\n<p><em>End Game<\/em><br \/>\nDark Matter (\u201cMineral\u201d)<br \/>\nDark Energy (Fuel)<br \/>\nBoson Crystals (Special)<\/p>\n<p>Minerals are used to construct ships armor. Fuel is used to power ships engines. Finally the single special, Boson Crystal, is used for well, special components and some powerful weapons\/armor. It&#8217;ll be an end game resource, rare and extremely useful. I&#8217;m hoping to drive resource contention with it. This&#8217;ll take some balance tweaking to ensure that it offers good game play (ie: making sure it&#8217;s not an \u201cI Win\u201d button).<\/p>\n<p>Resources will work like Civilization 5. You have access and can build ships with it. When the ship is destroyed, the stockpile gets restored. This is done to lower micromanagement and keep small numbers in the game. Instead of 10,000&#8217;s of resources per resource, you only have 100 or 1000 (depending on galaxy size).<\/p>\n<p>Of course, the game can be modded to handle any amount of resources.<\/p>\n<p>In addition, if you notice the types of resources, they&#8217;re all slightly different. This means the harvesting mechanism will be different. For example, Dark Matter may be located out in deep space. Antimatter may be harvested from suns\/stars. Dark Energy could be from black holes. As you can see \u2013 this really makes the resource dynamic of the game change!<\/p>\n<p>And finally, the way the game is played slightly changes over the course of it \u2013 at the beginning you&#8217;ll be harvesting Deuterium on regular planets, and by the end \u2013 you&#8217;ll be looking for black holes to get the Dark Energy. This is good since it&#8217;s more interesting over the session and keeps you engaged.<\/p>\n<p><strong>Building Stuff<\/strong><\/p>\n<p>I&#8217;ve made the decision to make sure that the players cannot always build every single improvement on a planet. They are only given enough room to build a subset (most times). This will facilitate continual expansion. This can be magnified especially when certain events occur (either internal such as a player&#8217;s own goals or external like a nearby opposing empire affecting them).<\/p>\n<p>I&#8217;m going to do a future article on Empire Management and Micromanagement that explains this aspect of building in more detail so I&#8217;ll stop here.<\/p>\n<p><strong>Exploration<\/strong><\/p>\n<p>I wanted to do something different for exploration. You know \u2013 besides sending out a scout ship and hitting end turn. So I&#8217;ve come up with some extensions and this is how I&#8217;ll handle exploring:<\/p>\n<p><em>Scout Ships<\/em><\/p>\n<p>Well, not much to say here except: they completely explore a stellar object (star) and it&#8217;s orbitals(planets).<\/p>\n<p><em>Probes<\/em><\/p>\n<p>You&#8217;ll be able to construct probes for a small price and then launch them to nearby stellar objects. They are a ONE time use, but will completely explore the stellar object like a scout ship. They&#8217;ll be much cheaper and faster than scout ships.<\/p>\n<p><em>FTL Scans<\/em><\/p>\n<p>You&#8217;ll be able to construct a large scan array that can be deployed anywhere. This scanner will act as a sensor array which will scan nearby stellar objects and anything in space in range (so fleets will show up). The catch here is: you won&#8217;t be able to scan the contents of the stellar objects \u2013 just the name will be revealed. These will also last a few turns(though the name of the stellar objects explored will remain). These sensor scans take a bit more industry to build than scout ships or probes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9064\" title=\"Exploring the galaxy\" src=\"https:\/\/www.spacesector.com\/blog\/wp-content\/uploads\/making_a_space_4X_game_exploration.jpg\" alt=\"Exploring the galaxy\" width=\"600\" height=\"558\" srcset=\"https:\/\/www.spacesector.com\/blog\/wp-content\/uploads\/making_a_space_4X_game_exploration.jpg 600w, https:\/\/www.spacesector.com\/blog\/wp-content\/uploads\/making_a_space_4X_game_exploration-300x279.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>By presenting the player with a few different ways of how to explore and answer the question \u201cHey, what&#8217;s out there?\u201d it should be a bit more interesting since choices have to be made. You won&#8217;t (though you can) always be building scout ships. There are advantages and disadvantages for each type, and some have long term use, such as the FTL Scans.<\/p>\n<p><strong>Other Game Systems<\/strong><\/p>\n<p>I&#8217;ve also taken the idea of a living galaxy and used it in many of the other game systems \u2013 technology, trade, espionage, and diplomacy. In the case of trade and espionage, the player has control to define some structural aspects of how they work\/behave, and this structure will change over time. On diplomacy, since it&#8217;s partially incident based, the player will be able to see actions that happened in the past. It&#8217;ll give history to their experiences in galaxy. Finally, for technology, there will be a few super projects that can be discovered and completed. These will be randomized during generation of the game.<\/p>\n<p>This helps create an image in the player&#8217;s mind that the galaxy is alive because it had a beginning, and then changes over time. The player can look at these systems and see how it takes shape on the main galaxy view. Then, they can control certain aspects to give ownership. This will hopefully create a sense of being alive and make the galaxy more than just a star map.<\/p>\n<p>I&#8217;m going to be doing articles on the systems mentioned above so I won&#8217;t explain them now.<\/p>\n<p><strong>Codex<\/strong><\/p>\n<p>Since I&#8217;ve created a lot of lore, I want to make sure the player can have access to it while playing the game. As such, I&#8217;ve created the Codex system. Each time a game is generated, a series of codex\u2019s are placed on various orbitals. When a player colonizes\/explores that planet, they&#8217;ll gain access to it. It&#8217;ll be saved to a special file that persists between games. Besides explaining the lore of the universe, these codex\u2019s are going to be part of the requirement to unlock the special faction.<\/p>\n<p><strong>Pirates and Space Monsters<\/strong><\/p>\n<p>There will be these guys out there. They&#8217;re always fun and it&#8217;s cool to see how a developer tackles it. I have a couple of interesting ideas for space monsters, besides just the typical random one appearing. It involves transforming planets into breeding grounds of some sorts. If left unchecked, it could be a thorn in an empire&#8217;s side for a bit. I may have a rare chance of having super space monsters that can seriously plague the galaxy.<\/p>\n<p>For pirates, they play a big role in the trade system and will be based on various factors, such as distance from your planets and how many of your fleets are around.<\/p>\n<p><strong>Extras<\/strong><\/p>\n<p>Now, I said in a previous article I don&#8217;t talk about things that aren&#8217;t in yet. But I&#8217;m going to break that rule this one time. I mentioned above that I have plans to expand on making a living galaxy, and I&#8217;ll list a few of them: event system, unique wonders, and smaller unique named stellar objects. Some of these may make it in on the initial release, but I can&#8217;t say for sure.<\/p>\n<p>Of course, I can take requests so if you have any ideas \u2013 let me know!<\/p>\n<h3>Conclusion<\/h3>\n<p>So there you have it. That is how I&#8217;m trying to create a galaxy that isn&#8217;t static. I have some more things I&#8217;m doing but I&#8217;ll save those for another article.<\/p>\n<p>Trying to make a living galaxy was something that I had to continually think of while designing each system. I think it&#8217;ll pay off \u2013 the galaxy will hopefully be more interesting than in other games. I hope the players have fun exploring each stellar object and location in the galaxy and think it&#8217;s worth it. After all, 3 of the 4 X&#8217;s are: eXplore, eXpand and eXploit<\/p>\n<p>I&#8217;m going to continually improve upon this aspect for future updates as it&#8217;s important.<\/p>\n<h3>What am I currently working on?<\/h3>\n<p>I&#8217;ve been very busy the last 2 months. I&#8217;ve completed the majority of the fleet combat (I recently added lasers), then implemented the agency based espionage system, incident based diplomacy system, added in space governments and I converted the game to use LibGDX (potential Android deployment + better performance\/tools) rather than Slick2D.<\/p>\n<p>Between this, I&#8217;ve been coding the AI system. Finally, I&#8217;ve been working with my new artist to bring the different Empires to life! He&#8217;s doing a great job and I know you&#8217;ll like the art work.<\/p>\n<p>Thanks for reading and I look forward to your comments.<\/p>\n<p><em><span style=\"color: #227dc2;\">dayrinni has been a Space Sector contributor since October 2011. This is his first foray into writing articles for any review site. He is an avid gamer in the genres of 4X, Strategy, MMO&#8217;s and RPGs. Finally, he has been the implementor of several MUDs and is currently working on a space 4X game that offers large scope and complexity. See all dayrinni&#8217;s posts <a  style=\"color: #7a1a99;\" title=\"dayrinni's posts\" href=\"https:\/\/www.spacesector.com\/blog\/tag\/dayrinni\/\" target=\"_blank\">here<\/a>. In particular, check his <a  style=\"color: #7a1a99;\" href=\"https:\/\/www.spacesector.com\/blog\/tag\/what-makes-a-good-game\/\" target=\"_blank\">&#8220;what makes a good game&#8221;<\/a> and <a  style=\"color: #7a1a99;\" href=\"https:\/\/www.spacesector.com\/blog\/tag\/making-a-space-4x-game\/\" target=\"_blank\">&#8220;making a space 4X game&#8221;<\/a> series.<\/span><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m going to start writing about the systems in the game now. This will be a series of many articles. We start with my vision of what makes a galaxy feel alive and full of discovery.<\/p>\n","protected":false},"author":41,"featured_media":0,"comment_status":"registered_only","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[177,1],"tags":[1502,373,1173],"class_list":["post-9060","post","type-post","status-publish","format-standard","hentry","category-game-design","category-space-strategy-games","tag-game-design","tag-game-development","tag-making-a-space-4x-game"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.spacesector.com\/blog\/wp-json\/wp\/v2\/posts\/9060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.spacesector.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spacesector.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spacesector.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spacesector.com\/blog\/wp-json\/wp\/v2\/comments?post=9060"}],"version-history":[{"count":0,"href":"https:\/\/www.spacesector.com\/blog\/wp-json\/wp\/v2\/posts\/9060\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.spacesector.com\/blog\/wp-json\/wp\/v2\/media?parent=9060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spacesector.com\/blog\/wp-json\/wp\/v2\/categories?post=9060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spacesector.com\/blog\/wp-json\/wp\/v2\/tags?post=9060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}