spaceblaster: added beam class

I should have added this earlier...
This commit is contained in:
Bryan Schumaker 2010-12-31 11:41:04 -05:00
parent a84cc3c8f0
commit ee59446eee
2 changed files with 15 additions and 0 deletions

View 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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B