Skip to content

Commit 6d64534

Browse files
committed
v1.0.16
1 parent 0e1f61c commit 6d64534

Some content is hidden

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

63 files changed

+2779
-1307
lines changed

.github/workflows/deploy.yml

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-and-upload:
13+
name: Build and upload
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
matrix:
18+
include:
19+
- build: macos_x86
20+
os: macos-latest
21+
target: x86_64-apple-darwin
22+
23+
- build: macos_aarch64
24+
os: macos-latest
25+
target: aarch64-apple-darwin
26+
27+
- build: windows
28+
os: windows-latest
29+
target: x86_64-pc-windows-gnu
30+
31+
- build: linux
32+
os: ubuntu-latest
33+
target: x86_64-unknown-linux-musl
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- name: Get the release version from the tag
39+
shell: bash
40+
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
41+
42+
- name: Install alsa.pc on Ubuntu
43+
if: matrix.os == 'ubuntu-latest'
44+
run: sudo apt-get install -y libasound2-dev libudev-dev librust-alsa-sys-dev && export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/
45+
46+
- name: Install Rust
47+
# Or @nightly if you want
48+
uses: dtolnay/rust-toolchain@stable
49+
# Arguments to pass in
50+
with:
51+
# Make Rust compile to our target (defined in the matrix)
52+
targets: ${{ matrix.target }}
53+
54+
- name: Build
55+
run: cargo build --verbose --release --target ${{ matrix.target }}
56+
57+
- name: Run tests
58+
run: cargo test --verbose
59+
60+
- name: Build archive
61+
shell: bash
62+
run: |
63+
binary_name="rebels"
64+
65+
dirname="$binary_name-${{ env.VERSION }}-${{ matrix.target }}"
66+
mkdir "$dirname"
67+
if [ "${{ matrix.os }}" = "windows-latest" ]; then
68+
mv "target/${{ matrix.target }}/release/$binary_name.exe" "$dirname"
69+
else
70+
mv "target/${{ matrix.target }}/release/$binary_name" "$dirname"
71+
fi
72+
73+
if [ "${{ matrix.os }}" = "windows-latest" ]; then
74+
7z a "$dirname.zip" "$dirname"
75+
echo "ASSET=$dirname.zip" >> $GITHUB_ENV
76+
else
77+
tar -czf "$dirname.tar.gz" "$dirname"
78+
echo "ASSET=$dirname.tar.gz" >> $GITHUB_ENV
79+
fi
80+
81+
- name: Release
82+
uses: softprops/action-gh-release@v1
83+
with:
84+
files: |
85+
${{ env.ASSET }}

.github/workflows/rust.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
build:
13+
build-and-test:
1414

1515
runs-on: ubuntu-latest
1616

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rebels"
3-
version = "1.0.15"
3+
version = "1.0.16"
44
edition = "2021"
55

66
[profile.release]

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
It's the year 2101. Corporations have taken over the world.
66
The only way to be free is to join a pirate crew and start plundering the galaxy. The only mean of survival is to play basketball.
77

8-
Now it's your turn to go out there and make a name for yourself. Create your crew and start wondering the galaxy in search of worthy basketball opponents.
8+
Now it's your turn to go out there and make a name for yourself. Create your crew and start wandering the galaxy in search of worthy basketball opponents.
99

1010
The game is under heavy development and breaking changes are often introduced. If you can't continue an old game because the save file is invalid, you probably need to start a new one or open an issue to check if the save file can be migrated.
1111

@@ -17,11 +17,13 @@ Connect via SSH to try the game.
1717

1818
## Download
1919

20-
Compiled binaries of the last release can be downloaded at https://rebels.frittura.org.
20+
Compiled binaries of the last release can be also downloaded at https://rebels.frittura.org.
2121

2222
## Music
2323

24-
Previous versions had the option to play music directly in the game, but this was removed to reduce the binary size. Nevertheless, you can still listen to the game soundtrack by connecting to `https://radio.frittura.org/rebels.ogg`!
24+
Previous versions had the option to play music directly in the game, but this was removed to reduce the binary size and now music is streamed from internet radios. Nevertheless, you can still listen to the game soundtrack directly by connecting to `https://radio.frittura.org/rebels.ogg`!
25+
26+
You can add more radio stations by including them in `assets/data/stream_data.json`.
2527

2628
### Distro Packages
2729

assets/beard/octobeard1.png

-2 Bytes
Loading

assets/data/planets_data.json

