Tagged Questions
0
votes
2answers
346 views
Foreach loop with 2d array of objects
I'm using a 2D array of objects to store data about tiles, or "blocks" in my gameworld. I initialise the array, fill it with data and then attempt to invoke the draw method of each object.
foreach ...
0
votes
2answers
147 views
Why are changes in one object applied to all objects in a list?
I've got two List:
BasicModels: As Content has to be loaded at the start of the game I instanciate and load all models into this list.
ModelsOnScreen: Every time when a Model is added to the screen ...
3
votes
4answers
2k views
Multiple Key Presses in XNA?
I'm actually trying to do something fairly simple.
I cannot get multiple key presses to work in XNA. I've tried the following pieces of code.
else if (keyboardState.IsKeyDown(Keys.Down) && ...
