2
image = 'data/shield.png',
11
velocity = {rotation = 5},
12
cost = 100, -- cost to repair 1 shield strength
13
setImage = function (self)
14
if self.strength < 1 or self.strength == 5 then
18
self.image = self.images[self.strength]
20
-- special handling for strength = 0? set alpha to 0? fade?
22
onHit = function (self)
23
self.strength = self.strength - 1
25
onUpdate = function (self)
28
self.x = self.ship.x - 16
29
self.y = self.ship.y - 16
31
if the.keys:justPressed('p') then
b'\\ No newline at end of file'