Jump to content

  • Log In with Google      Sign In   
  • Create Account

kalixxx

Member Since 13 Jun 2009
Offline Last Active Nov 13 2012 03:19 PM

Topics I've Started

listview

12 November 2012 - 12:26 AM

ih im using vs10 and i found this listview control.
found how to use most of its feturs (not sure its the best for what i need yet)

but i cant find how to get the item i clickd on!
the listview points to a dictionary. now how do i get a ref bake from what i selected to the dictionary???

ready made key mapper?

09 November 2012 - 11:48 PM

hi guys long time no see (back to programing after YEARS)

before i make one of my own (and after googleing it) i wanted to ask if code for a key mapper exists out there.
i meen the player side prefrence key map that lets to say what key dose what action.

need it for mouse and joysticks too...

if any1 knows of one rolling around out there i would save me a ice amount of time if not... any tips on how to make one?

is this thread safe???

26 December 2010 - 04:20 PM

im thinking of making a part of a game im starting in threads.
but i dont have mach exp in threading and how data moves between them.
in a c# book i have it says the next code if safe.
iw works but im not so sure how this will scale up to big game arrays.

T t;
public int b = 0;

void button1_Click(object sender, EventArgs e)
{
int a = 0;
t = new T();
new Thread(t.run).Start();

while (a < 1000000)
{
a++;
}

label1.Text = a + "";
label2.Text = b + "";
t.stop = true;
a = 0;
}

public class T
{
public int a = 0;
public bool stop = false;

public void run()
{
while (a < 1000000 && stop==false)
{
a++;
Program.f.b = a;
}
a = 0;
}
}

this code just accesses public vars with no locks or anything and "freely" talks between threads. am i wrong here in some way?

sphere on a grid

10 March 2010 - 08:32 AM

ok lets say i got a 3d grid (sectors of the same size) and there is a sphere in it(middle point and radius) i want to know what sectors are in or touching the sphere. like drawing a circle only in 3d. http://en.wikipedia.org/wiki/Midpoint_circle_algorithm i looked on the net and i think there is a name for this and im just asking the wrong question!

sphere on a grid

10 March 2010 - 12:31 AM

ok lets say i got a 3d grid (sectors of the same size) and there is a sphere in it(middle point and radius) i want to know what sectors are in or touching the sphere. i looked on the net and i think there is a name for this and im just asking the wrong question!

PARTNERS