Added readme.md

Added keybind F9 for window mode
Player gets damage if he gets hit by enemy projectile
This commit is contained in:
Christian
2024-08-18 14:54:56 +02:00
parent e87c7fed02
commit 31384e03df
5 changed files with 26 additions and 13 deletions

View File

@@ -1,8 +1,8 @@
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)
def __init__(self, name, pos_x, pos_y, width, height, damage:int, firerate:int, duration:int, screen, image=None) -> None:
super().__init__(name, pos_x, pos_y, width, height, damage, firerate, duration, screen, image)
self.screen = screen
self.image = image