New answers tagged

3

Typically for a pure data change like this, we would not use separate classes. Instead, you could make your class non-abstract (say "BasicMob" to leave room if you need more complex mob classes in future) and give it one or several Factory Methods that populate the data of your mob to make a specific variant. eg.. public static BasicMob CreateFireElemental(...


-1

You can use my script for converting 3d 3dsmax animations to spritesheets Link: https://github.com/kalevski/maxSpriter


0

I am not going to write the pseudo code for you, but I can tell you what I would have done creating the game. Keep the Car and the Field as different classes. The Field can have zero or more instances of a Car. Either use an Array of cars, or a map of cars, where the carId is the key. It is totally up to you. If the texture of the car is field dependent, ...


Top 50 recent answers are included