Skip to content

Commit 196844f

Browse files
committed
Merge branch 'master' of https://github.com/SuperTux/supertux into real-master
2 parents 4795450 + 364a199 commit 196844f

File tree

429 files changed

+67460
-62666
lines changed

Some content is hidden

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

429 files changed

+67460
-62666
lines changed

.github/workflows/bsd.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
runs-on: macos-10.15
4040
steps:
41-
- uses: actions/checkout@v2
41+
- uses: actions/checkout@v4
4242
with:
4343
# Fetch the whole tree so git describe works
4444
fetch-depth: 0
@@ -79,5 +79,4 @@ jobs:
7979
# TODO: Uncomment whenever possible
8080
make -j3 VERBOSE=1
8181
make install DESTDIR="/tmp/supertux" VERBOSE=1
82-
./test_supertux2
83-
actions/checkout@v4
82+
./test_supertux2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SuperTux
2+
# Copyright (C) 2024 Tobias Markus
3+
#
4+
# This program is free software; you can redistribute it and/or
5+
# modify it under the terms of the GNU General Public License
6+
# as published by the Free Software Foundation; either version 3
7+
# of the License, or (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with this program; if not, write to the Free Software
16+
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17+
18+
name: translation_templates
19+
on:
20+
workflow_dispatch:
21+
22+
jobs:
23+
update-all-templates:
24+
runs-on: ubuntu-20.04
25+
steps:
26+
- name: Checkout SuperTux repository
27+
uses: actions/checkout@v4
28+
with:
29+
repository: 'SuperTux/supertux'
30+
fetch-depth: 0
31+
32+
- name: Update translation templates
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
run: |
36+
# Update packages
37+
sudo apt-get update
38+
sudo apt-get install -y gettext
39+
40+
# Checkout master to make git describe work
41+
git checkout master
42+
43+
# Update translation templates:
44+
chmod +x makepot.sh
45+
sh ./makepot.sh
46+
47+
# Commit
48+
git status
49+
git config --global user.email "[email protected]"
50+
git config --global user.name "SuperTux Bot"
51+
git commit -am "Update translation templates" || true
52+
git push https://git:[email protected]/SuperTux/supertux.git master

.github/workflows/windows.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
arch: [x64, x86]
35-
build_type: [Debug, Release]
35+
build_type: [Debug, RelWithDebInfo]
3636
glbinding: [OFF] # [ON, OFF] # FIXME: Fix Windows glbinding builds
3737
include:
38-
- build_type: Release
38+
- build_type: RelWithDebInfo
3939
arch: x64
4040
glbinding: OFF
4141
release: ON
42-
- build_type: Release
42+
- build_type: RelWithDebInfo
4343
arch: x86
4444
glbinding: OFF
4545
release: ON

INSTALL.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ Once all of these are installed; you may install dependencies with vcpkg. In any
248248
```
249249
./bootstrap-vcpkg.bat -disableMetrics
250250
./vcpkg integrate install
251-
./vcpkg install --triplet=x86-windows gtest curl freetype glew libogg libraqm libvorbis openal-soft sdl2 sdl2-image[libjpeg-turbo] glm zlib
251+
./vcpkg install --triplet=x64-windows gtest curl freetype glew libogg libraqm libvorbis openal-soft sdl2 sdl2-image[libjpeg-turbo] glm zlib
252252
```
253253

254-
**Note:** If you wish to produce 64-bit builds, replace `--triplet=x86-windows` with `--triplet=x64-windows`.
254+
**Note:** If you wish to produce 32-bit builds, replace `--triplet=x64-windows` with `--triplet=x86-windows`.
255255

256256
Once dependencies are installed:
257257

@@ -261,16 +261,15 @@ Once dependencies are installed:
261261

262262
3. Open a console window and navigate to the `build` directory.
263263

264-
5. Run `cmake .. -A Win32 -DCMAKE_BUILD_TYPE=Release -DVCPKG_BUILD=ON -DCMAKE_TOOLCHAIN_FILE=C:/PATH/TO/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x86-windows`.
264+
5. Run `cmake .. -DCMAKE_BUILD_TYPE=Release -DVCPKG_BUILD=ON -DCMAKE_TOOLCHAIN_FILE=C:/PATH/TO/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows`.
265265

