mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Remove an unneeded variable
This commit is contained in:
parent
a3c07b1d36
commit
4fc359e08f
@ -61,7 +61,6 @@ func (sprite *Sprite) Update() {
|
|||||||
type Sprites struct {
|
type Sprites struct {
|
||||||
ebitenTexture graphics.Texture
|
ebitenTexture graphics.Texture
|
||||||
sprites []*Sprite
|
sprites []*Sprite
|
||||||
angle int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewSprites() *Sprites {
|
func NewSprites() *Sprites {
|
||||||
@ -103,7 +102,6 @@ func (game *Sprites) Update() {
|
|||||||
for _, sprite := range game.sprites {
|
for _, sprite := range game.sprites {
|
||||||
sprite.Update()
|
sprite.Update()
|
||||||
}
|
}
|
||||||
game.angle++
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (game *Sprites) Draw(g graphics.GraphicsContext, offscreen graphics.Texture) {
|
func (game *Sprites) Draw(g graphics.GraphicsContext, offscreen graphics.Texture) {
|
||||||
|
Loading…
Reference in New Issue
Block a user