refactor: add base class for all game objects
This commit is contained in:
14
entity/Entity.py
Normal file
14
entity/Entity.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import pygame
|
||||
|
||||
class Entity:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def update(self) -> None:
|
||||
pass
|
||||
|
||||
def draw(self, surface: pygame.Surface) -> None:
|
||||
pass
|
||||
|
||||
def collide(self, entity) -> bool:
|
||||
pass
|
||||
Reference in New Issue
Block a user