replace with multiplayer-coop files
This commit is contained in:
44
src/TEST_MULTIPLAYER.bat
Normal file
44
src/TEST_MULTIPLAYER.bat
Normal file
@@ -0,0 +1,44 @@
|
||||
@echo off
|
||||
REM Easy Multiplayer Testing Script for Windows
|
||||
REM This script launches 3 instances: 1 host and 2 clients
|
||||
|
||||
echo Starting Multiplayer Test...
|
||||
echo.
|
||||
|
||||
REM Set your Godot executable path here
|
||||
set GODOT_PATH="C:\Program Files\Godot\godot.exe"
|
||||
|
||||
REM Set your project path
|
||||
set PROJECT_PATH="C:\dev\godot\multiplayer-coop"
|
||||
|
||||
REM Check if Godot exists
|
||||
if not exist %GODOT_PATH% (
|
||||
echo Error: Godot not found at %GODOT_PATH%
|
||||
echo Please edit this script and set the correct GODOT_PATH
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo [1/3] Starting HOST...
|
||||
start "Multiplayer Host" %GODOT_PATH% --path %PROJECT_PATH% -- --host
|
||||
|
||||
REM Wait a bit for host to start
|
||||
timeout /t 2 /nobreak >nul
|
||||
|
||||
echo [2/3] Starting CLIENT 1...
|
||||
start "Multiplayer Client 1" %GODOT_PATH% --path %PROJECT_PATH% -- --join
|
||||
|
||||
REM Wait a bit
|
||||
timeout /t 1 /nobreak >nul
|
||||
|
||||
echo [3/3] Starting CLIENT 2...
|
||||
start "Multiplayer Client 2" %GODOT_PATH% --path %PROJECT_PATH% -- --join
|
||||
|
||||
echo.
|
||||
echo All instances launched!
|
||||
echo - 1 Host
|
||||
echo - 2 Clients
|
||||
echo.
|
||||
echo Close this window or press any key to exit...
|
||||
pause >nul
|
||||
|
||||
Reference in New Issue
Block a user