Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Textmode committed Aug 28, 2012
1 parent 8c31a4b commit 1cdee74
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ship.lua
Expand Up @@ -74,18 +74,10 @@ function ship:update(dt, level)
for i, entity in next, self.entities do
entity:update(dt)
if entity.kind == "bullet" then
-- Remove off-screen bullets
-- if entity.pos_x <= 0 or
-- entity.pos_x + entity.width >= SCREEN_WIDTH then
-- self.entities[i] = nil
-- entity.state = 'remove'
-- end
-- Hit things
for _, ship in next, Gamestate.space.enemies do
if entity:testcollision(ship) then
entity:collidewith(ship)
-- ship:dohit(entity.damage)
-- ship.hit = true
entity.state = 'remove'
self.entities[i] = nil
end
Expand Down

0 comments on commit 1cdee74

Please sign in to comment.