Added new classes
This commit is contained in:
17
Enemy.py
Normal file
17
Enemy.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user