remove .DS files and rename mascot to neko
This commit is contained in:
10
main.go
10
main.go
@@ -29,18 +29,18 @@ var (
|
|||||||
f embed.FS
|
f embed.FS
|
||||||
)
|
)
|
||||||
|
|
||||||
type mascot struct {
|
type neko struct {
|
||||||
x int
|
x int
|
||||||
y int
|
y int
|
||||||
count int
|
count int
|
||||||
sprite string
|
sprite string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *mascot) Layout(outsideWidth, outsideHeight int) (int, int) {
|
func (m *neko) Layout(outsideWidth, outsideHeight int) (int, int) {
|
||||||
return width, height
|
return width, height
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *mascot) Update() error {
|
func (m *neko) Update() error {
|
||||||
mx, my := ebiten.CursorPosition()
|
mx, my := ebiten.CursorPosition()
|
||||||
|
|
||||||
m.count++
|
m.count++
|
||||||
@@ -92,7 +92,7 @@ func (m *mascot) Update() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *mascot) Draw(screen *ebiten.Image) {
|
func (m *neko) Draw(screen *ebiten.Image) {
|
||||||
img := mSprite["up1"]
|
img := mSprite["up1"]
|
||||||
switch {
|
switch {
|
||||||
case m.count >= 0 && m.count <= 7:
|
case m.count >= 0 && m.count <= 7:
|
||||||
@@ -124,7 +124,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sw, sh := ebiten.ScreenSizeInFullscreen()
|
sw, sh := ebiten.ScreenSizeInFullscreen()
|
||||||
n := &mascot{
|
n := &neko{
|
||||||
x: sw / 2,
|
x: sw / 2,
|
||||||
y: sh / 2,
|
y: sh / 2,
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
nkosrc4/.DS_Store
vendored
BIN
nkosrc4/.DS_Store
vendored
Binary file not shown.
BIN
nkosrc4/Neko98/.DS_Store
vendored
BIN
nkosrc4/Neko98/.DS_Store
vendored
Binary file not shown.
Reference in New Issue
Block a user