set specific BASEURL for images

This commit is contained in:
2026-10-08 22:43:57 -04:00
parent 1d7ca8c3af
commit e472800bc9
+5 -3
View File
@@ -438,6 +438,8 @@ def redrawAll(app):
drawDebug(app)
#my self-hosted gitea repo also stores the image files, very convienient
BASE_IMAGE_URL = "https://gitea.lockeshor.com/lockeshor/15112-fishing-miniproject/raw/branch/main/sprites/"
#REMINDERS:
# drawRect(top, left, width, height, fill="color")
@@ -461,12 +463,12 @@ def drawBackground(app):
#image cred: https://pngtree.com/freepng/cartoon-style-illustration-of-a-young-sleeping-men-fishing-on-a-wood-chair_15775817.html
#fisherman
drawImage("https://gitea.lockeshor.com/lockeshor/15112-fishing-miniproject/raw/branch/main/sprites/fisherman.png",
drawImage(BASE_IMAGE_URL + "fisherman.png",
60, app.grassTop - 50 - 140, width=140, height=170)
#image cred: https://www.artstation.com/artwork/xzLbe2
#salesman
drawImage("https://gitea.lockeshor.com/lockeshor/15112-fishing-miniproject/raw/branch/main/sprites/salesman.png",
drawImage(BASE_IMAGE_URL + "salesman.png",
400, app.grassTop - 130, width = 140, height= 160)
#cash
@@ -545,7 +547,7 @@ def drawDebug(app):
mX: {gmouseX}, mY: {gmouseY}
Scene: {app.scene}
fishingTimer: {rounded(app.fishingTimer)}
hookedFish: {app.hookedFish["name"] if app.hookedFish else "N/A"}
hookedFish: {app.hookedFish["name"] if app.hookedFish else "N/A"} @ {app.hookedFish["difficulty"] if app.hookedFish else "N/A"} difficulty
"""
debugLines = debugStr.splitlines()
size = 16