+25-40
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
"planet_type": 0,
1515
"satellites": ["71a43700-0000-0000-0001-000000000000", "71a43700-0000-0000-0001-000000000001"],
1616
"satellite_of": null,
17-
"axis": [0.0, 0.0],
18-
"team_ids": []
17+
"axis": [0.0, 0.0]
1918
},
2019
{
2120
"id": "71a43700-0000-0000-0001-000000000000",
@@ -25,7 +24,7 @@
2524
"populations": {},
2625
"resources": {},
2726
"filename": "sol",
28-
"rotation_period": 12,
27+
"rotation_period": 6,
2928
"revolution_period": 180,
3029
"gravity": 100,
3130
"asteroid_probability": 0.0,
@@ -38,8 +37,7 @@
3837
"71a43700-0000-0000-0002-000000000004"
3938
],
4039
"satellite_of": "71a43700-0000-0000-0000-000000000000",
41-
"axis": [30.0, 20.0],
42-
"team_ids": []
40+
"axis": [30.0, 20.0]
4341
},
4442
{
4543
"id": "71a43700-0000-0000-0001-000000000001",
@@ -49,15 +47,14 @@
4947
"populations": {},
5048
"resources": {},
5149
"filename": "proxima",
52-
"rotation_period": 9,
50+
"rotation_period": 3,
5351
"revolution_period": 120,
5452
"gravity": 80,
5553
"asteroid_probability": 0.0,
5654
"planet_type": 1,
5755
"satellites": ["71a43700-0000-0000-0002-000000000005", "71a43700-0000-0000-0002-000000000006"],
5856
"satellite_of": "71a43700-0000-0000-0000-000000000000",
59-
"axis": [45.0, 35.0],
60-
"team_ids": []
57+
"axis": [45.0, 35.0]
6158
},
6259
{
6360
"id": "71a43700-0000-0000-0002-000000000005",
@@ -75,15 +72,14 @@
7572
"4": 2
7673
},
7774
"filename": "weird",
78-
"rotation_period": 18,
75+
"rotation_period": 12,
7976
"revolution_period": 180,
8077
"gravity": 2,
8178
"asteroid_probability": 0.3,
8279
"planet_type": 8,
8380
"satellites": [],
8481
"satellite_of": "71a43700-0000-0000-0001-000000000001",
85-
"axis": [31.0, 69.0],
86-
"team_ids": []
82+
"axis": [31.0, 69.0]
8783
},
8884
{
8985
"id": "71a43700-0000-0000-0002-000000000006",
@@ -100,15 +96,14 @@
10096
"3": 5,
10197
"4": 1},
10298
"filename": "redgreen",
103-
"rotation_period": 18,
99+
"rotation_period": 12,
104100
"revolution_period": 360,
105101
"gravity": 3,
106102
"asteroid_probability": 0.1,
107103
"planet_type": 8,
108104
"satellites": ["71a43700-0000-0000-0003-000000000003", "71a43700-0000-0000-0003-000000000004"],
109105
"satellite_of": "71a43700-0000-0000-0001-000000000001",
110-
"axis": [68.0, 24.0],
111-
"team_ids": []
106+
"axis": [68.0, 24.0]
112107
},
113108
{
114109
"id": "71a43700-0000-0000-0003-000000000003",
@@ -130,8 +125,7 @@
130125
"planet_type": 8,
131126
"satellites": [],
132127
"satellite_of": "71a43700-0000-0000-0002-000000000006",
133-
"axis": [44.0, 44.0],
134-
"team_ids": []
128+
"axis": [44.0, 44.0]
135129
},
136130
{
137131
"id": "71a43700-0000-0000-0003-000000000004",
@@ -153,8 +147,7 @@
153147
"planet_type": 8,
154148
"satellites": [],
155149
"satellite_of": "71a43700-0000-0000-0002-000000000006",
156-
"axis": [40.0, 46.0],
157-
"team_ids": []
150+
"axis": [40.0, 46.0]
158151
},
159152
{
160153
"id": "71a43700-0000-0000-0002-000000000000",
@@ -178,15 +171,14 @@
178171
"4": 4
179172
},
180173
"filename": "earth",
181-
"rotation_period": 12,
174+
"rotation_period": 9,
182175
"revolution_period": 120,
183176
"gravity": 10,
184177
"asteroid_probability": 0.5,
185178
"planet_type": 2,
186179
"satellites": ["71a43700-0000-0000-0003-000000000000"],
187180
"satellite_of": "71a43700-0000-0000-0001-000000000000",
188-
"axis": [22.0, 24.0],
189-
"team_ids": []
181+
"axis": [22.0, 24.0]
190182
},
191183
{
192184
"id": "71a43700-0000-0000-0002-000000000001",
@@ -204,15 +196,14 @@
204196
"3": 6
205197
},
206198
"filename": "lava",
207-
"rotation_period": 12,
199+
"rotation_period": 9,
208200
"revolution_period": 180,
209201
"gravity": 8,
210202
"asteroid_probability": 0.5,
211203
"planet_type": 3,
212204
"satellites": ["71a43700-0000-0000-0003-000000000001", "71a43700-0000-0000-0003-000000000002"],
213205
"satellite_of": "71a43700-0000-0000-0001-000000000000",
214-
"axis": [38.0, 33.0],
215-
"team_ids": []
206+
"axis": [38.0, 33.0]
216207
},
217208
{
218209
"id": "71a43700-0000-0000-0002-000000000002",
@@ -226,15 +217,14 @@
226217
"3": 16
227218
},
228219
"filename": "gas",
229-
"rotation_period": 18,
220+
"rotation_period": 12,
230221
"revolution_period": 360,
231222
"gravity": 25,
232223
"asteroid_probability": 0.95,
233224
"planet_type": 5,
234225
"satellites": [],
235226
"satellite_of": "71a43700-0000-0000-0001-000000000000",
236-
"axis": [46.0, 44.0],
237-
"team_ids": []
227+
"axis": [46.0, 44.0]
238228
},
239229
{
240230
"id": "71a43700-0000-0000-0002-000000000003",
@@ -252,15 +242,14 @@
252242
"3": 8
253243
},
254244
"filename": "ring",
255-
"rotation_period": 18,
245+
"rotation_period": 12,
256246
"revolution_period": 360,
257247
"gravity": 20,
258248
"asteroid_probability": 0.86,
259249
"planet_type": 7,
260250
"satellites": [],
261251
"satellite_of": "71a43700-0000-0000-0001-000000000000",
262-
"axis": [54.0, 42.0],
263-
"team_ids": []
252+
"axis": [54.0, 42.0]
264253
},
265254
{
266255
"id": "71a43700-0000-0000-0002-000000000004",
@@ -274,15 +263,14 @@
274263
"3": 4
275264
},
276265
"filename": "ice",
277-
"rotation_period": 18,
266+
"rotation_period": 12,
278267
"revolution_period": 360,
279268
"gravity": 16,
280269
"asteroid_probability": 0.7,
281270
"planet_type": 4,
282271
"satellites": [],
283272
"satellite_of": "71a43700-0000-0000-0001-000000000000",
284-
"axis": [61.0, 51.0],
285-
"team_ids": []
273+
"axis": [61.0, 51.0]
286274
},
287275
{
288276
"id": "71a43700-0000-0000-0003-000000000000",
@@ -307,8 +295,7 @@
307295
"planet_type": 8,
308296
"satellites": [],
309297
"satellite_of": "71a43700-0000-0000-0002-000000000000",
310-
"axis": [35.0, 34.0],
311-
"team_ids": []
298+
"axis": [35.0, 34.0]
312299
},
313300
{
314301
"id": "71a43700-0000-0000-0003-000000000001",
@@ -334,8 +321,7 @@
334321
"planet_type": 8,
335322
"satellites": [],
336323
"satellite_of": "71a43700-0000-0000-0002-000000000001",
337-
"axis": [35.0, 34.0],
338-
"team_ids": []
324+
"axis": [35.0, 34.0]
339325
},
340326
{
341327
"id": "71a43700-0000-0000-0003-000000000002",
@@ -353,14 +339,13 @@
353339
"4": 2
354340
},
355341
"filename": "deimos",
356-
"rotation_period": 12,
342+
"rotation_period": 9,
357343
"revolution_period": 180,
358344
"gravity": 2,
359345
"asteroid_probability": 0.0,
360346
"planet_type": 8,
361347
"satellites": [],
362348
"satellite_of": "71a43700-0000-0000-0002-000000000001",
363-
"axis": [55.0, 64.0],
364-
"team_ids": []
349+
"axis": [55.0, 64.0]
365350
}
366351
]

assets/data/players_data.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"Melchiorre",
2727
"Vitaliano",
2828
"Gelsomino",
29-
"Manfredi"
29+
"Manfredi",
30+
"Alberobello"
3031
],
3132
"first_names_she": [
3233
"Costantina",

0 commit comments

Comments
 (0)