Cute! ๐
It mostly works. I think line 103 should maybe be:
os.remove(os.path.join(cdata, "teat.txt"))
So, "teat.txt" instead of "eat.txt". I think this prevents the cat from ever getting happy since that line causes an error and it never reaches image.set_from_file(os.path.join(current_dir, "data/happy.png"))
which is very sad!
Actually, you may just want to catch the error if the file happens to not exist. Like this:
try:
os.remove(os.path.join(cdata, "teat.txt"))
except FileNotFoundError:
pass
nope. its work normal but thanks! also can you upgrade my game? i do some big upgrade!
Oh, I see. You fixed that one in 1.2. That wasn't there yet when I commented. :)
Yeah, works great now!
this post was submitted on 28 Nov 2024
52 points (98.1% liked)
Open Source
31696 readers
333 users here now
All about open source! Feel free to ask questions, and share news, and interesting stuff!
Useful Links
- Open Source Initiative
- Free Software Foundation
- Electronic Frontier Foundation
- Software Freedom Conservancy
- It's FOSS
- Android FOSS Apps Megathread
Rules
- Posts must be relevant to the open source ideology
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
- !libre_culture@lemmy.ml
- !libre_software@lemmy.ml
- !libre_hardware@lemmy.ml
- !linux@lemmy.ml
- !technology@lemmy.ml
Community icon from opensource.org, but we are not affiliated with them.
founded 5 years ago
MODERATORS