twitchapon-anim

Basic Twitchapon Receiver/Visuals
git clone git://bsandro.tech/twitchapon-anim
Log | Files | Refs | README | LICENSE

commit c3873dc0ec49b3640716619b1939ee7d360c7ab4
parent c90f556b9026efd317124fe9c8d66f2553ba4cc9
Author: bsandro <brian.drosan@gmail.com>
Date:   Tue, 17 Nov 2020 04:45:14 +0300

go fmt

Diffstat:
Mebitest.go | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/ebitest.go b/ebitest.go @@ -7,8 +7,8 @@ import ( "github.com/hajimehoshi/ebiten/v2" "github.com/hajimehoshi/ebiten/v2/ebitenutil" _ "image" - _ "image/png" _ "image/jpeg" + _ "image/png" "log" "math" "math/rand" @@ -209,10 +209,10 @@ func tileImage(screen *ebiten.Image, img *ebiten.Image) { } op := &ebiten.DrawTrianglesOptions{} op.Address = ebiten.AddressRepeat - screen.DrawTriangles(vs, []uint16{0,1,2,1,2,3}, img, op) + screen.DrawTriangles(vs, []uint16{0, 1, 2, 1, 2, 3}, img, op) } -func makeSprite(name string, x float64, y float64, angle float64) (*Sprite) { +func makeSprite(name string, x float64, y float64, angle float64) *Sprite { return &Sprite{Images[name], ebiten.DrawImageOptions{}, x, y, angle, 0.0 /* rotation */} } @@ -220,4 +220,3 @@ func (g *Game) ShowDebug(screen *ebiten.Image) { msg := fmt.Sprintf("TPS: %0.2f\nFPS: %0.2f", ebiten.CurrentTPS(), ebiten.CurrentFPS()) ebitenutil.DebugPrint(screen, msg) } -