2023-05-18 23:18:07 +02:00
|
|
|
import pygame
|
|
|
|
|
|
|
|
from domain.entities.entity import Entity
|
|
|
|
from domain.world import World
|
|
|
|
|
|
|
|
|
|
|
|
class Cat(Entity):
|
|
|
|
def __init__(self, x: int, y: int):
|
|
|
|
super().__init__(x, y, "CAT")
|
|
|
|
self.last_tick = pygame.time.get_ticks()
|
|
|
|
self.cooldown = 1000
|
|
|
|
self.velocity = 1
|
|
|
|
self.busy = False
|
|
|
|
self.sleeping = False
|
|
|
|
self.direction = 0
|
2023-05-25 16:23:12 +02:00
|
|
|
|
|
|
|
self.properties = [4, 2, 20, 0, 1, 32, 37, 5]
|