Get instant access to all courses and online books.

View Plans

Jump Start CoffeeScript


  • 151 pg
  • ★★★★⋆

CoffeeScript is redefining the way JavaScript is written

Jump Start CoffeeScript

Learning CoffeeScript will empower you to write better JavaScript, accomplishing more while expending much less sweat! If you have some knowledge of web programming concepts and want to streamline writing JavaScript, this book is for you.

What you'll learn

  • How to set up everything you need to begin using CoffeeScript.
  • Easily work with loops, splats, and function binding.
  • Structure your code with classes.
  • Develop a fun 2d platform game

Who should do this

This book is aimed at web developers with an existing background in HTML, CSS, and JavaScript. It focuses on what's relevant for the mobile context, so you'll need a decent grounding in the basics of front-end development. It also includes some HTML5 and CSS3, but don’t worry if you’re unfamiliar with these standards—anything we use that’s either new or uncommon will be explained in greater detail.

Code Archive

Save time, download the code archive here

  • ★★★★★

    the examples are great to work with and to understand over. from one step to the other.
  • ★★★★☆

    Very good coffeescript. Need more compiler instructions.
  • ★★★★★

    Launches straight into the good stuff: second line of the book is code.
About the Author
Who Should Read This Book
Conventions Used
Supplementary Materials
Challenge Yourself
Friends of SitePoint
1. Getting Started
HTML5 Game Jam Challenge
Starting the Game Project
Choosing Our Tech
Drawing Something: Using Canvas
We’re on Our Way
2. CoffeeScript Fundamentals
More of the Basics
Introducing Professor Digman-Rünner
The Canvas API
Random Map
Ready to Rumble
3. Features to Boost Your Game
Team Meeting
Functions Revisited
Building Larger Projects
Handling Player Input
Adding the Professor
And There Was Light!
4. Game Loop and Classes
The Game Loop
Game Classes
Adding New Blocks
Stay Classy
5. Bringing a Game to Life
Block Collision Detection
Destructured Assignment 1: Arrays
Ninja AI
Power to the Professor
Set for Life
6. CoffeeScript and HTML5 FX
HTML-ifying things
Game Over
7. Epilogue
And on the Seventh Day ...

Get instant access to all courses and online books.

View Plans