Re: Skills and enemies in Python?

In game development, You might think that some of your ways of coding might be wrong due to the large amount of code you write, but in fact you're usually doing it right. i'm talking about the OOP approach. This will work just fine, and is pretty much human readable. If you want to output the skills name to show the player what skills they have you can just add a __str__ function to your class and print the relevant stuff that way. For example as simple as this:
for x in skills:
menuitems.append(str(x))
create_menu(menuitems)
Done, You have all the info in a menu. Generally the amount and complexity of code doesn't matter as long as your code does what you want, and is optimized.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector

Reply via email to