Kerby64
    Preparing search index...

    World environment.
    Recreates Minecraft with our voxel engine.
    The player should walk around and interact with the world.
    The world is generated procedurally based on a seed.
    The world has a day/night cycle with a skybox that changes color based on the time of day.
    The world has a flat or normal terrain based on the world type.
    The world has a render distance that determines how many chunks are loaded around the player.\

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    player: Player
    random: Random
    scene: LevelScene
    skybox: Mesh
    skyboxSize: 10

    Accessors

    Methods

    • Called after the scene is rendered, this method loads chunks within the render distance of the player. It also updates the water texture every 2 ticks.

      Returns void

    • Updates the skybox rotation and color based on the current tick. The skybox rotates around the Z-axis, simulating the movement of the sun. The sky color is updated based on the current tick, using predefined colors for specific ticks. The light direction is set according to the sun's position.

      Returns void