• 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

13 Dec 2017

Reading time ~1 minute

What was the project?

The aim of this project was to create an “Endless Runner” game using the ASGE engine in c++.

I wanted to create more of a side scrolling shooter game initially which is why I chose a tank theme for my game. However, I did not get time to implement all of the features which I had dreamt of.

What was good?

The movement of the player character felt smooth and solid.

What didn’t go as planned?

My initial plan was to allow the player to destroy the objects in front of them as well as just dodging them. Similarly to how the game asteroids plays. However, I did not have time to do everything I planned to. This meant that this feature was omitted.

The other issue with my game was that depending on which computer you were using, the movement would change. This ended up being due to a misuse of deltaTime. You can see this in the code snippet below.

if (game_actions == GameActions::DOWN)
{
  y_pos += dt.delta_time.count() *0.7;
}

if (game_actions == GameActions::UP)
{
  y_pos -= dt.delta_time.count() *0.7;
}

player_character->yPos(y_pos);

This is the code which doesn’t work properly due to rounding tolerance as the change per update isn’t large enough.

The final product

Here is the final product in GIF form. If you would like the files to this project, please feel free to contact me at: brycenewell@icloud.com

https://gyazo.com/d34278e42de96b475ab7027fffd1b6ad



projectc++development Share Tweet +1