Now it is time to put our own little RPG together. We will start our journey with a clean slate. Following are the steps to build an RPG level:
Let's take a copy of the freshly installed
ImpactJS
folder that we kept in thechapter 1
folder and rename it toRPG
. Copy themedia
folder from thechapter 3
folder to yourRPG/media
folder. This way at least we have some graphics to work with.Go back to the it works! screen you get when you enter
localhost/RPG
in your browser.Let's start by opening the Weltmeister (
localhost/Weltmeister.html
) and drawing a small level.You will notice that there is nothing prepared for you this time around. The only available layer is the
entities
layer and it doesn't even contain a single entity. However, we can draw ourselves a small playing field to get started once we have something to populate the world.So let's add another layer (+-sign) and call it
grass
. Let's set the tile size to16
and have a 30 x 20 zone at a distance of 1 pixel....