raycaster.cpp:update_level is a giant pile of bullshit #48

Closed
opened 2025-06-29 14:21:23 +00:00 by zedshaw · 0 comments
zedshaw commented 2025-06-29 14:21:23 +00:00 (Migrated from lcthw.dev)

In fsm.cpp:450 on ENTITY_SPAWN I need to tell the raycaster there's a new entity, however the way I'm doing that is bonkers. I just run a full update_level which is normally for transitions to whole new levels. This function is then removing all of the sprites, resetting all of the tiles and walls, and then adding all the sprites back on. I need to make a function that only spawns new enemies and maybe another to remove them.

In fsm.cpp:450 on ENTITY_SPAWN I need to tell the raycaster there's a new entity, however the way I'm doing that is bonkers. I just run a full update_level which is normally for transitions to whole new levels. This function is then removing all of the sprites, resetting all of the tiles and walls, and then adding all the sprites back on. I need to make a function that only spawns new enemies and maybe another to remove them.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: games/raycaster#48
No description provided.