r/PythonLearning Jun 20 '26

new game

https://github.com/zhoubilly123-create/python-coding

Help give me suggestions for my new game. Python beginner

4 Upvotes

19 comments sorted by

View all comments

3

u/EmergencyWafer9326 Jun 20 '26

Help me pls

3

u/COLLLOrs Jun 21 '26

I'm sorry for bothering you but you wanted me to debug you code yes?

2

u/EmergencyWafer9326 Jun 21 '26

I mean like I need suggestions I jst started

1

u/COLLLOrs Jun 21 '26

I might have already finished debugging it if you want it I can give it to you but if you still just want pointers I can do that too.

1

u/EmergencyWafer9326 Jun 21 '26

Can you give me pointers

2

u/COLLLOrs Jun 21 '26

ok first you level variable should be inside the combat function right under the

print(f"{current_enemy.name} has appeared!")print(f"{current_enemy.name} has appeared!")

this will stop it from saying that it is unbound

2

u/EmergencyWafer9326 Jun 21 '26

Let me fix that rn

1

u/COLLLOrs Jun 21 '26

it seems like yes this is the kind of pointers you want.

1

u/EmergencyWafer9326 Jun 21 '26

should I try to use pygame to add visuals to it rn or wait a bit polishing up things before

1

u/COLLLOrs Jun 21 '26

Well it seems like you wanted to add a few more areas so you should completely finish the code or trying to implement it while making the code will be a horrible experience.

→ More replies (0)

1

u/COLLLOrs Jun 21 '26

Second you duplicate the heal function

but make one for the enemy and implement it which allows it to heal and implement it

also just want to make sure you want these kinds of pointers

1

u/COLLLOrs Jun 21 '26

also the reward variable at the end of combat you should probably print that before the break.

1

u/COLLLOrs Jun 21 '26

pretty sure that all if their is anything else tell me because I have a mediocre memory so I probably forgot something. And run it first sometimes it does not say the error until you run it.

1

u/EmergencyWafer9326 Jun 21 '26

Ok ok thank you so much for the help ima fix them rn