[][src]Crate kit

A foundational layer for gamedev designed to be a starting point for jams. Draws inspiration from ggez and Love2d, but can do 3D rendering.

Modules

geometry

Structures for defining geometry primitives.

graphics

Graphics commands for drawing primitives.

Structs

Ctx
GraphicsCtx
InputCtx
KAppDesc
M4
Sprite

Defines a subset of a texture that can be drawn. Can be used to define the placement of a single sprite within a spritesheet.

Texture
TextureFrameDesc
V2
V3
V4

Enums

Keycode
Pivot

Primarily used for images, this expresses a point within the image that will be aligned to the image's position coordinates and which will be the center of any scaling or rotation applied to the image.

Constants

INVERSE_SQ_ROOT_2
NEAR_ZERO
PI

Archimedes' constant (π)

SQRT_2

sqrt(2)

TAU

Traits

KApp

Functions

add2
cross3
dot3
lerpf
max
min
mul2
near_zero
run
sub2
to_radians
v2
v3
v3_mag_sq
v3_mag
v3_div
v3_norm
v3_cross
v4