{"modulePath":"github.com/kjkrol/gram","version":"v0.27.0","isStandardLibrary":false,"packages":{"items":[{"path":"github.com/kjkrol/gram","name":"gram","synopsis":"Package gram is a modular game engine for Go: a game.Game — named game.Stage values, each with its own entity-component world and its own [game.Scene]s — driven by an engine that runs the goke ECS in a window's loop, a tick and a picture a frame, the picture drawn on the GPU through WebGPU (gogpu).","isRedistributable":true},{"path":"github.com/kjkrol/gram/camera","name":"camera","synopsis":"Package camera is the view onto a world: screen conversion, culling, the visible window and its control.","isRedistributable":true},{"path":"github.com/kjkrol/gram/clock","name":"clock","synopsis":"Package clock is the tactical clock of a world: the one game time everything that simulates goes by, kept by the world and saved with the game.","isRedistributable":true},{"path":"github.com/kjkrol/gram/control","name":"control","synopsis":"Package control is the input vocabulary: what the engine captures each frame, and the commands and bindings a game is driven by.","isRedistributable":true},{"path":"github.com/kjkrol/gram/entity","name":"entity","synopsis":"Package entity is what every entity of a world carries: its Base (where it is, Position; how it moves, Velocity; its kind and what the space may do with it), its planes (Layers), in a world with heights its place in height (Z), where it looks from (Eye), the Drift it is carried at under gravity, how it lies flat (Lie) and how it casts its shadow ([Shadow]).","isRedistributable":true},{"path":"github.com/kjkrol/gram/entity/kind","name":"kind","synopsis":"Package kind is how a game says what its entities are.","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/board/atlas","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/board/buildings","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/board/custom-map","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/board/forest-army","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/board/mine","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/board/roads","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/look/animation","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/look/ground","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/look/light","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/look/material","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/look/sky","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/motion/bullet","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/motion/collision","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/motion/expanse","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/motion/platformer","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/navigation/hex","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/navigation/spawn","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/navigation/square","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/rules/dialog","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/rules/effect","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/rules/guard","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/rules/mechanisms","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/rules/vision","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/start/minimal","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/start/scenes","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/examples/start/split-screen","name":"main","synopsis":"","isRedistributable":true},{"path":"github.com/kjkrol/gram/game","name":"game","synopsis":"Package game is what a game implements and what it is handed back: the Game the engine drives, its [Stage]s and their [Scene]s, and the Initializer, Runtime and Persistence a Stage or Scene works through.","isRedistributable":true},{"path":"github.com/kjkrol/gram/game/stage","name":"stage","synopsis":"Package stage defines a game.Stage a section at a time, always in the same order: a chain begun with New and ended with Update, each link one part of the game and nothing else.","isRedistributable":true},{"path":"github.com/kjkrol/gram/internal/engine","name":"engine","synopsis":"Package engine is the driver behind gram.Run: the window's loop (gogpu), one active Stage and its ECS at a time, and the unexported implementations of the contracts package game declares.","isRedistributable":true},{"path":"github.com/kjkrol/gram/internal/f32","name":"f32","synopsis":"Package f32 is package math for the float32 geometry gram keeps: each function is math's of the same name, worked out in float64 and rounded once.","isRedistributable":true},{"path":"github.com/kjkrol/gram/internal/vec","name":"vec","synopsis":"Package vec is the three-float vectors the cameras and the billboards work with.","isRedistributable":true},{"path":"github.com/kjkrol/gram/lod","name":"lod","synopsis":"Package lod is the one ladder of levels of detail the world is ticked and drawn by: a Level for each sector of the world, from the scale it is seen at and how far it lies.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugin","name":"plugin","synopsis":"Package plugin is the extension contract: what a Plugin is, what it is handed at install time, and how a game's rules are hosted inside a plugin's own pass.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugin/parallel","name":"parallel","synopsis":"Package parallel shares a job of many tasks among the goroutines of a pool kept for the whole game: the caller's own and the pool's, each known by its number.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugin/section","name":"section","synopsis":"Package section names the parts a Stage is defined in, in their order, and lets a plugin refuse what is defined in the wrong one.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/atmosphere","name":"atmosphere","synopsis":"Package atmosphere is the sky over a world on the world's clock: the calendar, the light of the day, the climate and its weather, what falls, and what the weather does to the ground.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/atmosphere/air","name":"air","synopsis":"Package air is the weather over a world as it is felt and drawn: the Weather the climate makes, and what it does to what is drawn.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/atmosphere/aloft","name":"aloft","synopsis":"Package aloft draws the clouds seen from above: a layer the sky shows from below, the heaps as bodies the line of sight passes through, lit from above, the shreds as thin sheets at their heights, half see-through over their shadows, thinning away into the ground; and the heaps seen from under their top before the slopes that stand up into them.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/atmosphere/backdrop","name":"backdrop","synopsis":"Package backdrop is the sky behind the world, drawn on the GPU before anything else: through a perspective the sky of the day with the sun, the moon, the stars and the clouds on it; through any other camera the viewport filled in the sky's colour wherever the ground does not cover it.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/atmosphere/calendar","name":"calendar","synopsis":"Package calendar turns the tactical clock's game time into days, seasons and the moon.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/atmosphere/celestial","name":"celestial","synopsis":"Package celestial is the celestial sphere over a world: where the sun, the moon and the stars stand as the world turns, and the real stars and the moon's face to draw them with.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/atmosphere/climate","name":"climate","synopsis":"Package climate is the climate of a world: where in the world it lies, and the weather that goes by there.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/atmosphere/climate/weather","name":"weather","synopsis":"Package weather is the kinds of weather a climate goes through, each a State.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/atmosphere/precipitation","name":"precipitation","synopsis":"Package precipitation draws what falls from the world's weather: rain and snow, drop by drop between the low clouds and the ground, only under the clouds it falls from and as thick as they let fall (air.Weather.FallsAt), in the light of the sun.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/atmosphere/sky","name":"sky","synopsis":"Package sky is the light of the day over a world: the sun (a light.Distant; DefaultSun without a sky) and the moon of the calendar's hour.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/atmosphere/weathering","name":"weathering","synopsis":"Package weathering is the weather on the board: snow lying, ice on the water, what sways swaying, as effects on the board's cells cast as the world's weather says and taken off again.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board","name":"board","synopsis":"Package board lays a square or hex grid over the game world, with per-cell terrain (who may pass, how fast one goes) and occupancy.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/cell","name":"cell","synopsis":"Package cell is a board's cell as a place: what it is, who may stand on it, what runs across it and the moment of it rules are written for.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/grid","name":"grid","synopsis":"Package grid is a board's topology: a Grid answers which cells neighbour which and in which direction, where a cell lies, how far apart two are, which cells a box covers and every cell in turn; DefaultGrids makes a square or a hex one.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/ground","name":"ground","synopsis":"Package ground is what a board's ground is to the other plugins: the height of it at a point (Heights; a Profile knows it along a ray exactly), what stands on it and holds sight back (Cover, walked along a ray) and where whoever moves over it stands (Surfaces: the ground or a deck, and the deck over it).","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/internal/boardtest","name":"boardtest","synopsis":"Package boardtest is what the board's tests share: an installer without an engine, a world of world, collision, board and vision ticked as a demo ticks them, the rows of its units, a game of one stage.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/internal/draw","name":"draw","synopsis":"Package draw is what the board draws by itself: the simple map's Bands, the ways and the covers the tile map lays over the tiles, and the Clouds' shadows on a flat board's ground under an atmosphere.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/internal/field","name":"field","synopsis":"Package field is a board's ground as the other plugins meet it: the cover that holds sight back along a ray (ground.Cover), kept as the cells change, and the solid ground collision pushes colliders out of and never over (collision.Field), read from the cells' terrain.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/internal/grids","name":"grids","synopsis":"Package grids is the board's default grids, square and hex, with what the board's own parts read of them: the fields, Fold, SetWrap.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/internal/moments","name":"moments","synopsis":"Package moments runs the board's passes over its units and cells: Rules hosts the rules of a unit.Standing and of a cell.Now and runs them every step, telling each which cells lie round it (AroundPlaces) and, a unit, in front of it (AheadPlaces).","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/internal/occupancy","name":"occupancy","synopsis":"Package occupancy keeps a board's cell.Occupancy true to the world: KeepSystem has every unit hold the cell it stands on, following it wherever it goes, and lets go of the holds of whoever left the world; PlaceSystem moves a part laid off its aggregate onto a cell taking it; View draws the cells held.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/internal/terrain","name":"terrain","synopsis":"Package terrain is the state of a board's cells every part of the board reads: a seed until the ECS is set up, then the cells' entities, with the counts of changes to them and the dictionary of the kinds a game defined (Kinds).","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/look","name":"look","synopsis":"Package look is how a board is drawn.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/mapfile","name":"mapfile","synopsis":"Package mapfile reads a map kept in files, in metres: a manifest, the ground's heights as an image and what lies on the ground as GeoJSON, whole or cut into tiles.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/network","name":"network","synopsis":"Package network is what runs from cell to cell across a board, rivers and roads, as a graph over its grid: the cells it runs through (Network.Set, a Node of a board kind, a width and a fade) and which neighbours each runs on to; a road [Network.Link]s its cells both ways, water [Network.Flow]s down to where it leaves the network.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/unit","name":"unit","synopsis":"Package unit is an entity on a board: the cell it is At, how it moves over the cells and what it weighs (a Mover) and where it stands at a step as a rule gets it (Standing, with its Heading, so a rule's board.Ahead(n) turns to the cells in front of it; its words Fallen where its domain may not be, StandingOn a cell under an effect, OnKind a cell of a kind).","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/board/water","name":"water","synopsis":"Package water works out the running water of a relief: where the rain on it gathers and runs to the sea, the brooks, streams and rivers it makes, the channels they cut and the fords across them.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/bridges","name":"bridges","synopsis":"Package bridges builds bridges by one set of rules, package site's, whoever builds them: a level's file, a player with a bridge in hand, a map maker.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/bridges/site","name":"site","synopsis":"Package site is where a bridge may stand: Plan a bridge from one head to another over a Ground under the Rules, or say why not (Refusal).","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/buildings","name":"buildings","synopsis":"Package buildings stands the buildings of a level's file as solids: walls on a rectangle turned any way and a roof over them, each as long, as wide and as high as its line says.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/bullet","name":"bullet","synopsis":"Package bullet fires shots and flies them: entities of the world a Shoot spawns at a unit's muzzle, flown every step past the world's step cap and swept by collision, so what lies on the path is struck.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/cameras","name":"cameras","synopsis":"Package cameras makes the cameras a game looks at its world through and moves them: from above over any world, and over a world in relief on a stick, turned and leaned, orthographically or in perspective, riding with an entity.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/cameras/cameratest","name":"cameratest","synopsis":"Package cameratest is the cameras plugin's cameras for tests: one from above to draw or cull through when the camera itself is not under test, and a relief camera's keys.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/cameras/internal/stick","name":"stick","synopsis":"Package stick is the cameras plugin's views of a world in relief: a camera on a stick, seen through orthographically or in perspective, an eye riding in a unit, and their control.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/cameras/internal/topdown","name":"topdown","synopsis":"Package topdown holds the cameras plugin's camera from above behind the camera.Camera contract, with its window arithmetic and wrapping.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/collision","name":"collision","synopsis":"Package collision detects overlaps between world entities each tick and records what each struck on its Collider.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/collision/internal/collisiontest","name":"collisiontest","synopsis":"Package collisiontest is what the collision's tests share: an installer and a world with motion and collision, stepped as a game steps it.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/collision/internal/response","name":"response","synopsis":"Package response is how the collision answers a contact, on numbers alone: the impulse two sides trade along the contact's normal (Exchange) and the footing that keeps a side pushed apart off ground that does not take it (Footing, Worse).","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/dialog","name":"dialog","synopsis":"Package dialog is conversations written as data: nodes of lines and answers a Stage loads from YAML files, held by its entities and answered by a player through a window pinned to the speaker.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/driving","name":"driving","synopsis":"Package driving drives units by hand: a player's keys, or an entity's own commands, walk, turn, strafe, brake and back a unit away, leap, and fly one that flies.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/forest","name":"forest","synopsis":"Package forest plants forests over the board: fields of trees standing as a camera comes near and folding into the world's sheets as it goes.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/gravity","name":"gravity","synopsis":"Package gravity has bodies fall, stand on what bears them and leap: a character's controller, never rigid bodies.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/gravity/internal/planar","name":"planar","synopsis":"Package planar is a body's fall across the plane, a platformer's: the pull any way across it, the body borne by whatever collision found it touching against the pull.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/gravity/internal/vertical","name":"vertical","synopsis":"Package vertical is a body's fall along Z: a step of the pull along the vertical between the surface under its feet and the slab over its head.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/interiors","name":"interiors","synopsis":"Package interiors keeps the rooms of the board's cells and who stands in each: it tells the rules as one comes in and goes out, and has whoever is in a room drawn in the light that gets into it.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/light","name":"light","synopsis":"Package light declares the light over a world: a distant light (the sun) and the lamps, how each thing casts its shadow and what shade it takes.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/minimap","name":"minimap","synopsis":"Package minimap brings minimaps: small pictures of the world round a player's camera, of the ground in miniature and the marks of the kinds that have one, the camera's view outlined on it; a click on one takes the camera there.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/mosaic","name":"mosaic","synopsis":"Package mosaic brings a ground laid as a mosaic of cells round points (github.com/kjkrol/mosaic): hills as fine as their shape asks, roads whose lines the cells' edges lie on, drawn sector by sector as finely as the world's ladder sees each.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/motion","name":"motion","synopsis":"Package motion moves the world's entities: every step it steers them, runs the rules of a Moving over them, moves each by its velocity, never further than Position.MaxStep, and deals with those gone past an open edge.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/motion/internal/motiontest","name":"motiontest","synopsis":"Package motiontest is what motion's tests share: an installer and a world with motion, stepped as a game steps it.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/motion/steering","name":"steering","synopsis":"Package steering turns what an entity wants into motion, gradually.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/navigation","name":"navigation","synopsis":"Package navigation moves entities along a MoveOrder's path across a board, re-pathing when the ground along the route changes, and carries out MoveTo commands for Selected entities.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/navigation/internal/bodies","name":"bodies","synopsis":"Package bodies is the units of a tick of navigation: each as a Member of the tick and as a Body the others meet, and an Index of the bodies by the cells their boxes touch.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/navigation/internal/order","name":"order","synopsis":"Package order is the order a navigated unit carries — its MoveOrder, Goals, Path and Leg — the commands that give and change it, and the facts and moments told about it; the order's working functions are the systems' alone.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/navigation/internal/pathfind","name":"pathfind","synopsis":"Package pathfind finds routes over a board's grid for the navigation: the cheapest way from cell to cell for an entity moving in a domain, round what may not be entered, what is held and what the caller says is blocked, and the nearest free cell to a taken one.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/navigation/internal/routes","name":"routes","synopsis":"Package routes draws the navigation's routes and goals (Renderer), on the GPU in a world with heights: stretches laid over the ground the frame drew (Lines), lying at the ground's depth, under what stands on it.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/navigation/internal/routing","name":"routing","synopsis":"Package routing plans where the units go: the System carrying out the commands that send them, each an order with its route.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/navigation/internal/spacing","name":"spacing","synopsis":"Package spacing is how units keep out of each other's way: a Keeping for each Spacing, a cell to a unit (CellKeeping) or boxes kept apart (BodyKeeping), the spots a group stands on, and the board's Finder of routes they plan with.","isRedistributable":true},{"path":"github.com/kjkrol/gram/plugins/navigation/internal/traffic","name":"traffic","synopsis":"Package traffic moves the units along their routes: the System stepping each from cell to cell, holding its steps, turning it and handing the crowd's rules the touches among them.","isRedistributable":true}],"total":136,"nextPageToken":"0bba240b8770a8950e6ef808b9e4e810"}}