266266
**Make sure to change the path to vcpkg to the actual path to vcpkg on your system!**
267267

268268
Options:
269-
- `-A Win32` tells CMake to produce 32-bit executables. To produce 64-bit executables, you may either replace `Win32` with `x64`, or omit this argument entirely (remove everything, including the `-A`).
270269
- `-DCMAKE_BUILD_TYPE=Release` creates a Release build, which does not contain debug information and runs faster. You may also produce `Debug` builds, but these run significantly slower. Other options may be available, such as `RelWithDebInfo` and `MinSizeRel`, but they are not tested. [More info](https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html)
271270
- `-DVCPKG_BUILD=ON` tells SuperTux to use vcpkg to find dependencies.
272271
- `-DCMAKE_TOOLCHAIN_FILE=C:/PATH/TO/vcpkg/scripts/buildsystems/vcpkg.cmake` tells CMake to use the vcpkg toolchain to load dependencies. **Make sure to change the path to the actual path to vcpkg on your system!**
273-
- `-DVCPKG_TARGET_TRIPLET=x86-windows` tells vcpkg to use 32-bit dependencies for Windows. If you are compiling 64-bit executables, replace "x86" with "x64".
272+
- `-DVCPKG_TARGET_TRIPLET=x64-windows` tells vcpkg to use 64-bit dependencies for Windows. If you are compiling 32-bit executables, replace "x64" with "x86".
274273
- Optionally, you may add `-G "Visual Studio 16 2019"` to force a certain version of Visual Studio if multiple are installed on your system.
275274

276275
For more CMake options, look at end of the Linux/UNIX build section.

data/images/autotiles.satc

+183-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
;; |
1515
;; V
1616
;; Contains :
17-
;; The autotileset name (unused as of writing these lines) : (name "snow")
17+
;; The autotileset name (used as an indicator in the editor) : (name "snow")
1818
;; The name of the autotileset is "snow".
1919
;; The default tile ID (used if no tile matches any mask) : (default 11)
2020
;; If a very special tile is needed (and it doesn't exist), it will use this tile (it's a center tile) by default.
@@ -75,7 +75,7 @@
7575
;; (Contributor, 2020)
7676
;;
7777
;;
78-
;; NOTE : A single id MUST NOT OCCUR MORE THAN ONE AUTOTILE IN THE ENTIRE FILE.
78+
;; NOTE : A single id MUST NOT OCCUR IN MORE THAN ONE AUTOTILE IN AN AUTOTILESET.
7979
;; Otherwise, the behavior is UNDEFINED.
8080

