examples/sprites, examples/spriteshd: Misspelling

This commit is contained in:
Hajime Hoshi 2020-06-28 22:22:52 +09:00
parent ebd0e11c0d
commit aee5d6d708
2 changed files with 4 additions and 4 deletions

View File

@ -168,7 +168,7 @@ func (g *Game) Update(screen *ebiten.Image) error {
g.init() g.init()
} }
// Decrease the nubmer of the sprites. // Decrease the number of the sprites.
if ebiten.IsKeyPressed(ebiten.KeyLeft) || leftTouched() { if ebiten.IsKeyPressed(ebiten.KeyLeft) || leftTouched() {
g.sprites.num -= 20 g.sprites.num -= 20
if g.sprites.num < MinSprites { if g.sprites.num < MinSprites {
@ -176,7 +176,7 @@ func (g *Game) Update(screen *ebiten.Image) error {
} }
} }
// Increase the nubmer of the sprites. // Increase the number of the sprites.
if ebiten.IsKeyPressed(ebiten.KeyRight) || rightTouched() { if ebiten.IsKeyPressed(ebiten.KeyRight) || rightTouched() {
g.sprites.num += 20 g.sprites.num += 20
if MaxSprites < g.sprites.num { if MaxSprites < g.sprites.num {

View File

@ -154,7 +154,7 @@ func (g *Game) Update(screen *ebiten.Image) error {
return regularTermination return regularTermination
} }
// Decrease the nubmer of the sprites. // Decrease the number of the sprites.
if ebiten.IsKeyPressed(ebiten.KeyLeft) { if ebiten.IsKeyPressed(ebiten.KeyLeft) {
g.sprites.num -= 20 g.sprites.num -= 20
if g.sprites.num < MinSprites { if g.sprites.num < MinSprites {
@ -162,7 +162,7 @@ func (g *Game) Update(screen *ebiten.Image) error {
} }
} }
// Increase the nubmer of the sprites. // Increase the number of the sprites.
if ebiten.IsKeyPressed(ebiten.KeyRight) { if ebiten.IsKeyPressed(ebiten.KeyRight) {
g.sprites.num += 20 g.sprites.num += 20
if MaxSprites < g.sprites.num { if MaxSprites < g.sprites.num {