Machine_learning_2023/domain/entities/cat.py

15 lines
344 B
Python
Raw Normal View History

2023-03-29 07:13:08 +02:00
import pygame
from domain.entities.entity import Entity
from domain.world import World
class Cat(Entity):
2023-03-29 11:27:59 +02:00
def __init__(self, x: int, y: int):
2023-03-29 07:13:08 +02:00
super().__init__(x, y, "CAT")
self.last_tick = pygame.time.get_ticks()
self.cooldown = 1000
self.velocity = 1
self.busy = False
self.direction = 0