Skip to content

Moonwell 0.15.0

Choose a tag to compare

@mdlsvensson mdlsvensson released this 13 Nov 21:41
· 35 commits to main since this release

Moonwell 0.15.0 grows Moonwell.Procgen from hills and tiles into whole worlds: trees, biomes, places and camps, roads with path data for units to follow, ground made in steps with progress to show, and growing worlds made chunk by chunk around the heroes. Tiles can be declared in code. A map on 0.13.4 builds on it, but the same seed gives other ground than before (below).

The full suite passes, and Moonwell's cases pass on .NET and in Lua, in development and release builds. Each part was checked in the game (3.0.1.24371) in its own probe, and all of it together in one map, in single player and classic graphics. Multiplayer checks are still to come. There is no 0.14.0 yet: that number is kept for the Frames and Kit work planned before this.

Changed

  • Plans of one seed meet at their edges. Ground now follows the world, so two plans of one seed line up, and an area's ground depends on where it is. Heights stay between Lowest and Highest instead of being stretched to each area's own range, and a Level place is level at the ground as it was. The same seed gives other ground than in 0.13.

New

  • Ground in steps: TerrainGenerator.Make(area, scope) makes the ground over frames and gives a TerrainMaking with Progress, Step (its name) and Done, for a loading screen or a bar. Made in steps of 4 ms, no frame was longer than the game's own.
  • Trees: Forest, Wall and Scatter rules, each limited by height, slope and tile. Trees are real destructables, cut for lumber and regrown, standing at the ground's height on generated hills. Destructable.Create takes a height for a map's own trees.
  • Places and camps: Level gives a Place; Places(...) picks spots from the seed with a difficulty by distance, Exit(...) one on a side, and places.Add(difficulty, types...) makes a camp or building group in each.
  • Roads and path data: Road(a, b, width, through) cuts and fills a lane between two places at an easy slope, and Join() links every place. Each road gives its points, width and length; road.Toward(place) gives it as a Route either way, Route(a, b) the way over the roads, and road.Outline(from, to) a Polygon for an area along a stretch. Route moved to Moonwell.Maths, same type and namespace.
  • Biomes and presets: a Biome has its own hill shape, tiles, trees and blocking; Use(biome, area) puts one in an area and Mix(area, size, ...) several in patches, blended at the borders. Presets Grassland, RockyHills, SnowyForest and Desert name their rules, so a map changes or removes them one by one.
  • Growing worlds: Grow(area, scope) makes a world chunk by chunk near every living hero and takes chunks back when every hero is far, the same each time. Made and TakingBack events give each chunk and a scope for what the map makes in it. Units by new trees or blocked ground are moved out, and camps are made once and kept.
  • Tiles in code: Tiles on Map; the build adds the tiles the map lacks to its tile list, up to the game's 64.

Faster

  • A grid Block walks only its blocked corners, where it walked the whole area.

Known

  • Each tree made and removed leaves about 5 KB and a handle id behind, so a growing world that remakes forests often grows the game; the guide gives the numbers.
  • The game makes no cliffs, ramps or water while it runs, so generated ground is slopes and tiles.
  • Multiplayer is not checked yet, nor a game in another language.