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

Closed
opened 1 year ago by zedshaw · 0 comments
zedshaw commented 1 year 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 1 year ago
zedshaw closed this issue 1 year ago
This repo is archived. You cannot comment on issues.
No Label
No Milestone
No project
No Assignees
1 Participants
Due Date

No due date set.

Dependencies

No dependencies set.

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