Code:
pacPos.dwSize = sizeof(PacketPosition);
pacPos.dwType = PACKET_TYPE_POSITION;
pacPos.fx = PlayerInfo[g_iMyPlayerId].x;
pacPos.fy = PlayerInfo[g_iMyPlayerId].y;
packet = (VOID*)&pacPos;
hReturn = hrSendPeerMessage(-1,PACKET_TYPE_POSITION,packet);
...
Code:
vUpdateNetwork();
DrawGLScene(); // Draw The Scene
SwapBuffers(hDC); // Swap Buffers (Double Buffering)
this code wont let me set a position for player one or player two, they both start at zero...
i also would like to have someone help me optimize this program. its very small so if you would like to help email me at [email protected]