GizStackGizStack
View .mdOpen in ChatGPTOpen in Claude

gizgame/shots

What a first-person shooter's scene draws of its own: its shots.

gizlang
import * as Shots from "gizgame/shots";

Types

Shots3D

gizlang
type Shots3D = { flash: string; weapon?: string; spark?: string; reach: f64; }

The shots of an online shooter as the scene draws them (shots): thing FLASH at each other being's muzzle as it fires, the own WEAPON in the hand (it kicks back with each shot), and thing SPARK where an own shot met the world within REACH meters.

  • flash: string
  • weapon: _gizlang_sdk_core.Option<string>
  • spark: _gizlang_sdk_core.Option<string>
  • reach: f64

Functions

shots

gizlang
function shots(online: Online, look: Shots3D): (picture: Picture, scene: Scene) => void throws string

What a first-person online shooter's scene draws of its own (Scene3D under): its shots as LOOK says.

Effects: fail, read, write, alloc.