{"author_link":"\/users\/tajamsoft","author_name":"tajamsoft","author_uid":"tajamsoft","comments":[],"epoch":1494607148,"event":"LD38","format":"md","ldjam_node_id":30924,"likes":0,"metadata":{"p_key":"93374","p_author":"tajamsoft","p_authorkey":"1003303","p_urlkey":"306292","p_title":"TinyPlanets post mortem","p_cat":"LDJam ","p_event":"LD38","p_time":"1494607148","p_likes":"0","p_comments":"0","p_status":"WAYBACK","us_key":"1003303","us_name":"tajamsoft","us_username":"tajamsoft","event_start":"1492732800","event_key":"69","event_name":"LD 38"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD38","removed_author":false},"_superparent":9405,"_trust":2,"author":3303,"body":"You can play the game here: https:\/\/ldjam.com\/events\/ludum-dare\/38\/tinyplanets \n(Please rate, a few ratings left to 20!)\n\n![squarelogo.png](\/\/\/raw\/7ec\/z\/43f2.png)\n\nThe game idea came to existence after searching in Google Images for \"Tiny Worlds\", all these fisheye views inspired me and decided to make a space RTS in worlds that look like these images.\n\nI decided to use SFML and C++, as I'm starting to get experienced with both, and want to keep learning!\n\nBuilt the \"framework\" from scratch, started from the renderer for some reason, which required a partial rebuild a little bit later on development. Sadly once I started writing game code, everything became a mess. 3100 of the ~4000 lines of code the game is made of are on a single file o_O [Warning: Spaguetti code](https:\/\/github.com\/tatjam\/Ludumdare38\/blob\/master\/LDJAM38\/Source\/Elements\/EmpireElement.h). This is the result of not planning a project!\n\n\nI implemented ImGui early on, and fell in love with it, even the default skin looks pretty good! Having such a powerful GUI library made my life pretty easy.\n\nThat was pretty much the first day.\n\nNext day I started working on the editor and the music, both came along pretty nicely!\nThe editor was very easy to build as my code was prepared for it, just required some hacks to get my math to work on moving planets. Unlike on my previous games I used not-chiptune instruments for my music, feedback please ;)\n\nI also implemented the basics of \"Empires\", which you and the AI control. The way I implemented it is a bit weird, could have used OO but didn't!\n\nBy the end of the second day you could control an empire, build stuff, but nothing more. The third day was, by difference, the most intense.\n\nThe first priority was getting AI working. I decided to build a state machine which updated daily (and changed states every month or when something extraordinary happened). It was able to survive and expand fairly good, in some cases, better than humans...\n\nI expent the rest of the day implementing a few buildings and a not-planned and not-polished combat element. Sadly it's UI driven...\n\n\n\nThat was pretty much it, I could release the game, and here we are now ;) \n\n\n","comments":0,"created":"2017-05-12T16:24:38Z","files":[],"files-timestamp":0,"id":30924,"love":0,"meta":[],"modified":"2017-05-12T16:39:08Z","name":"TinyPlanets post mortem","node-timestamp":"2017-05-12T16:39:08Z","parent":15793,"parents":[1,5,9,9405,15793],"path":"\/events\/ludum-dare\/38\/tinyplanets\/tinyplanets-post-mortem","published":"2017-05-12T16:39:08Z","scope":"public","slug":"tinyplanets-post-mortem","subsubtype":"","subtype":"","type":"post","version":82196},"node_metadata":{"n_key":"30924","n_urlkey":"306292","n_parent":"15793","n_path":"\/events\/ludum-dare\/38\/tinyplanets\/tinyplanets-post-mortem","n_slug":"tinyplanets-post-mortem","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"3303","n_created":"1494606278","n_modified":"1494607148","n_version":"82196","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/38\/tinyplanets\/tinyplanets-post-mortem","text":"You can play the game here: https:\/\/ldjam.com\/events\/ludum-dare\/38\/tinyplanets \n(Please rate, a few ratings left to 20!)\n\n![squarelogo.png](\/\/\/raw\/7ec\/z\/43f2.png)\n\nThe game idea came to existence after searching in Google Images for \"Tiny Worlds\", all these fisheye views inspired me and decided to make a space RTS in worlds that look like these images.\n\nI decided to use SFML and C++, as I'm starting to get experienced with both, and want to keep learning!\n\nBuilt the \"framework\" from scratch, started from the renderer for some reason, which required a partial rebuild a little bit later on development. Sadly once I started writing game code, everything became a mess. 3100 of the ~4000 lines of code the game is made of are on a single file o_O [Warning: Spaguetti code](https:\/\/github.com\/tatjam\/Ludumdare38\/blob\/master\/LDJAM38\/Source\/Elements\/EmpireElement.h). This is the result of not planning a project!\n\n\nI implemented ImGui early on, and fell in love with it, even the default skin looks pretty good! Having such a powerful GUI library made my life pretty easy.\n\nThat was pretty much the first day.\n\nNext day I started working on the editor and the music, both came along pretty nicely!\nThe editor was very easy to build as my code was prepared for it, just required some hacks to get my math to work on moving planets. Unlike on my previous games I used not-chiptune instruments for my music, feedback please ;)\n\nI also implemented the basics of \"Empires\", which you and the AI control. The way I implemented it is a bit weird, could have used OO but didn't!\n\nBy the end of the second day you could control an empire, build stuff, but nothing more. The third day was, by difference, the most intense.\n\nThe first priority was getting AI working. I decided to build a state machine which updated daily (and changed states every month or when something extraordinary happened). It was able to survive and expand fairly good, in some cases, better than humans...\n\nI expent the rest of the day implementing a few buildings and a not-planned and not-polished combat element. Sadly it's UI driven...\n\n\n\nThat was pretty much it, I could release the game, and here we are now ;) \n\n\n","title":"TinyPlanets post mortem","wayback_source":[]}