spinning asteroids

This commit is contained in:
Donald Ball 2025-11-17 23:15:21 -05:00
parent eae3659768
commit 63b296e19c
2 changed files with 5 additions and 4 deletions

View file

@ -58,7 +58,7 @@ local function initState()
local stage = game.asteroids.stages[asteroid.stage]
asteroid.speed = stage.speed
asteroid.facing = math.random() * phys.tau
asteroid.spin = 2 + math.random() * 5
asteroid.spin = 0.1 + math.random() * 0.1
asteroid.radius = stage.radius
asteroid.sprite = stage.sprite
end
@ -141,7 +141,7 @@ function love.update(dt)
radius = radius,
speed = speed,
facing = math.random() * phys.tau,
spin = 2 + math.random() * 5,
spin = 0.1 + math.random() * 0.1,
sprite = sprite,
})
table.insert(state.asteroids, {
@ -152,7 +152,7 @@ function love.update(dt)
radius = radius,
speed = speed,
facing = math.random() * phys.tau,
spin = 2 + math.random() * 5,
spin = 0.1 + math.random() * 0.1,
sprite = sprite,
})
end