this post was submitted on 28 Nov 2024
44 points (94.0% liked)

Open Source

31359 readers
893 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

also you can test pynotes and pyclock

all 6 comments
sorted by: hot top controversial new old
[โ€“] DeathByDenim 2 points 4 days ago (1 children)

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
[โ€“] okelote360 1 points 4 days ago (1 children)

nope. its work normal but thanks! also can you upgrade my game? i do some big upgrade!

[โ€“] DeathByDenim 1 points 4 days ago

Oh, I see. You fixed that one in 1.2. That wasn't there yet when I commented. :)

Yeah, works great now!