Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

Commit 3f24988

Browse files
version 8.0.0
0 parents  commit 3f24988

File tree

202 files changed

+12252
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+12252
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
spatial.log
2+
spatialos_worker_packages.json
3+
build/
4+
logs/

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# PiratesTutorial
2+
---
3+
4+
*Copyright Improbable 2016*
5+
6+
- *Accompanying Tutorial*: [improbable.io/docs/latest/tutorials/pirates/lesson1](https://improbable.io/docs/latest/tutorials/pirates/lesson1)
7+
8+
- *GitHub Repository*: [github.com/improbable-public/PiratesTutorial](https://github.com/improbable-public/PiratesTutorial)
9+
10+
---
11+
12+
## Introduction
13+
14+
The PiratesTutorial is a [SpatialOS](https://improbable.io/) project with an implementation of a basic pirates game.
15+
16+
You can follow the [accompanying tutorial](https://improbable.io/docs/latest/tutorials/pirates/lesson1) to:
17+
* Learn the concepts underpinning SpatialOS.
18+
* Learn how to set up and use SpatialOS.
19+
* Add new functionality to the game.
20+
21+
To build this project, you will need access to the [SpatialOS SDK](https://spatial.improbable.io/setup), and to have set it up on your machine.
22+
23+
To report bugs or to give feedback on this project, please contact SpatialOS Support.

default_launch.pb.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"javaparams": [
3+
{
4+
"name": "-DCLOUD_LAUNCH_CONFIG",
5+
"value": "AutomaticEngineStartupLaunchConfig"
6+
}
7+
],
8+
9+
"flagz": [
10+
{
11+
"name": "entity_activator",
12+
"value": "improbable.corelib.entity.CoreLibraryEntityActivator"
13+
},
14+
{
15+
"name": "game_world_edge_length",
16+
"value": "8000"
17+
},
18+
{
19+
"name": "resource_based_config_name",
20+
"value": "one-gsim-one-jvm"
21+
}
22+
],
23+
24+
"worker_flagz": [
25+
{
26+
"worker_type": "gsim",
27+
"flagz": [
28+
]
29+
}
30+
]
31+
}
32+

deploy-large.pb.json

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
{
2+
"worker_flagz": [
3+
{
4+
"worker_type": "gsim",
5+
"flagz": [
6+
{
7+
"name": "pirates_max_ships",
8+
"value": "2000"
9+
}
10+
]
11+
}
12+
],
13+
"flagz": [{
14+
"name": "bridge_enable_ping",
15+
"value": "true"
16+
}, {
17+
"name": "engine_automatic_scaling_enabled",
18+
"value": "true"
19+
}, {
20+
"name": "engine_start_timeout_seconds",
21+
"value": "9.999999e+06"
22+
}, {
23+
"name": "entity_activator",
24+
"value": "improbable.corelib.entity.CoreLibraryEntityActivator"
25+
}, {
26+
"name": "game_chunk_size",
27+
"value": "50"
28+
}, {
29+
"name": "game_world_edge_length",
30+
"value": "12000"
31+
}, {
32+
"name": "player_engine_type",
33+
"value": "UnityClient"
34+
},{
35+
"name": "scaling_advisor_num_entities_per_worker",
36+
"value": "100"
37+
},{
38+
"name": "spatial_index_grid_size",
39+
"value": "100"
40+
}],
41+
"javaparams": [{
42+
"name": "-DCLOUD_LAUNCH_CONFIG",
43+
"value": "AutomaticEngineStartupLaunchConfig"
44+
}, {
45+
"name": "-DIGNORE_FLAGS_IN_GAME_PROPERTIES_FILE",
46+
"value": "true"
47+
}, {
48+
"name": "-J-Xms1G"
49+
}, {
50+
"name": "-J-Xmx12G"
51+
}],
52+
"nodes": [{
53+
"name": "master",
54+
"size": "single",
55+
"modules": [{
56+
"name": "ReceptionistModule",
57+
"params": []
58+
}, {
59+
"name": "DevWorldRestApiModule",
60+
"params": []
61+
}, {
62+
"name": "BridgeOracleModule",
63+
"params": []
64+
}, {
65+
"name": "BridgeModuleOracleModule",
66+
"params": []
67+
}, {
68+
"name": "AssetDatabaseModule",
69+
"params": []
70+
}, {
71+
"name": "EngineStartupModuleOracleModule",
72+
"params": []
73+
}, {
74+
"name": "InspectionRestModule",
75+
"params": []
76+
}, {
77+
"name": "PersistenceModule",
78+
"params": []
79+
}, {
80+
"name": "RouterModule",
81+
"params": []
82+
}, {
83+
"name": "WorldAppSupervisorModule",
84+
"params": []
85+
}, {
86+
"name": "WorldAppOracleModule",
87+
"params": []
88+
}, {
89+
"name": "ProfilingModule",
90+
"params": []
91+
}]
92+
}, {
93+
"name": "gsim_bridge",
94+
"size": "octa",
95+
"modules": [{
96+
"name": "GSimBridgeModule",
97+
"params": [{
98+
"name": "gSimNumber",
99+
"value": "1"
100+
}, {
101+
"name": "nee",
102+
"value": "100"
103+
}, {
104+
"name": "nen",
105+
"value": "100"
106+
}, {
107+
"name": "swe",
108+
"value": "-100"
109+
}, {
110+
"name": "swn",
111+
"value": "-100"
112+
}]
113+
},
114+
{
115+
"name": "RouterModule",
116+
"params": []
117+
}]
118+
},{
119+
"name": "fsim",
120+
"size": "quad",
121+
"modules": [{
122+
"name": "EngineStartupModule",
123+
"params": []
124+
},
125+
{
126+
"name": "AssetDatabaseModule",
127+
"params": [
128+
]
129+
}]
130+
},{
131+
"name": "fsim2",
132+
"size": "quad",
133+
"modules": [{
134+
"name": "EngineStartupModule",
135+
"params": []
136+
},
137+
{
138+
"name": "AssetDatabaseModule",
139+
"params": [
140+
]
141+
}]
142+
}]
143+
}
144+
}

deploy-medium.pb.json

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
{
2+
"flagz": [{
3+
"name": "pirates_max_ships",
4+
"value": "200"
5+
}, {
6+
"name": "bridge_enable_ping",
7+
"value": "true"
8+
}, {
9+
"name": "engine_automatic_scaling_enabled",
10+
"value": "true"
11+
}, {
12+
"name": "engine_start_timeout_seconds",
13+
"value": "9.999999e+06"
14+
}, {
15+
"name": "entity_activator",
16+
"value": "improbable.corelib.entity.CoreLibraryEntityActivator"
17+
}, {
18+
"name": "game_chunk_size",
19+
"value": "50"
20+
}, {
21+
"name": "game_world_edge_length",
22+
"value": "12000"
23+
}, {
24+
"name": "player_engine_type",
25+
"value": "UnityClient"
26+
},{
27+
"name": "scaling_advisor_num_entities_per_worker",
28+
"value": "100"
29+
},{
30+
"name": "spatial_index_grid_size",
31+
"value": "100"
32+
}],
33+
"javaparams": [{
34+
"name": "-DCLOUD_LAUNCH_CONFIG",
35+
"value": "AutomaticEngineStartupLaunchConfig"
36+
}, {
37+
"name": "-DIGNORE_FLAGS_IN_GAME_PROPERTIES_FILE",
38+
"value": "true"
39+
}, {
40+
"name": "-J-Xms1G"
41+
}, {
42+
"name": "-J-Xmx12G"
43+
}],
44+
"nodes": [{
45+
"name": "master",
46+
"size": "single",
47+
"modules": [{
48+
"name": "ReceptionistModule",
49+
"params": []
50+
}, {
51+
"name": "DevWorldRestApiModule",
52+
"params": []
53+
}, {
54+
"name": "BridgeOracleModule",
55+
"params": []
56+
}, {
57+
"name": "BridgeModuleOracleModule",
58+
"params": []
59+
}, {
60+
"name": "AssetDatabaseModule",
61+
"params": []
62+
}, {
63+
"name": "EngineStartupModuleOracleModule",
64+
"params": []
65+
}, {
66+
"name": "InspectionRestModule",
67+
"params": []
68+
}, {
69+
"name": "PersistenceModule",
70+
"params": []
71+
}, {
72+
"name": "RouterModule",
73+
"params": []
74+
}, {
75+
"name": "WorldAppSupervisorModule",
76+
"params": []
77+
}, {
78+
"name": "WorldAppOracleModule",
79+
"params": []
80+
}, {
81+
"name": "ProfilingModule",
82+
"params": []
83+
}, {
84+
"name": "EngineStartupModule",
85+
"params": []
86+
}]
87+
}, {
88+
"name": "gsim_bridge",
89+
"size": "single",
90+
"modules": [{
91+
"name": "GSimBridgeModule",
92+
"params": [{
93+
"name": "gSimNumber",
94+
"value": "1"
95+
}, {
96+
"name": "nee",
97+
"value": "100"
98+
}, {
99+
"name": "nen",
100+
"value": "100"
101+
}, {
102+
"name": "swe",
103+
"value": "-100"
104+
}, {
105+
"name": "swn",
106+
"value": "-100"
107+
}]
108+
},
109+
{
110+
"name": "RouterModule",
111+
"params": []
112+
}]
113+
}]
114+
}
115+
}

0 commit comments

Comments
 (0)