Skip to content
RED SAG Skills
mediumStudy question · answer published in System Design interview questions, so no pointsgameplaydesign-patterns

Messy player code

Player code is full of flags like isJumping, isAttacking and isClimbing, causing bugs where two states run at once. What is a good refactor?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions