Repository navigation
Moonwell 0.15.0
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
LowestandHighestinstead of being stretched to each area's own range, and aLevelplace 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 aTerrainMakingwithProgress,Step(its name) andDone, for a loading screen or a bar. Made in steps of 4 ms, no frame was longer than the game's own. - Trees:
Forest,WallandScatterrules, 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.Createtakes a height for a map's own trees. - Places and camps:
Levelgives aPlace;Places(...)picks spots from the seed with a difficulty by distance,Exit(...)one on a side, andplaces.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, andJoin()links every place. Each road gives its points, width and length;road.Toward(place)gives it as aRouteeither way,Route(a, b)the way over the roads, androad.Outline(from, to)aPolygonfor an area along a stretch.Routemoved toMoonwell.Maths, same type and namespace. - Biomes and presets: a
Biomehas its own hill shape, tiles, trees and blocking;Use(biome, area)puts one in an area andMix(area, size, ...)several in patches, blended at the borders. PresetsGrassland,RockyHills,SnowyForestandDesertname 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.MadeandTakingBackevents 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:
TilesonMap; the build adds the tiles the map lacks to its tile list, up to the game's 64.
Faster
- A grid
Blockwalks 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.