{"id":371,"date":"2019-05-01T23:49:37","date_gmt":"2019-05-02T04:49:37","guid":{"rendered":"https:\/\/greg-kennedy.com\/wordpress\/?p=371"},"modified":"2019-06-05T22:58:57","modified_gmt":"2019-06-06T03:58:57","slug":"modest-bricks","status":"publish","type":"post","link":"https:\/\/greg-kennedy.com\/wordpress\/2019\/05\/01\/modest-bricks\/","title":{"rendered":"Modest Bricks"},"content":{"rendered":"\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Modest Bricks - Gameplay\" width=\"625\" height=\"469\" src=\"https:\/\/www.youtube.com\/embed\/HXvp1MVYpxQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><figcaption>Modest Bricks gameplay video<\/figcaption><\/figure>\n\n\n\n<p>Modest Bricks is a Tetris clone.  Originally written in 2005, it uses <a href=\"https:\/\/www.libsdl.org\/download-1.2.php\">SDL 1.2<\/a> and the SDL_Mixer library for sound effects and music.  This was one of the first &#8220;serious&#8221; games I wrote &#8211; though I did a number of QBasic and Visual Basic things before, I had never attempted a game in C, or with this level of polish.  I wrote this for a few reasons:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Learn SDL and practice game dev in C, tools used (at the time) by Professionals to make Real Games<\/li><li>Make the source available so I could teach and demonstrate SDL to the University of Arkansas Game Development Club, a group I helped co-found around the same time.<\/li><li>Follow the advice of this GameDev.net tutorial, &#8220;<a href=\"https:\/\/www.gamedev.net\/articles\/programming\/general-and-gameplay-programming\/how-do-i-make-games-a-path-to-game-development-r892\/\">How do I make games?<\/a>&#8221; which recommended to start small by creating a polished version of Tetris to get the basics down and have something to show.<\/li><li>Put my music into a game!<\/li><\/ul>\n\n\n\n<p>Recently I took an interest in revamping some old code, and ended up rewriting much of this.  The effort is complete so I&#8217;m releasing it.  A Windows version is included in the .zip below, as well as the source code in C.  Recompiling on *nix should be easy: <code>cc `sdl-config --libs --config` -lSDL_Mixer -o modest main.c<\/code> should be reasonably close, assuming SDL and SDL_Mixer development libraries installed.<\/p>\n\n\n\n<p>Probably the most interesting thing about this game is that after writing, I pushed it to the SDL webpage, which (at the time) had a gallery for people to post their games Made With SDL.  From there it caught the attention of a Dreamcast homebrew developer Ian Micheal, who was porting SDL games to the DC.  He altered the graphics and added more sounds and cool effects to create &#8220;<a href=\"https:\/\/www.youtube.com\/watch?v=-APue7-h3xQ\"><strong>Ghouls &#8216;N TriX<\/strong><\/a>&#8221; &#8211; a Tetris game for the Dreamcast!  It was really cool to know my code was running on a video games console, and I made sure alllll my friends knew about it \ud83d\ude42<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Download the game:<\/h2>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/greg-kennedy.com\/wordpress\/wp-content\/uploads\/2019\/05\/ModestBricks-win32.zip\">Modest Bricks &#8211; Windows release<\/a><a href=\"https:\/\/greg-kennedy.com\/wordpress\/wp-content\/uploads\/2019\/05\/ModestBricks-win32.zip\" class=\"wp-block-file__button\" download=\"\">Download<\/a> (243kb)<\/div>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/greg-kennedy.com\/wordpress\/wp-content\/uploads\/2019\/06\/Modest-Bricks-osx10.5.zip\">Modest Bricks &#8211; OSX 10.5 Intel release<\/a><a href=\"https:\/\/greg-kennedy.com\/wordpress\/wp-content\/uploads\/2019\/06\/Modest-Bricks-osx10.5.zip\" class=\"wp-block-file__button\" download=\"\">Download<\/a> (496kb)<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Modest Bricks is a Tetris clone. Originally written in 2005, it uses SDL 1.2 and the SDL_Mixer library for sound effects and music. This was one of the first &#8220;serious&#8221; games I wrote &#8211; though I did a number of QBasic and Visual Basic things before, I had never attempted a game in C, or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,8],"tags":[],"class_list":["post-371","post","type-post","status-publish","format-standard","hentry","category-games","category-software"],"_links":{"self":[{"href":"https:\/\/greg-kennedy.com\/wordpress\/wp-json\/wp\/v2\/posts\/371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greg-kennedy.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greg-kennedy.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greg-kennedy.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greg-kennedy.com\/wordpress\/wp-json\/wp\/v2\/comments?post=371"}],"version-history":[{"count":7,"href":"https:\/\/greg-kennedy.com\/wordpress\/wp-json\/wp\/v2\/posts\/371\/revisions"}],"predecessor-version":[{"id":389,"href":"https:\/\/greg-kennedy.com\/wordpress\/wp-json\/wp\/v2\/posts\/371\/revisions\/389"}],"wp:attachment":[{"href":"https:\/\/greg-kennedy.com\/wordpress\/wp-json\/wp\/v2\/media?parent=371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greg-kennedy.com\/wordpress\/wp-json\/wp\/v2\/categories?post=371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greg-kennedy.com\/wordpress\/wp-json\/wp\/v2\/tags?post=371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}