Chapter 4. Building A Game
In the following chapter, we are going to build a game called Resident Raver, in which the player controls an unnamed hero who is trying to escape a college dorm overrun by raver zombies. The hero has several weapons at his disposal to help him escape, while also navigating platform-based obstacles. I have gone ahead and created all the assets you will need for the final game.
Before moving onto the next section, make sure you copy over the contents of the media folder that is included in the book’s example files folder. This will contain all the assets you will need for the rest of the book. In it you will find sprites, map tiles, and sounds.

It’s okay to replace the default media directory with the one we will be using for this book.
Creating Our First Level
Now that we have learned about creating graphics for our game, we
can start building our first level. Let’s open up Weltmeister and create a
simple level. When you open up Weltmeister for the first time, you will
see that an untitled.js file has been
created for you, but that the level is empty. Before we can even start
creating our level, we will need to add our map tile sprite sheet. Create
a new layer and call it main. This is where we will start drawing our level. You can create this new layer by clicking ...
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