The design of the base class should be changed. For example, I had an idea (and worked to some level) of creating a base class of 'drawable' objects which carry their window to draw on and free them on destruction. But this became a failed attempt, since each enemy by dying free() stdscr, which makes it impossible even to play
The design of the base class should be changed. For example, I had an idea (and worked to some level) of creating a base class of 'drawable' objects which carry their window to draw on and free them on destruction. But this became a failed attempt, since each enemy by dying
free()
stdscr, which makes it impossible even to play