|
@@ -55,6 +55,6 @@ public static void main(String[] args) {
|
|
|
Okay, so you can now start your game in a headless "`server mode`", where to go from here?
|
|
|
|
|
|
* Parse `String[] args` from the `main`-method to enable server mode on demand (e.g. start your server like `java -jar mygame.jar –server`.
|
|
|
-* Integrate xref:networking.adoc.adoc[SpiderMonkey], to provide game updates to the server over a network.
|
|
|
+* Integrate xref:networking.adoc[SpiderMonkey], to provide game updates to the server over a network.
|
|
|
* Only execute code that's needed. (E.g. place all rendering code inside an `if (servermode)`-block) (or `if (!servermode)` for the client).
|
|
|
* Add decent xref:tutorials:how-to/java/logging.adoc[logging] so your server actually makes sense.
|