Changed some classes

This commit is contained in:
Christian
2024-08-08 15:10:10 +02:00
parent 5d42915e56
commit 2171f51145
3 changed files with 36 additions and 18 deletions

View File

@@ -2,16 +2,12 @@ import pygame
import GameObject
import Utils
class Enemy(object):
def __init__(self, name, pos_x, pos_y, image) -> None:
spawned_enemy = list()
self.name = name
self.image = image
self.pos_x = pos_x
self.pos_y = pos_y
self.obj = GameObject.GameObject("Enemy", 0, 0, image)
pass
class Enemy(GameObject.GameObject):
def __init__(self, name, pos_x, pos_y, width, height, image=None) -> None:
super().__init__(name, pos_x, pos_y, width, height, image)
def render(self, screen:pygame.Surface):
screen.blit(self.image, (self.pos_x, self.pos_y))
#def render(self):
# pass