Added some new classes

This commit is contained in:
Christian
2024-08-16 11:40:14 +02:00
parent ae2e28cfca
commit 0bbe702f8a
8 changed files with 80 additions and 31 deletions

10
weapons.py Normal file
View 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)