push surprise png, continue work on display logic

This commit is contained in:
2026-10-09 00:33:54 -04:00
parent 1010be435a
commit 9f3bde4fe8
3 changed files with 16 additions and 9 deletions
+15 -8
View File
@@ -595,28 +595,35 @@ def drawCatchDisplay(app):
# Stays up until dismissed by a click (handled in onMousePress). Read-only.
#dimming
drawRect(0,0,app.width,app.height,opacity=70)
drawRect(0,0,app.width,app.height,opacity=75)
#star of surprise (turns out I cant make a star with assymetric height/width, so ill have to use an image)
drawImage(BASE_IMAGE_URL + "surprise.png", app.width // 2, app.height // 2)
#draw creature/error
imgWidth = 200
imgHeight = 150
imgWidth = 300
if app.hookedFish != None:
drawImage(BASE_IMAGE_URL + f"fish/{creature["sprite-file"]}",
trueimgW, trueimgH = getImageSize(BASE_IMAGE_URL + f"fish/{app.hookedFish["sprite-file"]}")
imgHeight = imgWidth * (trueimgH / trueimgW)
drawImage(BASE_IMAGE_URL + f"fish/{app.hookedFish["sprite-file"]}",
app.width // 2,
app.height // 2,
app.height // 2 - 50,
align = "center",
width=imgWidth,
height=imgHeight,
rotateAngle = math.sin(app.timeSinceInit) * 10)
rotateAngle = math.sin(app.timeSinceInit / 20) * 10)
else:
#Image Cred: https://freepngimg.com/png/13474-fail-stamp-free-download-png
trueimgW, trueimgH = getImageSize(BASE_IMAGE_URL + "fail.png")
imgHeight = imgWidth * (trueimgH / trueimgW)
drawImage(BASE_IMAGE_URL + "fail.png",
app.width // 2,
app.height // 2,
app.height // 2 - 50,
align = "center",
width=imgWidth,
height=imgHeight,
)#rotateAngle = math.sin(app.timeSinceInit) * 10)
rotateAngle = math.sin(app.timeSinceInit / 2) * 30 - 15)