Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JoelOtter/termloop
/ types & classes
Types & classes
33 in github.com/JoelOtter/termloop
⨍
Functions
152
◇
Types & classes
33
↓ 4 callers
TypeAlias
Attr
termloop.go:148
↓ 3 callers
TypeAlias
EventType
termloop.go:151
↓ 1 callers
TypeAlias
Key
termloop.go:149
↓ 1 callers
TypeAlias
Modifier
termloop.go:150
Struct
Audio
The Audio type represents the audio controller. It should be used as a singleton, as multiple streams in PortAudio may not be supported on some hardwa
extra/audio.go:18
Struct
BaseLevel
BaseLevel type represents a Level with a background defined as a Cell, which is tiled. The background is drawn first, then all Entities.
level.go:15
Struct
Block
Termloop stuff
_examples/pyramid.go:104
TypeAlias
Canvas
A Canvas is a 2D array of Cells, used for drawing. The structure of a Canvas is an array of columns. This is so it can be addressed canvas[x][y].
termloop.go:11
Struct
Cell
Abstract Termbox stuff for convenience - users should only need Termloop imported Represents a character to be drawn on the screen.
termloop.go:110
Struct
Clickable
_examples/click.go:40
Struct
CollRec
_examples/collision.go:5
Interface
Drawable
Drawable represents something that can be drawn, and placed in a Level.
termloop.go:71
Interface
DynamicPhysical
DynamicPhysical represents something that can process its own collisions. Implementing this is an optional addition to Drawable.
termloop.go:86
Struct
Entity
Entity provides a general Drawable to be rendered.
entity.go:4
FuncType
EntityParser
An EntityParser is a function which composes an object from data that has been parsed from a JSON file. Returns a Drawable
map.go:16
Struct
Event
Provides an event, for input, errors or resizing. Resizing and errors are largely handled by Termloop itself - this would largely be used for input.
termloop.go:125
Struct
EventInfo
_examples/click.go:8
Struct
FpsText
Utility types and associated methods FpsText provides a Text which updates with the current 'framerate' at specified intervals, to be used for testing
util.go:11
Struct
Game
Represents a top-level Termloop application.
game.go:10
Struct
Image
_examples/image.go:11
Interface
Level
Level interface represents a Drawable with a separate background that is drawn first. It can also contain Drawables of its own.
level.go:5
Struct
MovingText
_examples/movingtext.go:9
Interface
Physical
Physical represents something that can collide with another Physical, but cannot process its own collisions. Optional addition to Drawable.
termloop.go:79
Struct
Player
_examples/tutorial.go:5
Struct
Player
_examples/levelmap.go:8
Struct
Point
Maze generation stuff
_examples/pyramid.go:14
Struct
Rectangle
A type representing a 2D rectangle, with position, size and color.
rectangle.go:4
Struct
Screen
A Screen represents the current state of the display. To draw on the screen, create Drawables and set their positions. Then, add them to the Screen's
screen.go:8
Struct
SoundCtrl
_examples/audio.go:17
Struct
Text
Text represents a string that can be drawn to the screen.
text.go:4
Struct
Track
The Track type represents an audio track which can be played.
extra/audio.go:24
Struct
input
input.go:5
Struct
levelMap
map.go:8