Complete terrain generation code #1

Merged
ignis621 merged 4 commits from terrain into main 2026-04-06 20:13:51 +02:00
Owner

This is pretty much the complete terrain generation code. There are still biome and feature scenes to be created and assigned. For now only the biome 'grassy' works.

The terrain pregenerates PREGENERATED_CHUNK_COUNT chunks, then every Globals.tick_terrain it generates chunks in advance of the player, so that there are always ADVANCE_CHUNK_COUNT chunks in front of the player.

These may need adjusting if the player speed increases in the future, for example with upgrades. I may or may not clean up the code in the future.

This is pretty much the complete terrain generation **code**. There are still biome and feature scenes to be created and assigned. For now only the biome 'grassy' works. The terrain pregenerates PREGENERATED_CHUNK_COUNT chunks, then every Globals.tick_terrain it generates chunks in advance of the player, so that there are always ADVANCE_CHUNK_COUNT chunks in front of the player. These may need adjusting if the player speed increases in the future, for example with upgrades. I may or may not clean up the code in the future.
Author
Owner

LGTM 👍

LGTM 👍
ignis621 deleted branch terrain 2026-04-06 20:14:38 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ignis621/toss_the_wolf#1
No description provided.