game devs: let's say you have a lot (100+) things of the same type (say magic spells in an RPG). What would you prefer: 1. a class for each, extending a base Spell class 2. a Spell class with a SpellType enum and the Cast() function has a big-ass switch w. case for each spell
-
Show this thread
Replying to @tametick
using python, I find much easier a class for each spell, since is useful also for skilltrees. Like you can type in python to define a class skilltree: PaladinClass=[RaiseDead,Heal,etc] That's what my coder did and they're surely much more skilled than me :P
7:43 AM - 19 Jun 2021
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.