After several times trying executing the program, I realize that there is a bug in spawning the trap for the first time. The bug is sometimes there are traps that double spawn in the same location. In effect of that, there is miscalculation about the number of trap that the player has.
This applies also in spawning the monster for the first time, however because the monster is moving, it will not be an issue.
No comments:
Post a Comment