Esempio n. 1
0
func NewFade() *Fade {
	return &Fade{
		Canvas: pix.NewCanvas(&pix.Canvas{
			Dim:      vec.New(600.0, 400.0),
			Pos:      vec.New(0.0, 0.0),
			Name:     "Fade",
			FileName: ".files/wip/fade.png",
		}),
	}
}
Esempio n. 2
0
func NewTiles() *Tiles {
	return &Tiles{
		Canvas: pix.NewCanvas(&pix.Canvas{
			Dim:      vec.New(661.0, 441.0),
			Pos:      vec.New(0.0, 0.0),
			Name:     "Tiles",
			FileName: ".files/wip/tiles.png",
		}),
		TileWidth:  10,
		TileHeight: 10,
	}
}