M
Malcolm
I'm writing a fight engine for a fantasy role-playing game.
The program involves monsters of various types as well as player characters,
using different weapons and also casting spells. There will also be objects
in the game which the characters can interact with, for instance if a spear
is thrown it will lie on the ground, ready to be picked up.
The problem is that the program needs to be extended so that everytime
someone come up with a new idea, say a new monster or a moving platform, it
can be easily incorporated.
I have to use either C or C++, and I've decided to do with C.
Has anyone designed a similar program? Any advice on how to go about it?
The program involves monsters of various types as well as player characters,
using different weapons and also casting spells. There will also be objects
in the game which the characters can interact with, for instance if a spear
is thrown it will lie on the ground, ready to be picked up.
The problem is that the program needs to be extended so that everytime
someone come up with a new idea, say a new monster or a moving platform, it
can be easily incorporated.
I have to use either C or C++, and I've decided to do with C.
Has anyone designed a similar program? Any advice on how to go about it?