Log inGet started
Package

campLayout.module

This package holds more than this page lists. See all of its files in its world.

README.md

campLayout

Where everything in Camp After Dark stands. L.build() lays the level out on forestKit's Beechwood Brook woods (seed 7): a guard camp in a levelled clearing west of the stream, players starting at the west edge, and the stream on the far side as the goal. Heights come from forestKit's own ground (L.ground(x, z)), so everything stands on it.

It builds the navKit map; the camp (campfire and its light, three tents, a weapon rack, three lanterns on posts); a dropped sword as level 2 evidence; thirteen hiding spots (logs and bushes in the woods, crates, a barrel, a hay cart and a bush round the camp, reeds and a bush on the bank); a handcart; disposal zones along the stream; the camp.CampGame rules entity; and four guards: a patrol looping the camp, a sentry on the western approach, a night watchman between the lanterns and a dozing guard by the north trail.

Exports: build(), ground(x, z), FOREST_SIZE, SEED, CAMP, FLATS, SPAWNS, SPAWN_ROT, STREAM (the stream's centre line). Called from the main scene's build script.