refactor: add base class for all game objects

This commit is contained in:
2021-06-08 12:33:58 -04:00
parent a269a532a0
commit 673c4774f2
7 changed files with 61 additions and 23 deletions

14
entity/Entity.py Normal file
View 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