NinjaSnowWar.sh 819 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. # To avoid cacophony of multiple background music when testing with multiple connections on the same test machine,
  3. # start all the other non-headless connections with '-nobgm' argument.
  4. # E.g. 1 - headless server
  5. # Start the server with "./NinjaSnowWar.sh -headless -server"
  6. # Start the first client with "./NinjaSnowWar.sh -w -address `hostname`"
  7. # Start the subsequent clients on the same host with "./NinjaSnowWar.sh -w -nobgm -address `hostname`"
  8. #
  9. # E.g. 2 - non-headless server
  10. # Start the server with "./NinjaSnowWar.sh -w -server"
  11. # Start the client on the same host with "./NinjaSnowWar.sh -w -nobgm -address `hostname`"
  12. #
  13. if [ -d $(dirname $0)/../share/Urho3D/Resources ]; then OPT1="-pp ../share/Urho3D/Resources"; fi
  14. $(dirname $0)/Urho3DPlayer Scripts/NinjaSnowWar.as $OPT1 $@