• Home
  • About
    • Bryce Newell photo

      Bryce Newell

      Here I will be writing my developer diary and will showcase some of the projects that i am working on.

    • Learn More
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

Endless runner Ep2

03 Dec 2017

Reading time ~1 minute

Endless runner completed

There have been few updates for this project as it happened very quickly. The game came out as expected. However, the theme for the game was never really set, meaning that the end result became a model tank, navigating an endless procedurally generated minefield on a running track (yes I know, very ambitious crossover).

Issues on the way

There were several issues which were overcome while making the game. The most important of these, was the use of deltaTime in order to manage framerate and movement speed. Initially, I thought that the issue was the game not using deltaTime correctly. However, I finally found out that the issue was the rounding from the float value of deltaTime to the int value of pixel movement. The fix for this was to make the change in number much larger. For example, (using arbitrary numbers) rather than moving by 0.1pixels every 10th of a second, instead, moving by 1 pixel every second. This fixed the main issue with the code.

The finished article

https://gyazo.com/d34278e42de96b475ab7027fffd1b6ad



blogc++low level programmingLLP Share Tweet +1