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

Closed
opened 2 days ago by zedshaw · 0 comments
zedshaw commented 2 days ago
Owner

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.
zedshaw self-assigned this 2 days ago
zedshaw closed this issue 16 hours ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: learn-code-the-hard-way/raycaster#48
Loading…
There is no content yet.