Ran gofmt
This commit is contained in:
parent
003fb15ecf
commit
291aff7aea
@ -1,20 +1,20 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "image/jpeg"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/golang/freetype/truetype"
|
||||||
|
"golang.org/x/image/font"
|
||||||
"image/color"
|
"image/color"
|
||||||
|
_ "image/jpeg"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"strings"
|
"strings"
|
||||||
"github.com/golang/freetype/truetype"
|
|
||||||
"golang.org/x/image/font"
|
|
||||||
|
|
||||||
"github.com/hajimehoshi/ebiten"
|
"github.com/hajimehoshi/ebiten"
|
||||||
"github.com/hajimehoshi/ebiten/ebitenutil"
|
|
||||||
"github.com/hajimehoshi/ebiten/text"
|
|
||||||
"github.com/hajimehoshi/ebiten/audio"
|
"github.com/hajimehoshi/ebiten/audio"
|
||||||
"github.com/hajimehoshi/ebiten/audio/mp3"
|
"github.com/hajimehoshi/ebiten/audio/mp3"
|
||||||
|
"github.com/hajimehoshi/ebiten/ebitenutil"
|
||||||
|
"github.com/hajimehoshi/ebiten/text"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -106,7 +106,6 @@ func init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func update(screen *ebiten.Image) error {
|
func update(screen *ebiten.Image) error {
|
||||||
|
|
||||||
if ebiten.IsRunningSlowly() {
|
if ebiten.IsRunningSlowly() {
|
||||||
@ -121,7 +120,7 @@ func update(screen *ebiten.Image) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
action = strings.Split(messages[line].Text, " ")
|
action = strings.Split(messages[line].Text, " ")
|
||||||
if (action[0] == "playSong") {
|
if action[0] == "playSong" {
|
||||||
if line+1 != len(messages) {
|
if line+1 != len(messages) {
|
||||||
playSong(action[1])
|
playSong(action[1])
|
||||||
line++
|
line++
|
||||||
|
Loading…
Reference in New Issue
Block a user