add more debug

This commit is contained in:
2026-10-10 16:19:24 -04:00
parent 9ef96a1606
commit 6b6cd0842f
2 changed files with 12 additions and 3 deletions
+11 -2
View File
@@ -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")
# =============================================================================