17 lines
447 B
Python
17 lines
447 B
Python
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
|
|
|
|
def render(self, screen:pygame.Surface):
|
|
screen.blit(self.image, (self.pos_x, self.pos_y))
|
|
|