Search found 2 matches

by dandypants
Thu Jun 11, 2015 5:25 pm
Forum: General
Topic: Enemy table vs inheritence
Replies: 5
Views: 2438

Re: Enemy table vs inheritence

Thanks - that makes a lot of sense and keeps it much more organized. I'm leaning towards this sense my game is so simple and I think I can get away without using classes etc.
by dandypants
Thu Jun 11, 2015 4:42 pm
Forum: General
Topic: Enemy table vs inheritence
Replies: 5
Views: 2438

Enemy table vs inheritence

I'm making a simple game and I'll have a few types of enemies with slightly different properties (amount of health, damage, etc). How are people handling this? I can think of two options: having a number of tables like enemyHealth, enemyDamage etc that store these values or to go with classes and in...