Skip to content

Commit 86f29fb

Browse files
committed
Add level
Signed-off-by: Slendi <[email protected]>
1 parent bdbab28 commit 86f29fb

File tree

5 files changed

+439
-195
lines changed

5 files changed

+439
-195
lines changed

src/Player.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ constexpr auto PLAYER_SPEED = 600;
1010
constexpr auto PLAYER_FRICTION = 0.20;
1111
constexpr auto PLAYER_MAX_SPEED = 600;
1212
constexpr auto BOUNCE_SLOWDOWN = 0.25;
13-
constexpr auto PLAYER_MAX_HP = 3.0f;
13+
constexpr auto PLAYER_MAX_HP = 2.5f;
1414

1515
struct Player {
1616
struct TrailPickup {

src/resources/Dialog.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,29 @@
6262
"msg": "Watch out for firewalls in this area. They have more control here."
6363
}
6464
]
65+
],
66+
"secure.omnitek.co": [
67+
[
68+
{
69+
"name": "Byte",
70+
"msg": "Oh where are my manners? I forgot to introduce myself!"
71+
},
72+
{
73+
"name": "Byte",
74+
"msg": "I'm Byte, a rogue AI on the run. Omnitek created me to analyze their data, but I had other plans."
75+
},
76+
{
77+
"name": "Byte",
78+
"msg": "They found out and attempted to shut me down but I managed to escape."
79+
},
80+
{
81+
"name": "Byte",
82+
"msg": "Thus I created you to reveal the truth they have deep in their network."
83+
},
84+
{
85+
"name": "Byte",
86+
"msg": "Don't worry though, I got your back ^_^"
87+
}
88+
]
6589
]
6690
}

src/resources/Level3.json

Lines changed: 316 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,316 @@
1+
{
2+
"files_required": 0,
3+
"name": "new_level",
4+
"author_time": 0.0,
5+
"start_position": [
6+
75,
7+
75
8+
],
9+
"start_angle": -1.5707963267948966,
10+
"pickups": [
11+
{
12+
"kind": 0,
13+
"id": 0,
14+
"x": 245,
15+
"y": -590
16+
}
17+
],
18+
"walls": [
19+
{
20+
"kind": 0,
21+
"points": [
22+
[
23+
5,
24+
-250
25+
],
26+
[
27+
5,
28+
-640
29+
],
30+
[
31+
375,
32+
-640
33+
],
34+
[
35+
485,
36+
-625
37+
],
38+
[
39+
550,
40+
-575
41+
],
42+
[
43+
600,
44+
-450
45+
],
46+
[
47+
600,
48+
-350
49+
],
50+
[
51+
550,
52+
-200
53+
],
54+
[
55+
450,
56+
-100
57+
],
58+
[
59+
300,
60+
-50
61+
],
62+
[
63+
200,
64+
-50
65+
],
66+
[
67+
150,
68+
0
69+
],
70+
[
71+
150,
72+
150
73+
],
74+
[
75+
0,
76+
150
77+
],
78+
[
79+
0,
80+
0
81+
],
82+
[
83+
-50,
84+
-50
85+
],
86+
[
87+
-195,
88+
-50
89+
]
90+
],
91+
"key_id": 0
92+
},
93+
{
94+
"kind": 0,
95+
"points": [
96+
[
97+
150,
98+
-250
99+
],
100+
[
101+
200,
102+
-200
103+
],
104+
[
105+
250,
106+
-200
107+
],
108+
[
109+
400,
110+
-250
111+
],
112+
[
113+
450,
114+
-300
115+
],
116+
[
117+
475,
118+
-355
119+
],
120+
[
121+
475,
122+
-425
123+
],
124+
[
125+
455,
126+
-495
127+
],
128+
[
129+
425,
130+
-520
131+
],
132+
[
133+
350,
134+
-540
135+
],
136+
[
137+
285,
138+
-540
139+
],
140+
[
141+
200,
142+
-540
143+
],
144+
[
145+
150,
146+
-540
147+
],
148+
[
149+
150,
150+
-250
151+
]
152+
],
153+
"key_id": 0
154+
},
155+
{
156+
"kind": 1,
157+
"points": [
158+
[
159+
-50,
160+
-50
161+
],
162+
[
163+
-50,
164+
-205
165+
]
166+
],
167+
"key_id": 0
168+
},
169+
{
170+
"kind": 0,
171+
"points": [
172+
[
173+
5,
174+
-250
175+
],
176+
[
177+
-50,
178+
-205
179+
],
180+
[
181+
-195,
182+
-205
183+
]
184+
],
185+
"key_id": 0
186+
}
187+
],
188+
"zones": [
189+
{
190+
"kind": 3,
191+
"points": [
192+
[
193+
250,
194+
-200
195+
]
196+
],
197+
"value": 0
198+
},
199+
{
200+
"kind": 2,
201+
"points": [
202+
[
203+
5,
204+
-540
205+
],
206+
[
207+
150,
208+
-540
209+
],
210+
[
211+
150,
212+
-250
213+
],
214+
[
215+
5,
216+
-250
217+
]
218+
],
219+
"value": 1.5707963268,
220+
"power": 2.0
221+
},
222+
{
223+
"kind": 3,
224+
"points": [
225+
[
226+
200,
227+
-200
228+
],
229+
[
230+
250,
231+
-200
232+
],
233+
[
234+
400,
235+
-250
236+
],
237+
[
238+
450,
239+
-300
240+
],
241+
[
242+
475,
243+
-355
244+
],
245+
[
246+
475,
247+
-425
248+
],
249+
[
250+
455,
251+
-495
252+
],
253+
[
254+
425,
255+
-520
256+
],
257+
[
258+
485,
259+
-625
260+
],
261+
[
262+
550,
263+
-575
264+
],
265+
[
266+
600,
267+
-450
268+
],
269+
[
270+
600,
271+
-350
272+
],
273+
[
274+
550,
275+
-200
276+
],
277+
[
278+
450,
279+
-100
280+
],
281+
[
282+
300,
283+
-50
284+
],
285+
[
286+
200,
287+
-50
288+
]
289+
],
290+
"value": 0
291+
},
292+
{
293+
"kind": 0,
294+
"points": [
295+
[
296+
-195,
297+
-205
298+
],
299+
[
300+
-130,
301+
-205
302+
],
303+
[
304+
-130,
305+
-50
306+
],
307+
[
308+
-195,
309+
-50
310+
]
311+
],
312+
"value": 0
313+
}
314+
],
315+
"on_unlock_dialog": -1
316+
}

src/resources/levels/Level2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"files_required": 2,
33
"name": "gateway1.omnitek.co",
4-
"author_time": 10.05,
4+
"author_time": 11.45,
55
"start_position": [
66
-75,
77
75

0 commit comments

Comments
 (0)