Documentation
¶
Overview ¶
BASICLY GO FORTH mencoder mf://*.png -mf w=1280:h=720:fps=60:type=png -ovc copy -oac copy -o output.avi
BASICLY GO FORTH the STORY of how a GEEK with no artistic skills CODES his way through LIFE mencoder mf://*.png -mf w=1280:h=720:fps=60:type=png -ovc copy -oac copy -o output.avi
Index ¶
- Constants
- Variables
- func Atoi(s string) int
- func Check(err error)
- func CreateFrame(t int, can *C.Canvas, term *Term) bool
- func CreateSlate()
- func DrawMorse(can *C.Canvas)
- func Export(can *C.Canvas, filename string)
- func Main()
- func Move(speed, lx, ly, px, py int, z *[]Point)
- func Must(b bool)
- func NewRand(seed int64) *rand.Rand
- func RunBasic(program string) string
- func RunCredits(can *C.Canvas)
- func RunTerm()
- func Scribble(x0, y0 int, s string, mag int, clr C.Color, can *C.Canvas)
- func Times(n int, fn func())
- func WriteHeaderFrames(img image.Image, secs int, prefix rune)
- type Dart
- type FloatingTriangle
- type Keystroke
- type Lambda
- type Life
- type Monster
- type MoveTo
- type PeriTriangle
- type Pipe
- type Point
- type Room
- type Screen
- type Sprite
- type Stepper
- type Stop
- type Strafe
- type Term
- type Trigger
- type Typewriter
- type WaitN
Constants ¶
View Source
const ( W = 1280 H = 720 )
View Source
const BAMA = "" /* 277-byte string literal not displayed */
View Source
const Credits = `` /* 745-byte string literal not displayed */
View Source
const FPS = 30
View Source
const WhenToStartTerm2 = 9200
const WhenToStartTerm2 = 1000
View Source
const WhenToStartTerm3 = 9800
Variables ¶
View Source
var ( BLACK = C.RGB(0, 0, 0) LIGHT_GRAY = C.RGB(50, 50, 50) LIGHT_GREEN = C.RGB(10, 150, 10) GREEN = C.RGB(20, 250, 20) BLUE = C.RGB(20, 20, 250) YELLOW = C.RGB(250, 250, 20) WHITE = C.RGB(250, 250, 250) ORANGE = C.RGB(250, 120, 20) RED = C.RGB(250, 0, 0) )
View Source
var HEADER = flag.Bool("h", false, "produce header")
View Source
var M_CELL = regexp.MustCompile(`^([a-z])([0-9]+)$`).FindStringSubmatch
View Source
var M_WAIT = regexp.MustCompile(`^([-+@])([0-9]+)$`).FindStringSubmatch
View Source
var N = flag.Int("n", 720, "frames to generate")
View Source
var PeriVec = MakePerimeterVec()
View Source
var TAIL = flag.Bool("t", false, "produce trailer")
Functions ¶
func CreateSlate ¶
func CreateSlate()
func RunCredits ¶
Types ¶
type FloatingTriangle ¶
func NewFloatingTriangle ¶
func NewFloatingTriangle(a int) *FloatingTriangle
func (*FloatingTriangle) Step ¶
func (o *FloatingTriangle) Step(n int)
type Keystroke ¶
Keystroke is a source of keystrokes, which the Step method returns.
var KSSquares *Keystroke
KSSquares is a an instance of Keystroke that emits squares of the naturals.
func NewKeystroke ¶
type PeriTriangle ¶
type PeriTriangle struct {
// contains filtered or unexported fields
}
func NewPeriTriangle ¶
func NewPeriTriangle() *PeriTriangle
func (*PeriTriangle) Step ¶
func (o *PeriTriangle) Step(n int)
type Term ¶
type Term struct {
Mag int
TW, TH int
S []byte // screen chars
Vis []bool // visibility
Rooms []*Room
Sprites []*Sprite
Pipes []*Pipe
Monsters []*Monster
Darts []*Dart
Tick int
Tombstone string
TombstonePos Point
}
func (*Term) RenderDart ¶
func (*Term) RenderMonster ¶
func (*Term) RenderPipe ¶
func (*Term) RenderRoom ¶
func (*Term) RenderSprite ¶
type Typewriter ¶
Click to show internal directories.
Click to hide internal directories.