Import upstream version 2.5.0+git20190814.fc425e4, md5 e6e4ff94476262e1e5a0c33480899e26
Debian Janitor
4 years ago
2 | 2 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${blockattack_SOURCE_DIR}/source/misc/cmake") |
3 | 3 | set(BIN_DIR ${blockattack_SOURCE_DIR}/Game) |
4 | 4 | |
5 | SET(CPACK_PACKAGE_VERSION "2.5.0") | |
5 | SET(CPACK_PACKAGE_VERSION "2.6.0-SNAPSHOT") | |
6 | 6 | SET(CPACK_PACKAGE_VERSION_MAJOR "2") |
7 | SET(CPACK_PACKAGE_VERSION_MINOR "5") | |
7 | SET(CPACK_PACKAGE_VERSION_MINOR "6") | |
8 | 8 | SET(CPACK_PACKAGE_VERSION_PATCH "0") |
9 | 9 | SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Block Attack - Rise of the Blocks ${CPACK_PACKAGE_VERSION}") |
10 | 10 | SET(CPACK_PACKAGE_VENDOR "Poul Sander") |
0 | This is Block Attack - Rise of the Blocks - version 2.5.0 | |
1 | ||
2 | Changes since 2.4.0: | |
3 | Added option to always use the software renderer | |
4 | Automatically start in software render the first time after a crash | |
5 | Fixed the search order in archives | |
6 | Added widescreen support. Only used in fullscreen by default. | |
7 | Added appstream metadata | |
8 | Screenshot feature no longer crashes in hardware acceleration. Still only works in software mode | |
9 | ||
10 | Feedback can be given on https://blockattack.net or https://github.com/blockattack/blockattack-game |
0 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.10. | |
1 | .TH BLOCKATTACK "6" "May 2019" "blockattack 2.5.0" "Games" | |
0 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6. | |
1 | .TH BLOCKATTACK "6" "June 2019" "blockattack 2.6.0-SNAPSHOT" "Games" | |
2 | 2 | .SH NAME |
3 | 3 | blockattack \- a puzzle game inspired by Tetris Attack |
4 | 4 | .SH SYNOPSIS |
5 | 5 | .B blockattack |
6 | 6 | [\fI\,OPTION\/\fR]... |
7 | 7 | .SH DESCRIPTION |
8 | Block Attack \- Rise of the blocks 2.5.0 | |
8 | Block Attack \- Rise of the blocks 2.6.0\-SNAPSHOT | |
9 | 9 | .PP |
10 | 10 | Block Attack \- Rise of the Blocks is a puzzle/blockfall game inspired by Tetris Attack for the SNES. |
11 | 11 | .PP |
0 | 0 | #!/bin/bash |
1 | 1 | set -e |
2 | zip -9rjX Game/blockattack.data source/AUTH | |
2 | zip -9jX Game/blockattack.data source/AUTH | |
3 | 3 | cd Game/data |
4 | zip -9rX ../blockattack.data * -x \*svn* | |
4 | zip -9X $(find ../blockattack.data * | sort) -x \*svn* | |
5 | 5 | cd ../../man |
6 | gzip -9 -c blockattack.man > blockattack.6.gz | |
6 | gzip -9n -c blockattack.man > blockattack.6.gz | |
7 | 7 | cd ../source/misc/translation/ |
8 | 8 | ./build_mo_all.sh |
9 | 9 |
24 | 24 | #include "global.hpp" |
25 | 25 | #include "common.h" |
26 | 26 | #include "ReadKeyboard.h" |
27 | #include "utf8.h" | |
27 | 28 | |
28 | 29 | static void setButtonFont(const sago::SagoDataHolder* holder, sago::SagoTextField& field, const char* text) { |
29 | 30 | field.SetHolder(holder); |
93 | 94 | sagoTextSetBlueFont(textField); |
94 | 95 | sagoTextSetBlueFont(cursorLabel); |
95 | 96 | cursorLabel.SetText("|"); |
97 | for (auto position = alphabet.begin(); position != alphabet.end() ; utf8::advance(position, 1, alphabet.end())) { | |
98 | auto endPosition = position; | |
99 | utf8::advance(endPosition, 1, alphabet.end()); | |
100 | std::string theChar(position, endPosition); | |
101 | gamePadChars.push_back(theChar); | |
102 | gamePadCharFields.emplace_back(); | |
103 | sago::SagoTextField& tf = gamePadCharFields.back(); | |
104 | setButtonFont(&globalData.spriteHolder->GetDataHolder(), tf, theChar.c_str()); | |
105 | std::cout << *position << "\n"; | |
106 | } | |
96 | 107 | } |
97 | 108 | |
98 | 109 | |
123 | 134 | textField.GetRenderedSize( strHolder.c_str(), &width); |
124 | 135 | width -= 2; |
125 | 136 | cursorLabel.Draw(target, x+40+width,y+76); |
137 | } | |
138 | for (size_t i = 0; i<gamePadCharFields.size(); ++i) { | |
139 | int limit = 20; | |
140 | sago::SagoTextField& f = gamePadCharFields.at(i); | |
141 | f.Draw(target, globalData.xsize/2-400+(i%limit)*40, globalData.ysize/2+150+(i/limit)*40); | |
126 | 142 | } |
127 | 143 | } |
128 | 144 |
57 | 57 | sago::SagoTextField cancelLabel; |
58 | 58 | sago::SagoTextField textField; |
59 | 59 | sago::SagoTextField cursorLabel; |
60 | std::string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
61 | "abcdefghijklmnopqrstuvwxyz" | |
62 | ".,:!?+_^@#%&=*"; | |
63 | std::vector<std::string> gamePadChars; | |
64 | std::vector<sago::SagoTextField> gamePadCharFields; | |
60 | 65 | }; |
61 | 66 | |
62 | 67 | #endif /* DIALOGBOX_HPP */ |
29 | 29 | #define GAMENAME "blockattack" |
30 | 30 | |
31 | 31 | #ifndef VERSION_NUMBER |
32 | #define VERSION_NUMBER "2.5.0" | |
32 | #define VERSION_NUMBER "2.6.0-SNAPSHOT" | |
33 | 33 | #endif |
14 | 14 | |
15 | 15 | COPY . /staging/blockattack-game |
16 | 16 | |
17 | ENV BLOCKATTACK_VERSION 2.5.0 | |
17 | ENV BLOCKATTACK_VERSION 2.6.0-SNAPSHOT | |
18 | 18 | |
19 | 19 | RUN cd /staging/blockattack-game && \ |
20 | 20 | ./packdata.sh && \ |
14 | 14 | |
15 | 15 | COPY . /staging/blockattack-game |
16 | 16 | |
17 | ENV BLOCKATTACK_VERSION 2.5.0 | |
17 | ENV BLOCKATTACK_VERSION 2.6.0-SNAPSHOT | |
18 | 18 | |
19 | 19 | RUN cd /staging/blockattack-game && \ |
20 | 20 | ./packdata.sh && \ |
15 | 15 | |
16 | 16 | COPY . /staging/blockattack-game |
17 | 17 | |
18 | ENV BLOCKATTACK_VERSION 2.5.0 | |
18 | ENV BLOCKATTACK_VERSION 2.6.0-SNAPSHOT | |
19 | 19 | |
20 | 20 | RUN cd /staging/blockattack-game && \ |
21 | 21 | ./packdata.sh && \ |
5 | 5 | |
6 | 6 | COPY . /staging/blockattack-game |
7 | 7 | |
8 | ENV BLOCKATTACK_VERSION 2.5.0 | |
8 | ENV BLOCKATTACK_VERSION 2.6.0-SNAPSHOT | |
9 | 9 | |
10 | 10 | RUN cd /staging/blockattack-game && \ |
11 | 11 | ./packdata.sh && \ |
6 | 6 | |
7 | 7 | COPY . /staging/blockattack-game |
8 | 8 | |
9 | ENV BLOCKATTACK_VERSION 2.5.0 | |
9 | ENV BLOCKATTACK_VERSION 2.6.0-SNAPSHOT | |
10 | 10 | |
11 | 11 | RUN cd /staging/blockattack-game && \ |
12 | 12 | ./packdata.sh && \ |
6 | 6 | |
7 | 7 | COPY . /staging/blockattack-game |
8 | 8 | |
9 | ENV BLOCKATTACK_VERSION 2.5.0 | |
9 | ENV BLOCKATTACK_VERSION 2.6.0-SNAPSHOT | |
10 | 10 | |
11 | 11 | RUN cd /staging/blockattack-game && \ |
12 | 12 | ./packdata.sh && \ |
5 | 5 | |
6 | 6 | COPY . /staging/blockattack-game |
7 | 7 | |
8 | ENV BLOCKATTACK_VERSION 2.5.0 | |
8 | ENV BLOCKATTACK_VERSION 2.6.0-SNAPSHOT | |
9 | 9 | |
10 | 10 | RUN cd /staging/blockattack-game && \ |
11 | 11 | ./packdata.sh && \ |
7 | 7 | |
8 | 8 | COPY . /staging/blockattack-game |
9 | 9 | |
10 | ENV BLOCKATTACK_VERSION 2.5.0 | |
10 | ENV BLOCKATTACK_VERSION 2.6.0-SNAPSHOT | |
11 | 11 | |
12 | 12 | RUN cd /staging/blockattack-game && \ |
13 | 13 | ./packdata.sh && \ |
25 | 25 | cp /staging/blockattack-game/COPYING ./COPYING.txt && \ |
26 | 26 | cp -r /staging/blockattack-game/source/misc/translation/locale ./ && \ |
27 | 27 | echo "[InternetShortcut]" > "Block Attack - Rise Of the Blocks.url" && \ |
28 | echo "URL=http://www.blockattack.net" >> "Block Attack - Rise Of the Blocks.url" && \ | |
28 | echo "URL=https://blockattack.net" >> "Block Attack - Rise Of the Blocks.url" && \ | |
29 | 29 | cd /staging/package/ && \ |
30 | 30 | zip -r /output/blockattack-${BLOCKATTACK_VERSION}-windows-no-installer.zip "blockattack-${BLOCKATTACK_VERSION}" && \ |
31 | 31 | cd /output && chown nobody * && chmod 666 * && ls -lh |
6 | 6 | Some systems might require the game to be launched from the command line. |
7 | 7 | PulseAudio is required for sound. |
8 | 8 | |
9 | Check www.blockattack.net for more info. | |
9 | Check https://blockattack.net for more info. |
1 | 1 | |
2 | 2 | ; HM NIS Edit Wizard helper defines |
3 | 3 | !define PRODUCT_NAME "Block Attack - Rise Of the Blocks" |
4 | !define PRODUCT_VERSION "2.5.0" | |
4 | !define PRODUCT_VERSION "2.6.0-SNAPSHOT" | |
5 | 5 | !define PRODUCT_PUBLISHER "Poul Sander" |
6 | 6 | !define PRODUCT_WEB_SITE "http://www.blockattack.net" |
7 | 7 | !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\blockattack.exe" |