Files
test/weapons.py
2024-08-16 11:40:14 +02:00

11 lines
416 B
Python

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)