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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access