Skip to content

Commit 71fc32d

Browse files
committed
Initial commit
0 parents  commit 71fc32d

File tree

21 files changed

+692
-0
lines changed

21 files changed

+692
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 TabularElf
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

MultiClient.yyp

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# MultiClient
2+

extensions/MultiClient/multiclient.yy

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
@echo off
2+
rem Settings. Please modify these as needed.
3+
set "NumOfInsts=%YYEXTOPT_MultiClient_Number_Of_Clients%"
4+
set "ExecuteInDebug=%YYEXTOPT_MultiClient_Enable_Debug_Mode%"
5+
set "MaxClients=1"
6+
7+
if %YYPLATFORM_name% NEQ operagx if %YYPLATFORM_name% NEQ HTML5 if %YYPLATFORM_name% NEQ Windows (
8+
echo Multi-Client: This does not work on other platforms at this time.
9+
exit 0
10+
)
11+
12+
rem Main Execution.
13+
if %YYdebug% EQU True (
14+
if %YYPLATFORM_name% NEQ operagx (
15+
if %YYPLATFORM_name% NEQ HTML5 (
16+
echo Multi-Client: Warning - This doesn't fully support debug mode. By default this is off within the extension options!
17+
if %ExecuteInDebug% EQU False (
18+
echo Multi-Client: Workaround not enabled... Exiting safely...
19+
exit 0
20+
) else (
21+
echo Multi-Client: ExecuteInDebug is set to True, will attempt workaround...
22+
set /A NumOfInsts=%NumOfInsts%+4
23+
)
24+
)
25+
)
26+
)
27+
28+
echo Multi-Client: Running instances %YYEXTOPT_MultiClient_Number_Of_Clients%
29+
if %YYPLATFORM_name% EQU HTML5 goto WebClient
30+
if %YYPLATFORM_name% EQU operagx goto WebClient
31+
goto main
32+
:WebClient
33+
set /a "NumOfInsts=%NumOfInsts%-1"
34+
set /a "MaxClients=%MaxClients%+1"
35+
:main
36+
37+
38+
for /l %%x in (1, %MaxClients%, %NumOfInsts%) do (
39+
:: Windows
40+
if %YYPLATFORM_name% EQU Windows (
41+
start /b cmd /C %YYruntimeLocation%\Windows\x64\runner.exe -game "%YYoutputFolder%\%YYprojectName%.win"
42+
)
43+
44+
if %YYPLATFORM_name% EQU HTML5 (
45+
start /b cmd /C explorer "%YYPREF_default_web_address%:%YYPREF_default_webserver_port%"
46+
)
47+
48+
if %YYPLATFORM_name% EQU operagx (
49+
start /b cmd /C "%localappdata%\Programs\Opera GX\opera.exe" http://localhost:%YYPREF_default_webserver_port%/runner.html?game=%YYPLATFORM_option_operagx_game_name%
50+
)
51+
)
52+
53+
if %YYPLATFORM_name% NEQ operagx (
54+
if %YYPLATFORM_name% NEQ HTML5 goto exitIgor
55+
)
56+
goto WebClientExit
57+
:exitIgor
58+
echo Multi-Client: This will exit with a exit code of 1. Igor will "fail". This is intentional.
59+
exit 1
60+
61+
:WebClientExit
62+
echo Multi-Client: Task completed!
63+
exit 0

objects/obj_test/Draw_0.gml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/// @description Insert description here
2+
// You can write your code in this editor
3+
4+
draw_text(32,32, "Woo");

objects/obj_test/Step_0.gml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/// @description Insert description here
2+
// You can write your code in this editor
3+

objects/obj_test/obj_test.yy

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

options/android/options_android.yy

Lines changed: 76 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

options/extensions/MultiClient.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extensionId": null,
3+
"resourceVersion": "1.0",
4+
"resourceType": "GMExtensionConfigSet",
5+
"configurables": {
6+
"5d9f79ea-1b81-4c14-9cdb-bd884ee607e4": {
7+
"Default": {
8+
"value": "2"
9+
}
10+
},
11+
"76c270e6-7809-4838-ade8-701846fc795d": {
12+
"Default": {
13+
"value": "False"
14+
}
15+
},
16+
"c2dbc7f8-515a-443a-b7e7-c7bb0271d8c7": null
17+
}
18+
}

options/html5/options_html5.yy

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)