How would I go on about creating an endless runner game?
Posted: Fri Aug 24, 2018 10:11 am
Hello guys.
I've been playing around with the LOVE framework for a week or so now and I've been wondering how would I make an endless runner game? So far I've figured out this much:
-The player is a still character that can only jump and dies if it collides with an obstacle.
-The terrain which the player runs on is also still.
-The score system starts at zero and is tied to the distance (time) the player has ran. If the score is greater than the current highscore (which too starts at zero) it overwrites the former highscore and saves itself.
What I however am struggling with is the randomized placement of the obstacles and pickups (which grant you bonus score).
How would I begin with that that the game randomly generates obstacles on the edge of the screen and makes them move at increasing velocity?
Also that the game doesn't generate too many of them making a wall of obstacles that is impossible to dodge?
Thanks to anyone who decides to help or even attempts to do so!
I've been playing around with the LOVE framework for a week or so now and I've been wondering how would I make an endless runner game? So far I've figured out this much:
-The player is a still character that can only jump and dies if it collides with an obstacle.
-The terrain which the player runs on is also still.
-The score system starts at zero and is tied to the distance (time) the player has ran. If the score is greater than the current highscore (which too starts at zero) it overwrites the former highscore and saves itself.
What I however am struggling with is the randomized placement of the obstacles and pickups (which grant you bonus score).
How would I begin with that that the game randomly generates obstacles on the edge of the screen and makes them move at increasing velocity?
Also that the game doesn't generate too many of them making a wall of obstacles that is impossible to dodge?
Thanks to anyone who decides to help or even attempts to do so!