8181
(supertux-autotiles
@@ -6107,4 +6107,185 @@
61076107
(mask "11111*0*")
61086108
)
61096109
)
6110+
6111+
(autotileset
6112+
(name "jrock_a")
6113+
(default 7317)
6114+
6115+
;; CENTER
6116+
(autotile
6117+
(id 7317)
6118+
(alt-id
6119+
(id 7324)
6120+
(weight 0.5)
6121+
)
6122+
(solid #t)
6123+
(mask "***11111")
6124+
)
6125+
6126+
;; LEFT
6127+
(autotile
6128+
(id 7316)
6129+
(solid #t)
6130+
(mask "***01011")
6131+
)
6132+
6133+
;; RIGHT
6134+
(autotile
6135+
(id 7318)
6136+
(solid #t)
6137+
(mask "***10110")
6138+
)
6139+
6140+
;; THIN
6141+
(autotile
6142+
(id 7319)
6143+
(solid #t)
6144+
(mask "***00010")
6145+
)
6146+
6147+
;; B LEFT
6148+
(autotile
6149+
(id 7320)
6150+
(solid #t)
6151+
(mask "***01*0*")
6152+
)
6153+
6154+
;; B CENTER
6155+
(autotile
6156+
(id 7321)
6157+
(solid #t)
6158+
(mask "***11*0*")
6159+
)
6160+
6161+
;; B RIGHT
6162+
(autotile
6163+
(id 7322)
6164+
(solid #t)
6165+
(mask "***10*0*")
6166+
)
6167+
6168+
;; B THIN
6169+
(autotile
6170+
(id 7323)
6171+
(solid #t)
6172+
(mask "***00*0*")
6173+
)
6174+
6175+
;; CORNER TL
6176+
(autotile
6177+
(id 7325)
6178+
(solid #t)
6179+
(mask "***11110")
6180+
)
6181+
6182+
;; CORNER TR
6183+
(autotile
6184+
(id 7326)
6185+
(solid #t)
6186+
(mask "***11011")
6187+
)
6188+
6189+
;; CORNER BL
6190+
(autotile
6191+
(id 7327)
6192+
(solid #t)
6193+
(mask "***10111")
6194+
)
6195+
6196+
;; CORNER BR
6197+
(autotile
6198+
(id 7328)
6199+
(solid #t)
6200+
(mask "***01111")
6201+
)
6202+
6203+
;; CORNER THIN TL
6204+
(autotile
6205+
(id 7329)
6206+
(solid #t)
6207+
(mask "***01010")
6208+
)
6209+
6210+
;; CORNER THIN TR
6211+
(autotile
6212+
(id 7330)
6213+
(solid #t)
6214+
(mask "***10010")
6215+
)
6216+
6217+
;; CORNER THIN TC
6218+
(autotile
6219+
(id 7331)
6220+
(solid #t)
6221+
(mask "***11010")
6222+
)
6223+
6224+
;; CORNER THIN BL
6225+
(autotile
6226+
(id 7332)
6227+
(solid #t)
6228+
(mask "***00011")
6229+
)
6230+
6231+
;; CORNER THIN BR
6232+
(autotile
6233+
(id 7333)
6234+
(solid #t)
6235+
(mask "***00110")
6236+
)
6237+
6238+
;; CORNER THIN BC
6239+
(autotile
6240+
(id 7334)
6241+
(solid #t)
6242+
(mask "***00111")
6243+
)
6244+
6245+
;; CORNER "S"
6246+
(autotile
6247+
(id 7335)
6248+
(solid #t)
6249+
(mask "***01110")
6250+
)
6251+
6252+
;; CORNER "Z"
6253+
(autotile
6254+
(id 7336)
6255+
(solid #t)
6256+
(mask "***10011")
6257+
)
6258+
6259+
;; DECO TILES -----------
6260+
6261+
;; DECO LEFT
6262+
(autotile
6263+
(id 7312)
6264+
(solid #f)
6265+
(mask "*****011")
6266+
)
6267+
6268+
;; DECO CENTER
6269+
(autotile
6270+
(id 7313)
6271+
(solid #f)
6272+
(mask "*****111")
6273+
)
6274+
6275+
;; DECO RIGHT
6276+
(autotile
6277+
(id 7314)
6278+
(solid #f)
6279+
(mask "*****110")
6280+
)
6281+
6282+
;; DECO THIN
6283+
(autotile
6284+
(id 7315)
6285+
(solid #f)
6286+
(mask "*****010")
6287+
)
6288+
6289+
)
6290+
61106291
)

data/images/converters/data.stcd

+17-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
(supertux-converter-data
2-
(nightly_all_tiles.sttc
3-
(title (_ "Nightly Tiles"))
4-
(author "SuperTux Team")
5-
(description (_ "For levels, created in previous Nightly builds."))
6-
)
7-
(pre-0.6.3_crystal_tiles.sttc
8-
(title (_ "Pre-0.6.3 Crystal Tiles"))
9-
(author "tylerandari12")
10-
(description (_ "For levels, created in pre-0.6.3 versions, which use crystal tiles."))
11-
)
12-
)
1+
(supertux-converter-data
2+
(nightly_all_tiles.sttc
3+
(title (_ "Nightly Tiles"))
4+
(author "SuperTux Team")
5+
(description (_ "For levels, created in previous Nightly builds."))
6+
)
7+
(pre-0.6.3_crystal_tiles.sttc
8+
(title (_ "Pre-0.6.3 Crystal Tiles"))
9+
(author "tylerandari12")
10+
(description (_ "For levels, created in pre-0.6.3 versions, which use crystal tiles."))
11+
)
12+
(rock_tiles_addon_to_vanilla.sttc
13+
(title (_ "Jagged Rock Tiles from Addon"))
14+
(author "Eauix")
15+
(description (_ "For levels, created with the rock tiles addon, converts their IDs to vanilla rock tile IDs"))
16+
)
17+
)

0 commit comments

Comments
 (0)