mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
examples/sprites, examples/spriteshd: Misspelling
This commit is contained in:
parent
ebd0e11c0d
commit
aee5d6d708
@ -168,7 +168,7 @@ func (g *Game) Update(screen *ebiten.Image) error {
|
||||
g.init()
|
||||
}
|
||||
|
||||
// Decrease the nubmer of the sprites.
|
||||
// Decrease the number of the sprites.
|
||||
if ebiten.IsKeyPressed(ebiten.KeyLeft) || leftTouched() {
|
||||
g.sprites.num -= 20
|
||||
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() {
|
||||
g.sprites.num += 20
|
||||
if MaxSprites < g.sprites.num {
|
||||
|
@ -154,7 +154,7 @@ func (g *Game) Update(screen *ebiten.Image) error {
|
||||
return regularTermination
|
||||
}
|
||||
|
||||
// Decrease the nubmer of the sprites.
|
||||
// Decrease the number of the sprites.
|
||||
if ebiten.IsKeyPressed(ebiten.KeyLeft) {
|
||||
g.sprites.num -= 20
|
||||
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) {
|
||||
g.sprites.num += 20
|
||||
if MaxSprites < g.sprites.num {
|
||||
|
Loading…
Reference in New Issue
Block a user