Documentation
¶
Overview ¶
Package game is the Linefire runtime: it loads a player asset and a level and runs a minimal ship-in-a-world prototype. The ship stays centered on screen always pointing up; the world rotates and translates around it (the camera follows the ship's position and heading).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
Game is the ebiten.Game runtime.
func New ¶
New builds a game from a player asset and a level. simple skips the per-area flood negative-space map and the fog-of-war (line-wall view, no discovery grid / fog texture): the procedural map uses it so a large streamed region renders fast and rebuilds cheaply on a chunk crossing. New builds a game that reads its data straight from the operating system (the default for tests and dev, which pass a directory such as "../gameassets"). Run uses newWithContent to serve the same data from the embedded bundle instead.
func (*Game) Draw ¶
Draw renders the world around the centered, upward-pointing ship. Because the world swings by a large per-frame angle during a turn, a single still frame on a sample-and-hold display reads as a doubled line (stroboscopic stepping). To fill the gap, the moving world is accumulated over several intermediate camera poses between the previous and current frame and averaged. The ship itself is fixed at the screen center, so it is drawn once, crisp, on top.
Source Files
¶
- align.go
- ally.go
- arsenal.go
- assetcache.go
- autofire.go
- bonus.go
- boost.go
- bounds.go
- breakable.go
- cheats.go
- checkpoint.go
- collision.go
- combatmods.go
- credits.go
- devourer.go
- drops.go
- edge.go
- effects.go
- ending.go
- endless.go
- floattext.go
- floodmap.go
- game.go
- gamelog.go
- hud.go
- hudslots.go
- laser.go
- mapscreen.go
- mapstate.go
- materialize.go
- menu.go
- mine.go
- minimap.go
- missile.go
- music.go
- musicweb.go
- nav.go
- objective.go
- perf.go
- portal.go
- powerups.go
- procedural.go
- projectile.go
- resolution.go
- results.go
- rng.go
- roundview.go
- secondary.go
- shieldmods.go
- shockwave.go
- sound.go
- soundloop.go
- spawner.go
- title.go
- touch.go
- touchdraw.go
- victory.go
- vision.go
- weapon.go
- weaponpickup.go
- websettings.go
- world.go