add more debug
This commit is contained in:
@@ -149,7 +149,8 @@ def onAppStart(app):
|
|||||||
# - skill-check state placeholders (cursor angle, bars, speed, result)
|
# - skill-check state placeholders (cursor angle, bars, speed, result)
|
||||||
# - app.stepsPerSecond for the game loop cadence
|
# - app.stepsPerSecond for the game loop cadence
|
||||||
# Delegates to the smaller setup helpers below to keep this readable.
|
# Delegates to the smaller setup helpers below to keep this readable.
|
||||||
app.debug = False
|
app.debug = True
|
||||||
|
app.debugCreatureInd = 0
|
||||||
|
|
||||||
#DRAWING CONSTANTS
|
#DRAWING CONSTANTS
|
||||||
app.width = 600
|
app.width = 600
|
||||||
@@ -408,6 +409,14 @@ def onKeyPress(app, key):
|
|||||||
|
|
||||||
# DEBUG
|
# DEBUG
|
||||||
if not app.debug: return
|
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":
|
if key == "m":
|
||||||
app.save["cash"] = 1000000
|
app.save["cash"] = 1000000
|
||||||
if key == "r":
|
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")
|
drawLabel(debugLines[i], 0, app.height - 125 + size * i, fill="white", size=size, align = "left")
|
||||||
|
|
||||||
#debug keys
|
#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")
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user