Update On Passion Project
For the week of April 29, after adding the levels, I worked on adding doors for my game. Adding doors would make the player be able to travel from one level to the next. By following the guide on YouTube, I was able to complete making doors between all my levels. I did this by adding the coordinates for the door first. The level size is 12 by 9 tiles, and each tile is 16 by 16 pixels, making each level have a pixel size of 192 by 144 pixels. For the first level, I wanted the door to be on the right side and 4 tiles off the top so the player would have to jump to it. The coordinates for this door would be 192,(because I need it on the right side) 64(because I had it 4 tiles off the top and 4*16=64) since I’m not measuring the coordinates by tiles, the door’s position is based on pixel coordinates. Now that the location of the doors was made, I created the size of the door. I wanted the door to be 1 tile wide and high so I made the width, 16 and the height, 16, since I’m measuring by pixels still. I also needed to make the player appear in the next level. So, I identified the next level with zone 01, since the first level is called “00”. Then I made it so that the player would appear on the left side. Here is the code used to make this doors,
{ “x”:192, “y”:64, “width”:16, “height”:16,
“destination_zone”:”01", “destination_x”:0, “destination_y”:-1 }
For the week after, May 6, I worked on adding coins and animated grass to the levels. I added coins for the player to collect, grass for decoration, and made a coin counter. With the help of the guide on YouTube, I was able to add coins and grass to the levels. First I added the coins by placing the coordinates. This time I measured by tiles this time instead of pixels. for the first level, I added four coins around the levels. I also used tiles to measure the placement of the grass. I also used the HTML file to make a coin counter by first having the word “Coins” appear, and making the number of coins a player collect appear beside it. Here is the code used for placing the coins and grass.
“coins”:[[5, 2], [1, 3], [9, 5], [10, 1]],
“grass” :[[7, 7], [9, 7], [10, 7]],
At the end of the week I worked on cover art for the game using Piskel to make the game seem more interesting.