Browse Source

Buildings give score;

bjorn 10 years ago
parent
commit
446d99006e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      building.lua

+ 1 - 0
building.lua

@@ -91,4 +91,5 @@ function Building:destroy()
   self.fixture:setFriction(0.25)
   self.fixture:setFriction(0.25)
   self.body:applyLinearImpulse(-400 + love.math.random() * 600, -2000 + love.math.random() * -2000)
   self.body:applyLinearImpulse(-400 + love.math.random() * 600, -2000 + love.math.random() * -2000)
   self.body:setAngularVelocity(-20 + love.math.random() * 40)
   self.body:setAngularVelocity(-20 + love.math.random() * 40)
+  ctx.hud:addScore(50)
 end
 end