game.entities.pig ================= .. py:module:: game.entities.pig .. autoapi-nested-parse:: Pig entity class. Classes ------- .. autoapisummary:: game.entities.pig.Pig Module Contents --------------- .. py:class:: Pig(x, y) Bases: :py:obj:`game.entities.base_entity.BaseEntity` Represents a pig entity in the game. .. py:attribute:: ANIM_FRAME_DURATION :value: 0.15 .. py:attribute:: x .. py:attribute:: y .. py:attribute:: target_x .. py:attribute:: target_y .. py:attribute:: move_timer :value: 0 .. py:attribute:: eating_timer :value: 0 .. py:attribute:: size .. py:attribute:: asset_loader .. py:attribute:: direction :value: 'left' .. py:attribute:: anim_timer :value: 0.0 .. py:attribute:: anim_frame :value: 0 .. py:attribute:: sprites .. py:method:: update(dt, isometric_map) Update pig behavior. .. py:method:: render(screen, isometric_map) Render the pig.