Undertale Python -

if state == "MENU": draw_menu() if selected == "FIGHT": state = "FIGHT_PHASE" damage = random.randint(1, 5)

To recreate Undertale in Python, these libraries are the industry standard: undertale python

class BattleState: ENEMY_TURN = 0 PLAYER_TURN = 1 ACT_MENU = 2 MERCY_MENU = 3 if state == "MENU": draw_menu() if selected ==

Use rect.colliderect() to detect if a "bullet" sprite hits the soul. 5) To recreate Undertale in Python