@@ -93,8 +93,7 @@ public void runLoop() {
9393 }
9494 HashMap <String , Object > data = new HashMap <>();
9595 data .put ("caller" , obj .getUUID ());
96- Event e = new Event (Event .EVENT_PHYSICS ,
97- globalTimeline .getCurrentTime () + (long ) physicsTimeline .getTickSize (), data );
96+ Event e = new Event (Event .EVENT_PHYSICS , physicsTimeline .getCurrentTime (), data );
9897 eventManager .raiseEvent (e );
9998 }
10099
@@ -117,7 +116,6 @@ private void gameLoop(boolean delta) {
117116 if (delta ) {
118117 if (this .isServer ) {
119118 this .updateEvent (eventTimeline .resetDelta ());
120- // this.updatePhysics(physicsTimeline.getAndResetDelta());
121119 this .updateNetwork (networkTimeline .resetDelta ());
122120 }
123121 this .updateRender (renderTimeline .resetDelta ());
@@ -177,7 +175,6 @@ public void setup() {
177175 objects .add (this .rightWall );
178176 objectMap .put (this .rightWall .getUUID (), this .rightWall );
179177
180-
181178
182179 /**
183180 * Begin game definitions
@@ -206,7 +203,7 @@ public void setup() {
206203 /**
207204 * End game definitions
208205 */
209-
206+
210207
211208 // Server
212209 this .server = new Server (this , 9200 , Rectangles .threadPool , player );
@@ -295,9 +292,6 @@ public boolean isSetup() {
295292
296293 public void setPlayer (Player p ) {
297294 player = p ;
298- objectMap .put (player .getUUID (), player );
299- objects .add (player );
300- movObjects .add (player );
301295 }
302296
303297 // API stuff from https://happycoding.io/tutorials/java/processing-in-java
0 commit comments