Permalink
Browse files

Corrected BigAsteroids image data

  • Loading branch information...
1 parent 718a652 commit 9e895e83161b2c6bcef0f80298e737d89025602b @kikito committed Mar 29, 2010
Showing with 5 additions and 3 deletions.
  1. +2 −2 Asteroids.lua
  2. +3 −1 AstroObject.lua
  3. BIN images/image.png
View
@@ -14,13 +14,13 @@ end
Asteroid.big_asteroid_1 =
AstroObjectModel:new('Big Asteroid 1', 32,32, passion.graphics.newQuad(Asteroid.image, 320,0, 64,64),
-- Shapes
- { polygon={-28,7 , -8,27 , 8,28 , 18,19 , 25,8 , 27,-10 , 5,-28 , -26,-12} }
+ { polygon={-28,-7 , -8,-27 , 8,-28 , 18,-19 , 25,-8 , 27,10 , 5,28 , -24,18} }
)
Asteroid.big_asteroid_2 =
AstroObjectModel:new('Big Asteroid 2', 32,32, passion.graphics.newQuad(Asteroid.image, 384,0, 64,64),
-- Shapes
- { polygon={-21,16 , -6,26, 8,28 , 23,14 , 25,-11 , 12,-25 , -11,-25, -25, -10} }
+ { polygon={-21,-16 , -6,-26, 8,-27 , 23,-14 , 25,11 , 12,25 , -11,25, -25,10} }
)
View
@@ -36,8 +36,10 @@ end
function AstroObject:draw()
local x, y = self:getPosition()
local model = self.model
- self:drawShapes()
passion.graphics.drawq(model.quad, x, y, self:getAngle(), 1, 1, model.centerX, model.centerY)
+ love.graphics.setColor(unpack(passion.green))
+ self:drawShapes()
+ love.graphics.setColor(255,255,255,255)
end
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9e895e8

Please sign in to comment.