O'Reilly logo

Jump Start CoffeeScript by Earle Castledine

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4Game Loop and Classes

It’s now day 4 of 7 and you’re starting to sweat. The story writer announced he has too much “real” work on and will have to bow out of the race, but says he still wants a cut of any profits arising from his contributions to the project. You explain to him how percentages of zero work, and he leaves in a huff.

You know that if you lack a solid base to build on by the end of the day, pushing a complete product out the door will be tough. Let’s knuckle down and apply some structure to our game. In this chapter, we’ll take the prototype we’ve been working on and refactor it into a bunch of classes that will organize and drive the game.

The Game Loop

But first, we need to clean up our mess from last night. In our haste ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required