Working on implementing server side physics on gam
This commit is contained in:
1 parent
1348efb5fe
commit
e0453db063
8 files changed
+42
-69
No files matched your search
+2
-2
@@ -51,7 +51,7 @@ namespace ZL {
|
||||
void handleUp(int mx, int my);
|
||||
void handleMotion(int mx, int my);
|
||||
|
||||
void updateRemotePlayers(float deltaMs);
|
||||
void extrapolateRemotePlayers(float deltaMs);
|
||||
|
||||
SDL_Window* window;
|
||||
SDL_GLContext glContext;
|
||||
@@ -64,7 +64,7 @@ namespace ZL {
|
||||
std::vector<BoxCoords> boxCoordsArr;
|
||||
std::vector<VertexRenderStruct> boxRenderArr;
|
||||
|
||||
std::unordered_map<int, RemotePlayer> latestRemotePlayers;
|
||||
std::unordered_map<int, ClientState> latestRemotePlayers;
|
||||
|
||||
static const size_t CONST_TIMER_INTERVAL = 10;
|
||||
static const size_t CONST_MAX_TIME_INTERVAL = 1000;
|
||||
|
||||
Reference in new issue
Block a user