game.entities.base_entity ========================= .. py:module:: game.entities.base_entity Classes ------- .. autoapisummary:: game.entities.base_entity.BaseEntity Module Contents --------------- .. py:class:: BaseEntity(x, y, asset, speed=50.0, move_interval=3.0) Base class for all entities, handling smooth movement and rendering. .. py:attribute:: x .. py:attribute:: y .. py:attribute:: pixel_x :value: 0 .. py:attribute:: pixel_y :value: 0 .. py:attribute:: target_pos :value: None .. py:attribute:: is_moving :value: False .. py:attribute:: speed :value: 50.0 .. py:attribute:: move_timer .. py:attribute:: move_interval :value: 3.0 .. py:attribute:: asset .. py:attribute:: rect .. py:method:: update(dt, isometric_map) Update entity state, including movement. .. py:method:: get_screen_position(isometric_map) Get screen position for rendering. .. py:method:: render(screen, isometric_map) Render the entity on the screen.