Having spent the past couple of days deep in Microsoft Word writing tech specs, I was desperate to do some coding. But I only had a 1 hour lunch break available. So I picked a game: Breakout (Atari 2600 style), found a reference screen shot online to get the colours from, fired-up FlashDevelop, hit record and started coding.
20mins later and it was done. I then hastily cut this video together and uploaded to YouTube (which ironically took longer than coding did). Here’s the video embedded. I sped it up x2 for sanity sake, and it’s a nice way of hiding my typos If you can please watch it in HD on the YouTube site, it’s much easier to see what I’m coding!
Ok so it’s not a gaming master-piece, but there’s a real solid shell of a game here you are free to take and expand as you wish. The first thing you may want to do is drop the “cheat wall” from the bottom, add some lives, a score and level progression
Full source code after the jump.
This is for Flixel v2.5. Create a new Project that is 640×480 at 60fps, with a black background. My thanks to Adam for clarifying some new 2.5 nuances before I started this
Read more: Video of me coding Breakout in Flixel in 20 mins
Pretty confusing considering it's a copy-paste of PhotonStorm's blog.
ReplyDeleteI collect short excerpts of most interested articles. All articles linked to their full authors versions.
ReplyDeleteI meant nobody harm.