diff --git a/main.py b/main.py index eeee692..48ca8dd 100644 --- a/main.py +++ b/main.py @@ -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) diff --git a/save.json b/save.json index 3474a86..18be2f4 100644 --- a/save.json +++ b/save.json @@ -1 +1 @@ -{"cash": 904418.0, "owned_baits": ["Worms"], "owned_upgrades": ["Glowing Rod", "Smart Reel", "Clever Reel", "Intelligent Reel", "Genius Reel", "Massive Bobber", "Huge Bobber", "Large Bobber", "Medium Bobber", "Shiny Rod", "Spectral Rod", "Galaxy Rod"], "current_bait": "Worms", "catch_log": []} \ No newline at end of file +{"cash": 863268.0, "owned_baits": ["Worms"], "owned_upgrades": ["Spectral Rod", "Galaxy Rod"], "current_bait": "Worms", "catch_log": []} \ No newline at end of file diff --git a/sprites/surprise.png b/sprites/surprise.png new file mode 100644 index 0000000..28edabb Binary files /dev/null and b/sprites/surprise.png differ