push surprise png, continue work on display logic
This commit is contained in:
@@ -595,28 +595,35 @@ def drawCatchDisplay(app):
|
|||||||
# Stays up until dismissed by a click (handled in onMousePress). Read-only.
|
# Stays up until dismissed by a click (handled in onMousePress). Read-only.
|
||||||
|
|
||||||
#dimming
|
#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
|
#draw creature/error
|
||||||
imgWidth = 200
|
imgWidth = 300
|
||||||
imgHeight = 150
|
|
||||||
if app.hookedFish != None:
|
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.width // 2,
|
||||||
app.height // 2,
|
app.height // 2 - 50,
|
||||||
align = "center",
|
align = "center",
|
||||||
width=imgWidth,
|
width=imgWidth,
|
||||||
height=imgHeight,
|
height=imgHeight,
|
||||||
rotateAngle = math.sin(app.timeSinceInit) * 10)
|
rotateAngle = math.sin(app.timeSinceInit / 20) * 10)
|
||||||
else:
|
else:
|
||||||
#Image Cred: https://freepngimg.com/png/13474-fail-stamp-free-download-png
|
#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",
|
drawImage(BASE_IMAGE_URL + "fail.png",
|
||||||
app.width // 2,
|
app.width // 2,
|
||||||
app.height // 2,
|
app.height // 2 - 50,
|
||||||
align = "center",
|
align = "center",
|
||||||
width=imgWidth,
|
width=imgWidth,
|
||||||
height=imgHeight,
|
height=imgHeight,
|
||||||
)#rotateAngle = math.sin(app.timeSinceInit) * 10)
|
rotateAngle = math.sin(app.timeSinceInit / 2) * 30 - 15)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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": []}
|
{"cash": 863268.0, "owned_baits": ["Worms"], "owned_upgrades": ["Spectral Rod", "Galaxy Rod"], "current_bait": "Worms", "catch_log": []}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
Reference in New Issue
Block a user