{"id":251,"date":"2009-08-12T23:21:56","date_gmt":"2009-08-12T17:51:56","guid":{"rendered":"http:\/\/techtwaddle.net\/?p=251"},"modified":"2011-04-12T23:22:13","modified_gmt":"2011-04-12T17:52:13","slug":"skeletons-of-a-game-directdraw-part-12","status":"publish","type":"post","link":"https:\/\/techtwaddle.co.in\/blog\/2009\/08\/12\/skeletons-of-a-game-directdraw-part-12\/","title":{"rendered":"Skeletons of a game, DirectDraw, Part 12"},"content":{"rendered":"<div style=\"text-align: justify; font-family: Comic Sans MS;\">If you are following this blog then you probably know that I have been itching to do some sort of a simple game. In this post I will explain the bare bones of simple game which I call &quot;Crash Marbles&quot;.<\/div>\n<p>&nbsp;<\/p>\n<div style=\"text-align: justify; font-family: Comic Sans MS;\">The objectives of the game are simple,<\/div>\n<p>&nbsp;<\/p>\n<div style=\"text-align: justify; font-family: Comic Sans MS;\">1) Avoid contact with the evil marbles (Currently, the color of both the evil marbles and the protagonist marble is the same, I will change that soon)<\/div>\n<p>&nbsp;<\/p>\n<div style=\"text-align: justify; font-family: Comic Sans MS;\">2) Collect the Blue sapphire which appears randomly on the screen to score points<\/div>\n<p>&nbsp;<\/p>\n<div style=\"text-align: justify; font-family: Comic Sans MS;\">3) Every time you collect the blue sapphire you gain 10 points<\/div>\n<p>&nbsp;<\/p>\n<div style=\"text-align: justify; font-family: Comic Sans MS;\">4) And every time the evil marbles touch you, you lose 10 percent of your points. I initially coded for making you lose 20% of the points but I figured that the penalty is a bit too much and my score never went beyond 150. So I changed it to 10% (:<\/div>\n<p>&nbsp;<\/p>\n<div style=\"text-align: justify; font-family: Comic Sans MS;\">I am not going to explain the code here because there is hardly any new changes\/logic in the code. The code is more or less the same as <a href=\"http:\/\/geekswithblogs.net\/TechTwaddle\/archive\/2009\/07\/22\/bouncingcolliding-marbles-directdraw-part-8.aspx\">this post<\/a>. You may also look <a href=\"http:\/\/geekswithblogs.net\/TechTwaddle\/archive\/2009\/07\/31\/combining-the-pieces-directdraw-part-10.aspx\">here<\/a>. What I am going to show you is, you guessed it, the video. So here comes:<\/p>\n<p>The first video does not have audio, the background noise was too much so I mute the video.<\/p><\/div>\n<p>&nbsp;<\/p>\n<p><object width=\"425\" height=\"344\"><param name=\"movie\" value=\"http:\/\/www.youtube.com\/v\/kMvzg516qGE&amp;hl=en&amp;fs=1&amp;\" \/><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><\/object><\/p>\n<p>\n<\/p>\n<p><object width=\"425\" height=\"344\"><param name=\"movie\" value=\"http:\/\/www.youtube.com\/v\/LBwGKqD-SxI&amp;hl=en&amp;fs=1&amp;\" \/><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><\/object><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are following this blog then you probably know that I have been itching to do some sort of a simple game. In this post I will explain the bare bones of simple game which I call &quot;Crash Marbles&quot;. &nbsp; The objectives of the game are simple, &nbsp; 1) Avoid contact with the evil &hellip; <a href=\"https:\/\/techtwaddle.co.in\/blog\/2009\/08\/12\/skeletons-of-a-game-directdraw-part-12\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Skeletons of a game, DirectDraw, Part 12<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1ktFF-43","_links":{"self":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/251"}],"collection":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/comments?post=251"}],"version-history":[{"count":1,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/251\/revisions"}],"predecessor-version":[{"id":252,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/251\/revisions\/252"}],"wp:attachment":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/media?parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/categories?post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/tags?post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}