2
image = 'data/shield.png',
11
velocity = {rotation = 5},
12
setImage = function (self)
13
if self.strength < 1 or self.strength == 5 then
17
self.image = self.images[self.strength]
19
-- special handling for strength = 0? set alpha to 0? fade?
21
onHit = function (self)
22
self.strength = self.strength - 1
24
onUpdate = function (self)
27
self.x = self.ship.x - 16
28
self.y = self.ship.y - 16
30
if the.keys:justPressed('p') then
b'\\ No newline at end of file'