Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Character class inheritance

$
0
0

@juju wrote:

I realize this might not be exactly a Monogame-exclusive quesion, but I'm no sure where else to go.

I'm trying to have the following:
-A "Character" class, from which I can inherit to create a few different characters
-Five characters inheriting from the Character class
-A way to spawn those five characters and assign each to a controller (four joysticks and the keyboard, that is).

How can I go about this? What should those classes look like?

I already have a character with texture, animations, behaviour, etc. But how do I inherit others, with different sprites and input, from it?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles