2

It is growing too many textures/vectors in the "Game1.cs". The Draw and Update are also bigger and not manageable easily. How you guys doing it?

abatishchev
  • 98,240
  • 88
  • 296
  • 433
thsieh
  • 620
  • 8
  • 24

1 Answers1

5

This is a very open ended question. If your code is becoming too complex use additional types to handle specific responsibilities.

For XNA take a look at the GameComponent and DrawableGameComponent classes. That will get you started, but you probably need to introduce additional types. Get a good book on object oriented design to get some ideas.

Brian Rasmussen
  • 114,645
  • 34
  • 221
  • 317