game.entities.base_entity

Classes

BaseEntity

Base class for all entities, handling smooth movement and rendering.

Module Contents

class game.entities.base_entity.BaseEntity(x, y, asset, speed=50.0, move_interval=3.0)[source]

Base class for all entities, handling smooth movement and rendering.

x[source]
y[source]
pixel_x = 0[source]
pixel_y = 0[source]
target_pos = None[source]
is_moving = False[source]
speed = 50.0[source]
move_timer[source]
move_interval = 3.0[source]
asset[source]
rect[source]
update(dt, isometric_map)[source]

Update entity state, including movement.

get_screen_position(isometric_map)[source]

Get screen position for rendering.

render(screen, isometric_map)[source]

Render the entity on the screen.