spaceblaster: created class CSE1670()
The CSE1670() is the players ship. This class will be used to represent the ship.
This commit is contained in:
parent
eb44dc7f81
commit
c5fb07a735
|
@ -12,7 +12,7 @@ DOWN = pygame.K_DOWN
|
|||
|
||||
class ArcadeState(games.GameState):
|
||||
def __init__(self, GAME):
|
||||
self.ship = ship.ArcadeShip(GAME, (10, 10), (1, 1))
|
||||
self.ship = ship.CSE1670(GAME, (10, 10), (1, 1))
|
||||
self.k_left = False
|
||||
self.k_right = False
|
||||
self.k_up = False
|
||||
|
|
|
@ -8,5 +8,10 @@ load = image.load
|
|||
GO = object.GameObject
|
||||
|
||||
class ArcadeShip(GO):
|
||||
def __init__(self, GAME, image, pos, speed):
|
||||
GO.__init__(self, load(GAME, image), pos, speed)
|
||||
|
||||
|
||||
class CSE1670(ArcadeShip):
|
||||
def __init__(self, GAME, pos, speed):
|
||||
GO.__init__(self, load(GAME, "cse_1670.png"), pos, speed)
|
||||
ArcadeShip.__init__(self, GAME, "cse_1670.png", pos, speed)
|
||||
|
|
Loading…
Reference in New Issue
Block a user