My latest experiment - create a flying experience with endless terrain…
SOOO COOL… I played for five minutes… very well done
Add some challenges plus rewards, increase the difficulty gradually, and you’ve got yourself an indie game.
I wonder how much you can grow the view distance before impacting performances, it also definitely needs some sound effects.
It has a music button @Fennec, but yes, sound effects when the bird flaps its wing would be subtle but cool
Awesome to hear - thanks Jackson!
Users will either see more or less terrain based on their GPU capabilities (detect-gpu). Performance has been the most significant hold-up in building this. It has been a massive learning curve!
Good idea regarding sound effects - I’ll look into it.
Thanks for playing
I’m curious how you created the terrain? was it procedural… did you custom make a shadow map and instance it randomly as the player passed the border?
@jessehhydee I’m very impressed and I’m excited to see what comes of your project…
Congrats, that’s a really good work
Yup - terrain is procedurally generated. The project is using Simplex noise for the randomness.
There are always nine tiles in memory; A 3x3 grid and the bird is always positioned above the center tile. When the bird flies over another tile, three new tiles are generated ahead of it, and three tiles are cleaned up behind it.
Every page load, a random seed is generated by simplex-noise. When creating each hexagon, I pass noise2D(x, y) (provided by simplex-noise) the hexagons coords. The height of each hexagon is based on the return value of this method. The return value is generated with the starting seed, meaning as you fly through the terrain, you never see where one tile ends and another begins.
Wow this is so cool, flying games has been my favorite games like ace combat and gta, this project is a relaxing flying game,