diff --git a/main.py b/main.py index d9d9b93..c696175 100644 --- a/main.py +++ b/main.py @@ -149,7 +149,8 @@ def onAppStart(app): # - skill-check state placeholders (cursor angle, bars, speed, result) # - app.stepsPerSecond for the game loop cadence # Delegates to the smaller setup helpers below to keep this readable. - app.debug = False + app.debug = True + app.debugCreatureInd = 0 #DRAWING CONSTANTS app.width = 600 @@ -408,6 +409,14 @@ def onKeyPress(app, key): # DEBUG if not app.debug: return + if key == "h": + if app.debugCreatureInd < len(app.creatures) - 1: + app.debugCreatureInd += 1 + else: + app.debugCreatureInd = 0 + + app.hookedFish = app.creatures[app.debugCreatureInd] + app.scene = "result" if key == "m": app.save["cash"] = 1000000 if key == "r": @@ -772,7 +781,7 @@ def drawDebug(app): drawLabel(debugLines[i], 0, app.height - 125 + size * i, fill="white", size=size, align = "left") #debug keys - drawLabel("' m ' = give cash, ' r ' = reset save, ' f ' = skip fishing timer, ' d ' = trigger breakpoint", 5, 5, size=12, align = "top-left") + drawLabel("' h ' = test fish img, ' m ' = give cash, ' r ' = reset save, ' f ' = skip fishing timer, ' d ' = trigger breakpoint", 5, 5, size=12, align = "top-left") # ============================================================================= diff --git a/save.json b/save.json index 1be3269..1ae5cdd 100644 --- a/save.json +++ b/save.json @@ -1 +1 @@ -{"cash": 112.0, "owned_baits": ["Worms", "Prawns"], "owned_upgrades": [], "current_bait": "Prawns"} \ No newline at end of file +{"cash": 142.0, "owned_baits": ["Worms", "Prawns"], "owned_upgrades": [], "current_bait": "Prawns"} \ No newline at end of file