twitchapon-anim

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

commit 9fc0ff6ffd1ea984549b4f2bce45e2db5052e629
parent 2500e993893b27b7f2b6e638152c6820eaca4aeb
Author: bsandro <brian.drosan@gmail.com>
Date:   Mon, 16 Nov 2020 03:29:25 +0300

go fmt

Diffstat:
Mebitest.go | 12++++++------
Minit.go | 4++--
2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/ebitest.go b/ebitest.go @@ -2,6 +2,7 @@ package main import ( _ "bytes" + "errors" "fmt" "github.com/hajimehoshi/ebiten/v2" "github.com/hajimehoshi/ebiten/v2/ebitenutil" @@ -11,7 +12,6 @@ import ( "math" "math/rand" "time" - "errors" ) const S_FRAMERATE = 60 @@ -25,10 +25,10 @@ var ScreenSize struct { var BakaHa *ebiten.Image type Sprite struct { - img *ebiten.Image - opt ebiten.DrawImageOptions - x, y float64 - angle float64 + img *ebiten.Image + opt ebiten.DrawImageOptions + x, y float64 + angle float64 } type Game struct { @@ -88,7 +88,7 @@ func (sprite *Sprite) Update() error { bounce = true } - if (bounce) { + if bounce { dx = delta * math.Cos(sprite.angle) dy = delta * math.Sin(sprite.angle) x = sprite.x + dx diff --git a/init.go b/init.go @@ -1,10 +1,10 @@ package main import ( - "fmt" "bytes" - "log" + "fmt" "github.com/hajimehoshi/ebiten/v2" + "log" //"github.com/hajimehoshi/ebiten/v2/ebitenutil" "image" _ "image/png"