-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdogfight0.json
More file actions
112 lines (112 loc) · 2.17 KB
/
dogfight0.json
File metadata and controls
112 lines (112 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"size": {"x": 2000, "y": 1000},
"scroll": {"x": 0, "y": 200},
"rewards": [],
"startPoint": {
"radius": 100,
"pos": {"x": 150, "y": 400}
},
"immediateEvents": [ "AnnounceChallenge" ],
"events": {
"AnnounceChallenge": {
"actions": [
{
"type": "Announcement",
"properties": {
"text": "Dogfighting Challenge 1: Ranger VS Ranger"
}
},
{
"type": "Announcement",
"properties": {
"text": "Use the arrow keys and space or WASD and J to fly the Ranger."
}
}
]
},
"AnnounceVictory": {
"actions": [
{
"type": "Announcement",
"properties": {
"text": "Nice shooting!"
}
},
{
"type": "Timer",
"properties": {
"timeout": 2,
"event": "Victory"
}
}
]
},
"AnnounceDefeat": {
"actions": [
{
"type": "Announcement",
"properties": {
"text": "You were destroyed. Respawning in 1 second."
}
},
{
"type": "Timer",
"properties": {
"timeout": 1,
"event": "Respawn"
}
}
]
},
"Victory": {
"actions": [
{ "type": "LevelComplete" }
]
},
"Respawn": {
"actions": [
{
"type": "ReloadLevel"
}
]
}
},
"triggers": [
{
"type": "AllShipsDestroyed",
"properties": {
"team": 1,
"event": "AnnounceVictory"
}
}
],
"objects": [
{
"type": "Ship",
"properties": {
"ship": {
"type": "Ranger",
"team": 0,
"pos": {"x": 200, "y": 450}
},
"triggers": [
{
"condition": "destroyed",
"event": "AnnounceDefeat"
}
],
"manualPilot": true
}
},
{
"type": "ShipCluster",
"properties": {
"type": "Ranger",
"team": 1,
"size": {"x": 50, "y": 50},
"pos": {"x": 1650, "y": 400},
"count": 1
}
}
]
}