spaceblaster: added beam class
I should have added this earlier...
This commit is contained in:
parent
a84cc3c8f0
commit
ee59446eee
15
games/spaceblaster/beam.py
Normal file
15
games/spaceblaster/beam.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Bryan Schumaker (12 / 31 / 2010)
|
||||
|
||||
from engine import image
|
||||
from engine import object
|
||||
load = image.load
|
||||
GO = object.GameObject
|
||||
|
||||
class Beam(GO):
|
||||
def __init__(self, GAME, type, pos):
|
||||
GO.__init__(self, load(GAME, "beam-%s.png" % type), pos, (0, 1))
|
||||
self.allow_offscreen = True
|
||||
self.min_y -= self.h
|
||||
|
||||
def move(self):
|
||||
self.move_y(-1)
|
BIN
images/spaceblaster/beam-blue.png
Normal file
BIN
images/spaceblaster/beam-blue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 187 B |
Loading…
Reference in New Issue
Block a user