Images for Rat-man!

To build the game, we will need a few images. We will keep all our images in the img folder. In the img folder, we will create four folders, as shown in the following:

  • monsters
  • player
  • portal
  • walls

We will keep two images, named dot.png and blank.png, in the img folder.

The monsters folder

In the monsters folder, create four folders with our cats' names.

Say that our cats' names are as follows (you can name them whatever you want):

  • blinky
  • inky
  • pinky
  • clyde

Each cat folder will have four folders for the directed images of the cats. The folder names are as follows:

  • up
  • down
  • left
  • right

Each direction folder should contain an image of our cat. The image name should be 0.png.

You need to keep your image 50 x 50 px.

The player folder

The player folder should contain four folders for the direction of our rat. The folders should be named as shown in the following:

  • up
  • down
  • left
  • right

Each folder should contain the rat's directed image. There need to be two images, 0.png and 1.png. One image is the open mouthed rat and another is of the closed mouthed rat. The images need to be 50 x 50 px.

The portal folder

The portal folder should contain two images of the portal through which our rat will travel from one end to another. The images names should be 0.png and 1.png.

The walls folder

The walls folder should have five images to draw the walls in the canvas.

The images should be named 0.png, 1.png, 2.png, 3.png, and 4.png. The images will be the corners and straight lines of the wall.

The hierarchical representation of the images used in building our game is as follows:

The walls folder
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.235.79