After playing this game, I notticed that some of the levels have their own sky with a unique colour. As far as I know, there isn't a feature that adds whole dimensions to the base game, but I'm starting to think it's some kind of render distance thing between the ground and level above it, but can you confirm what make's the level's look like they have skys and lighting? and as a bounus, how you did the wind particles on level 167?
Each level has its own Y slice of the world dedicated to it, so level 1 is from 80-160 for example. When the game sees you are in a level that is different from the last level your were in it sets the sky and starts doing stuff like adding particles. The particles are just basically "look for random spots around the player, if there's sky light, spawn a particle". Look into set_sky and core.add_particle. For more than a few particles you should prefer to use add_particlespawner of course. The code is open source so you can look at how it works too, though the sky code is a little more complex. For lighting you can also use override_day_night_ratio to crudely change the lighting / daylight.
After playing this game, I notticed that some of the levels have their own sky with a unique colour. As far as I know, there isn't a feature that adds whole dimensions to the base game, but I'm starting to think it's some kind of render distance thing between the ground and level above it, but can you confirm what make's the level's look like they have skys and lighting? and as a bounus, how you did the wind particles on level 167?
Each level has its own Y slice of the world dedicated to it, so level 1 is from 80-160 for example. When the game sees you are in a level that is different from the last level your were in it sets the sky and starts doing stuff like adding particles. The particles are just basically "look for random spots around the player, if there's sky light, spawn a particle". Look into
set_sky
andcore.add_particle
. For more than a few particles you should prefer to useadd_particlespawner
of course. The code is open source so you can look at how it works too, though the sky code is a little more complex. For lighting you can also useoverride_day_night_ratio
to crudely change the lighting / daylight.