12Creating games

An animation picture displays the desktop, a keyboard, a notepad, a cup that holds few pens, and a speaker placed on a table.

What you will learn

Writing games is great fun. Unlike applications created to solve a specific problem, games are not always tied to a formal specification and don’t need to do anything useful. They only need to be fun to play. Games are a great place to experiment with your software. You can write code just to see what happens when it runs and see whether the result is interesting. Everyone should write at least one computer game in their lives. In this chapter, you’ll start creating games. You’ll learn how to make a complete game and finish with a framework you can use to create more games of your own design. Along the way ...

Get Begin to Code with JavaScript 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.