{"assets":[{"original":"http:\/\/www.ludumdare.com\/compo\/wp-content\/uploads\/2008\/04\/screen_shot_1208646754.png","local":"\/data\/posts\/2008\/04\/4c3e0699bf97e40683f8e02f80f354a0.png"}],"author_link":"author\/illume\/","author_name":"illume","cat":"LD #11 - Minimalist - 2008","categories":["LD #11 - Minimalist - 2008"],"comments":[],"epoch":1208621760,"event":"LD11","likes":0,"metadata":{"p_key":"76042","p_author":"illume","p_authorkey":"0","p_urlkey":"283700","p_title":"Mini Mal","p_cat":"LD #11 - Minimalist - 2008","p_event":"LD11","p_time":"1208621760","p_likes":"0","p_comments":"0","p_status":"WAYBACK","us_key":null,"us_name":null,"us_username":null,"event_start":"1208476800","event_key":"87","event_name":"LD11"},"source_url":"2008\/04\/19\/mini-mal\/","text":"<p><img alt=\"screen_shot_1208646754.png\" src=\"\/data\/posts\/2008\/04\/4c3e0699bf97e40683f8e02f80f354a0.png\"\/><br\/>\nLOG<br\/>\n====<br\/>\nAEST GMT +10<\/p>\n<p>2008\/04\/19 17:13:53 AEST GMT +10<\/p>\n<p>2008\/04\/19 17:53:39 AEST GMT +10<\/p>\n<p>Don\u2019t have internet at home, but going in the competition anyway\u2026<\/p>\n<p>I saw the theme at about +1 hours after the competition started (about 4-5 hours ago) in an email when I was at a cafe checking my email on the free wireless.\u00a0 I have been coming up with a basic idea since then, but not giving it all that much thought.\u00a0 I was thinking about drawing lines on paper, and scanning them in\u2026 then making minimal beep noises\u2026<\/p>\n<p>But then I wrote the name of my directory for the game\u2026 mini_mal\u2026 and aha!\u00a0 Mini Mal was born.\u00a0 I haven\u2019t even to the ludumdare website since the comp started, but I imagine someone else has come up with the idea for ignoring the theme \ud83d\ude09<\/p>\n<p>So the idea so far is this\u2026 Mini Mal the stick figure, with minimal beep noises.<\/p>\n<p>MOST OF THE COMPETITON I WON\u2019T HAVE INTERNET.\u00a0 Bugger.<\/p>\n<p>I accidentally had skellington game framework on my computer, along with pygame, and python.\u00a0 So I\u2019m just going to do a pygame game\u2026 with basic stuff.\u00a0 Luckily I also downloaded the pygame documentation and examples\u2026 also lucky the python objects have documentation built in, also lucky I have been maintaining pygame for over 3 years now.<\/p>\n<p>\u2026 now my todo\u2026<\/p>\n<p>DONE \u2013 window up, and basic event loop.<br\/>\n\u2013 basic animation program\u2026<br\/>\n\u2013 draw line, click point, click second point.<br\/>\n\u2013 select point.<br\/>\n\u2013 draw end points of lines with rectangles.\u00a0 Use collision functions to see which points are selected.<\/p>\n<p>\u2013 lines are in each frame of the animation.<br\/>\n\u2013 to not show lines in one frame, you can mark them as invisible (somehow do invisible lines differently).<br\/>\n\u2013 key frames.<br\/>\n\u2013 can add\/delete key frames.<br\/>\n\u2013 interpolation happens between key frames.<br\/>\n\u2013 frames per second.\u00a0 Set at 30fps.<\/p>\n<p>2008\/04\/19 18:30:03 AEST GMT +10<\/p>\n<p>I made a line class, which subclasses the Rect class.<\/p>\n<p>It can draw itself, with it\u2019s own color\u2026\u00a0 oooh.\u00a0 A white picture with a black line on it.<\/p>\n<p>\u2026 now to make a screenshot function I think\u2026 maybe when I have something a bit better.<\/p>\n<p>\u2013 draw line with end points.<\/p>\n<p>2008\/04\/19 19:20:13 AEST GMT +10<\/p>\n<p>It can now draw a line, and select the end points \u2013 and move the line <img alt=\":)\" class=\"wp-smiley\" src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" style=\"height: 1em; max-height: 1em;\"\/><\/p>\n<p>Now to go and get some junk food.<\/p>\n<p>\u2013 make a Lines class, that has a def handle_events(self, events): method.<br\/>\n\u2013 make a Lines.new_line method.\u00a0 So you then click to make the two points.<br\/>\n\u2013 make a Lines.delete_line method, which deletes any line selected.<\/p>\n<p>2008\/04\/19 20:38:37 AEST GMT +10<\/p>\n<p>Went and got some junk food.\u00a0 A few lollies, and chips.<\/p>\n<p>Then I had dinner, and then came back to work on a Lines class.\u00a0 Almost there with being able to draw multiple lines.\u00a0 Whilst coding, I\u2019ve been thinking of how I can structure the animation editor.\u00a0 Like how I can make collections of lines play at different positions.\u00a0 I\u2019ll have to translate the positions of the lines somehow\u2026 perhaps I\u2019ll give each set of Lines a transform <img alt=\":)\" class=\"wp-smiley\" src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" style=\"height: 1em; max-height: 1em;\"\/>\u00a0 Then allow selecting groups of lines, so I can animate multiple groups on the same screen.<\/p>\n<p>Then I\u2019ll need a way to load and save Lines\u2026 probably with pickle.<\/p>\n<p>Now to finish off my new_line, and delete_line methods.<\/p>\n<p>\u2026 oh, and I need to figure out the actual game part\u2026 hrmm.\u00a0 that can come later, once I\u2019ve figured out something cool.<\/p>\n<p>2008\/04\/19 21:30:11 AEST GMT +10<\/p>\n<p>the lines can be drawn pretty easily now.<\/p>\n<p>Accidentally I came across a way to have the lines join up at the vertices.<\/p>\n<p>Now I have a mode where I can select multiple verts to move at once\u2026 which allows a primative form of welding of vertices.<\/p>\n<p>2008\/04\/19 21:46:28 AEST GMT +10<\/p>\n<p>been playing a bit with drawing more\u2026 it\u2019s kind of fun.\u00a0 I\u2019ve made it slightly easier for me to do things, and also experimented with line thickness\u2026 That could also be a fun thing to animate.<\/p>\n<p>So the lines could grow thick from frame to frame.<\/p>\n<p>\u2026 but how to save them all.<\/p>\n<p>2008\/04\/19 22:34:24 AEST GMT +10<\/p>\n<p>I think the pygame.Rect subclasses only pickle the pygame.Rect attributes.\u00a0 Oh well.<\/p>\n<p>Perhaps I can replace it later with a vec4d subclass\u2026 or something.<\/p>\n<p>Anyway\u2026 this is what I want to do I think:<\/p>\n<p>Frames<br\/>\nFrame<br\/>\nLines<br\/>\nLine<\/p>\n<p>So then I think I can just pickle the whole lot, and reload it.<\/p>\n<p>2008\/04\/20 09:09:17 AEST GMT +10<\/p>\n<p>I put a basic screenshot function in there.<\/p>\n<p>\u2013 Create Frames class, get basic animation working.<br\/>\n\u2013 Make a box select.\u00a0 So you can easily move many lines at once.<\/p>\n<p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/illume\/\" rel=\"tag\">illume<\/a><\/p>","time":"April 19th, 2008 4:16 pm","title":"Mini Mal"}