{"assets":[{"original":"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/12\/ld31_warmup002-550x436.png","local":"\/data\/posts\/2014\/12\/3a5a20c95980eeca5165efc3f4f026ca.png"},{"original":"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2014\/12\/ld31_warmup002.png","local":"\/data\/posts\/2014\/12\/89240b0363141abc5f0fee2f800d464f.png"}],"author_link":"author\/gfm\/","author_name":"GFM","cat":"LD #31","categories":["LD #31"],"comments":[],"epoch":1417723020,"event":"LD31","likes":4,"metadata":{"p_key":"82827","p_author":"GFM","p_authorkey":"0","p_urlkey":"293559","p_title":"Warmup game almost done (and getting out of control)","p_cat":"LD #31","p_event":"LD31","p_time":"1417723020","p_likes":"4","p_comments":"0","p_status":"WAYBACK","us_key":null,"us_name":null,"us_username":null,"event_start":"1417737600","event_key":"26","event_name":"LD31"},"source_url":"2014\/12\/04\/warmup-game-almost-done-and-getting-out-of-control\/","text":"<p>This morning, I finally created a repository on github for my entry. It already has the\u00a0framework I\u2019ll be using, set as a submodule (which was a pain to setup).<\/p>\n<p>Then, from the time I\u00a0back home until now, I\u2019ve been doing this:<\/p>\n<div class=\"wp-caption aligncenter\" id=\"attachment_403954\" style=\"width: 560px\"><a href=\"\/data\/posts\/2014\/12\/89240b0363141abc5f0fee2f800d464f.png\"><img alt=\"ld31_warmup002\" class=\"wp-image-403954 size-large\" height=\"436\" src=\"\/data\/posts\/2014\/12\/3a5a20c95980eeca5165efc3f4f026ca.png\" width=\"550\"\/><\/a><p class=\"wp-caption-text\">My warm up game\u2026 kinda\u2026<\/p><\/div>\n<p>I used a random theme generator to get a theme for my warm up game, which came up with\u00a0\u201ctame the rainbow\u201d.\u00a0While I wrote the basic code, necessary to setup the framework, I keep thinking on how to use that theme in a shmup-like game.<\/p>\n<p>Since I couldn\u2019t think any ideas, I started\u00a0coding a simple \u201cparticle-system\u201d (just a way to realloc an array of sprites and recycle the ones that are out of view), for\u00a0the rainbow effect. As I played with it, I thought about having\u00a0the rainbow apply force on the ship, making it difficult to control.<\/p>\n<p>After trying it out, I ended up spending a lot of time making it better. Now both the rainbow and the \u2018ship\u2019 speed up over time, making it even harder to control. Now I only need to add enemies, a background, a score system and add sfx\u2026<\/p>\n<p>The problem is, this was supposed to be a simple and small warm up game. Its scope is getting out of control. One thing that I\u2019ve still gotta test is playing sounds. So, I\u2019ll probably add it tomorrow morning, then I\u2019ll call it done.<\/p>\n<p>You can find both my entry\u2019s repository as my warmup game <a href=\"https:\/\/github.com\/SirGFM\/ld31\">here<\/a>. To compile it, clone the repository, cd into warmup and run<\/p>\n<pre>make<\/pre>\n<p>It requires SDL2, so download and install it before compiling. Also, the only input method is a gamepad with analog sticks. It\u2019s a warm up game, after all, so I had no need to\u00a0make proper controls\u2026<\/p>\n<p>Well, that\u2019s it. See you tomorrow!! (btw, say no to\u00a0\u2603!)<\/p>","time":"December 4th, 2014 7:57 pm","title":"Warmup game almost done (and getting out of control)","title_was_empty":false}