5789, very chill experience. How do the "levels" generate? Is it a set of "blocks" or a random position? How did you ensure there is always a reachable platform?
There is a single "platform" prefab that I instance. Whenever the player reaches a "record" height (a multiple of 320), a random number of platforms(at least 3 or 4, I think) is generated within the 320 pixels. 320 is divided by the number of platforms to create a "spread", so that they are reachable and not haphazardly placed.
The platform is 64 pixels in width, and the screen itself is 512 pixels wide, so 512/64 = 8 possible spaces for a platform to spawn. I place platforms in multiples of 64(in a sort of "grid" if you will), and make sure that they are no more than 2 spaces apart, and not right above or directly next to the previous spawn position.
← Return to game
Comments
Log in with itch.io to leave a comment.
5789, very chill experience. How do the "levels" generate? Is it a set of "blocks" or a random position? How did you ensure there is always a reachable platform?
There is a single "platform" prefab that I instance. Whenever the player reaches a "record" height (a multiple of 320), a random number of platforms(at least 3 or 4, I think) is generated within the 320 pixels. 320 is divided by the number of platforms to create a "spread", so that they are reachable and not haphazardly placed.
The platform is 64 pixels in width, and the screen itself is 512 pixels wide, so 512/64 = 8 possible spaces for a platform to spawn. I place platforms in multiples of 64(in a sort of "grid" if you will), and make sure that they are no more than 2 spaces apart, and not right above or directly next to the previous spawn position.
I hope that makes sense.
Yes it does, very clever! Thanks for taking the time to reply so thouroughly, best of luck to you!
Thank you, same to you!
20,160 is my high score.
Nice job!
really nice and relaxing 9.9/10
Quite a nice game to keep a casual person busy for hours!! Great one!!
Thank you very much for the kind words!
I also like kind words
Who doesn't?
psychopaths I don't know.
Perhaps.