My blog

  • Sample Page
Illustration of a bird flying.
  • 18/11/22 Removing the ground

    Today I aimed to make the ground disappear after a specific point, as well as making the bottom of the screen a kill zone for the player. I have changed the ground to being a singular sprite rather than a sprite group to make the code easier to understand. The ground stops if it disappears […]

    November 18, 2022
  • 16/11/22 New platforms and refined falling platforms

    Today I aimed to replace the texture for the platforms and create a working randomly generating falling platform system. “previousy” is set to 620 as that is the middle of the bounds where the platforms should spawn, therefore 1 jump height below or above should yield 1 of 3 platform positions that spawn throughout. Platforms […]

    November 16, 2022
  • 14/11/22 Player edits and started falling platforms

    For this session I wanted to make a recovery system where the player gets a second chance to recover if they are pushed by a platform, as well as making the player collisions more accurate by changing the sprite sheet and improving animations. I also decided to try adding a falling platforms feature. I used […]

    November 14, 2022
  • 12/11/22 Random platforms

    Today’s objective was to create randomly spawning platforms after another platform leaves the screen. I have removed player collisions with the world bounds and added a kill condition if the player is pushed off the left side of the screen. In this code I have used the variable “previousy” to calculate where the next platform […]

    November 12, 2022
  • 10/11/22 Removing platforms

    My goal for this lesson was to make an area that would kill platform sprites that entered the area to stop them updating. Here I have created a “deathZone” sprite by using my ground texture but scaling the image to appear as a straight invisible line. I also had to disable gravity as each time […]

    November 10, 2022
  • 7/11/22 replacing platforms and layering

    Today I resolved some issues I had with lag on my game by replacing the layering system I was using. As well as replacing my platforms with an easier to manage methodology. I removed “var graphics = this.add.graphics();” as the new platform system uses a provided image reference to draw the platform, rather than a […]

    November 7, 2022
  • 06/11/22 parallax ground test and Jumping test

    My goal for this session was to make the ground move left slowly and add a jumping animation with a flip at the max height. Initially, I coded in a system similar to the background images’ parallax effect for the ground. However, I found it too difficult to manage with objects, compared to images. Therefore, […]

    November 6, 2022
  • 01/11/22 Creating the Player

    My goal for this lesson was to create a player that would have default animations and could jump with a button press The result of today’s work is a sprite that can jump via user input and has a constant running animation like this:

    November 1, 2022
  • 31/10/22 More Platforms/ Backgrounds

    My goal today was to improve upon my platform system and add a functional parallax background. This system uses two backgrounds to implement the effect of distance being travelled: When combined they produce this effect: When ran the code produces platforms that move like this:

    October 31, 2022
  • 27/10/22 Building platforms

    Today I aimed to create moving platforms that would slowly drift across the screen and be deleted after a certain position had been reached.

    October 27, 2022
←Previous Page
1 … 3 4 5

My blog

Proudly powered by WordPress