Added some new classes
This commit is contained in:
10
weapons.py
Normal file
10
weapons.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import GameObject
|
||||
|
||||
class Laserblaster(GameObject.Weapons):
|
||||
def __init__(self, name, pos_x, pos_y, width, height, screen, image=None) -> None:
|
||||
super().__init__(name, pos_x, pos_y, width, height, 10, 2, 0, image)
|
||||
self.screen = screen
|
||||
self.image = image
|
||||
|
||||
def fire(self):
|
||||
self.projectile = GameObject.Projectile("Enemy", self.pos_x, self.pos_y, 5, 10, self.screen, 2, self.image)
|
||||
Reference in New Issue
Block a user