Boilerplate

There is some boilerplate code that we need to get out of the way before we begin coding our game. This includes setting up the directory structure for the game, as well as some HTML and CSS code that we refine throughout this chapter to make this an engaging game. Although my personal development platform is OS X, I provide the Windows equivalent of any commands I mention. My editor of choice is vim (well, macvim), which is shown in my screenshots, but all you really need is a text editor.

TIP: There are a growing number of Cloud-based integrated development environments (IDE) that allow you to code in your browser. Cloud9 (http://c9.io), EtherPad (http://etherpad.com/) and codr.cc (http://codr.cc) all provide online editing services. ...

Get Beginning Facebook Game Apps Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.