This repository has been archived on 2024-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
game-project/source/world/world_object.d

14 lines
297 B
D
Raw Permalink Normal View History

2023-10-02 13:03:07 +00:00
module world.world_object;
import utils.shapes;
2023-10-02 13:11:24 +00:00
import utils.indexedarray;
2023-10-02 13:03:07 +00:00
2023-10-02 13:11:24 +00:00
alias WorldObjectList = IndexedArray!(WorldObject, 1<<15);
2023-10-02 13:03:07 +00:00
class WorldObject {
public Vec2f position;
public Rectf hitbox;
2023-10-02 13:11:24 +00:00
abstract void update(float deltaTime);
abstract void render(float deltaTime);
2023-10-02 13:03:07 +00:00
}