Posts tagged x86

Static Multidimensional Array!?


This is the first time I made a static multidimensional array, moreso, one with 3 dimensions. I’m still experimenting to find out how efficient this is, but so far it is proving to be extremely efficient as its structured so indexing it uses enum’s that correspond to the right data you want. There were some comments and stuff describing which block did what but I’m not allowed to discuss the project this is for so I had to remove them. Its also indented nicely but WordPress owned my indentation.

static Vector2[][][] StaticData=
{
new Vector2[][]
{
new Vector2[]
{
new Vector2(500,534),
new Vector2(582,534),
new Vector2(663,533),
new Vector2(746,534),
},
new Vector2[]
{
new Vector2(500,87),
new Vector2(582,87),
new Vector2(663,86),
new Vector2(746,87),
},
},
new Vector2[][]
{
new Vector2[]
{
new Vector2(582,445),
new Vector2(663,445),
new Vector2(582,561),
new Vector2(663,561),
},
new Vector2[]
{
new Vector2(582,50),
new Vector2(663,50),
new Vector2(582,165),
new Vector2(663,165),
},
}, Read the rest of this entry »

When compiling XNA on an x64 machine…

FOR THE LOVE OF GOD REMEMBER TO COMPILE WITH x86 AS YOUR PLATFORM TARGET.
I forgot about this and wasted an hour of debugging.

Right click your project -> Properties -> Build -> Platform Target -> x86


Video & Audio Comments are proudly powered by Riffly