Search found 721 matches
- May 29th, 2018, 3:25 am
- Forum: Everything
- Topic: Fuck Discord. Hi I'm Brook,
- Replies: 18
- Views: 5906
Re: Fuck Discord. Hi I'm Brook,
looks like albinopapa beat me to the punch... I always do things in order of input( be it user or AI ) , re-calculate the updated position then draw it. (repeating myself here) ..
- May 29th, 2018, 3:20 am
- Forum: Everything
- Topic: Fuck Discord. Hi I'm Brook,
- Replies: 18
- Views: 5906
Re: Fuck Discord. Hi I'm Brook,
In your case the order of operations is ... user input then update the redicle to new position then draw it at that location.
- May 26th, 2018, 3:31 am
- Forum: Everything
- Topic: Quick question about commenting code.
- Replies: 3
- Views: 1748
- May 23rd, 2018, 12:33 am
- Forum: Everything
- Topic: Key press release
- Replies: 11
- Views: 4292
Re: Key press release
OK, i'll try not to post any irrelevant info.
Peace Out
Peace Out
- May 22nd, 2018, 3:31 am
- Forum: Everything
- Topic: Key press release
- Replies: 11
- Views: 4292
Re: Key press release
I used to do something like this void HandleInput() { static bool space_key_is_down = false;// static initialized to false if(!space_key_is_down/*if not already down*/ & wnd.kbd.KeyIsPressed(VK_SPACE)) // so space_key_is_down is false and wnd.kbd.KeyIsPressed(VK_SPACE) is true { //do stuff } // rese...
- May 21st, 2018, 4:10 am
- Forum: Everything
- Topic: I cannut fend de prroblem. Acistence requieired.
- Replies: 10
- Views: 3739
Re: I cannut fend de prroblem. Acistence requieired.
Array[#] = {#} is assigning the array at index # to the variable {#} ... don't know why you used # .. in other words Array[0] = {0x32} 0x32 is hex for char 2 i believe.. just an example
- May 18th, 2018, 1:15 pm
- Forum: Everything
- Topic: recursion ... anyone remember the video?
- Replies: 4
- Views: 1790
Re: recursion ... anyone remember the video?
one of yours .. i think it was the memesweeper?.. i think.. I look again tonight. Mainly just need to know how to stop it at a particular iteration.
- May 17th, 2018, 2:09 am
- Forum: Everything
- Topic: recursion ... anyone remember the video?
- Replies: 4
- Views: 1790
Re: recursion ... anyone remember the video?
a static vector/function which effects all nodes void PartitionNode::Init() { m_static_child_build_array.resize(8); // top 4 m_static_child_build_array[0] = { 1,1,-1 }; m_static_child_build_array[1] = { -1,1,-1 }; m_static_child_build_array[2] = { 1,1,1 }; m_static_child_build_array[3] = { -1,1,1 };...
- May 17th, 2018, 2:07 am
- Forum: Everything
- Topic: recursion ... anyone remember the video?
- Replies: 4
- Views: 1790
recursion ... anyone remember the video?
I am trying to split a cube into 8ths with recursion for child nodes. I only want 4 recursions and i know i watched a video on it. anyone remember which one it is? .. doing an octtree sorta thing for partitoning.
- May 5th, 2018, 4:00 pm
- Forum: Everything
- Topic: How to multithread like a pro!
- Replies: 5
- Views: 2194
Re: How to multithread like a pro!
My first real attempt at threading was to do pathfinding with std::future. I used to select a bunch of objects and get them to find a path. It would pause the game for a second while doing so. After I tried putting the pathfinding in a thread if did speed things up a whole lot but sometimes it would...