| fa8b055b |
Poul Sander |
2016-11-12 17:06 |
1 |
# blockattack-game [](https://travis-ci.org/blockattack/blockattack-game) [](https://scan.coverity.com/projects/8278) []() |
| a23ffbc1 |
sago007 |
2016-03-06 11:49 |
2 |
Block Attack - Rise of the Blocks - the game<br/> |
| c8b43ea3 |
sago007 |
2016-02-02 18:20 |
3 |
A Tetris Attack Clone under the GPL. |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
4 |
|
| a23ffbc1 |
sago007 |
2016-03-06 11:49 |
5 |
Homepage: http://www.blockattack.net<br/> |
| a23ffbc1 |
sago007 |
2016-03-06 11:49 |
6 |
Source: https://github.com/blockattack/blockattack-game |
| 0540c530 |
Poul Sander |
2016-01-19 20:48 |
7 |
|
| 0540c530 |
Poul Sander |
2016-01-19 20:48 |
8 |
##Screen shot |
| 0540c530 |
Poul Sander |
2016-01-19 20:48 |
9 |
 |
| 0540c530 |
Poul Sander |
2016-01-19 20:48 |
10 |
|
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
11 |
# Dependencies |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
12 |
* A version of g++ with C++11 support. Tested on g++-4.9 |
| b81f58ad |
sago007 |
2015-12-25 22:48 |
13 |
* libSDL2 |
| c18f506d |
sago007 |
2015-12-25 15:47 |
14 |
* libSDL2_image |
| c18f506d |
sago007 |
2015-12-25 15:47 |
15 |
* libSDL2_mixer |
| c18f506d |
sago007 |
2015-12-25 15:47 |
16 |
* libSDL2_ttf |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
17 |
* libphysfs |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
18 |
* libboost (only needed for compiling) |
| 421f2139 |
sago007 |
2016-02-08 18:11 |
19 |
* libboost-program-options |
| 227d1f4e |
sago007 |
2015-12-05 07:34 |
20 |
* libutfcpp (only needed for compiling) |
| c18f506d |
sago007 |
2015-12-25 15:47 |
21 |
* jsoncpp |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
22 |
|
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
23 |
# Building |
| a23ffbc1 |
sago007 |
2016-03-06 11:49 |
24 |
The only supported build method is using the Makefile<br/> |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
25 |
To build do: |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
26 |
``` |
| daad7b02 |
sago007 |
2016-01-19 19:33 |
27 |
./packdata.sh |
| 5614ab55 |
sago007 |
2016-01-17 13:44 |
28 |
cmake . |
| d9476292 |
sago007 |
2016-04-29 17:20 |
29 |
# or |
| d9476292 |
sago007 |
2016-04-29 17:20 |
30 |
# cmake -DCMAKE_BUILD_TYPE=Debug . |
| d9476292 |
sago007 |
2016-04-29 17:20 |
31 |
# or |
| d9476292 |
sago007 |
2016-04-29 17:20 |
32 |
# cmake -DCMAKE_BUILD_TYPE=Release . |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
33 |
make |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
34 |
``` |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
35 |
The result should be in the "Game"-folder. To run |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
36 |
``` |
| ad0118c2 |
sago007 |
2016-01-31 14:41 |
37 |
./Game/blockattack |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
38 |
``` |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
39 |
|
| daad7b02 |
sago007 |
2016-01-19 19:33 |
40 |
You can also choose to install it with |
| daad7b02 |
sago007 |
2016-01-19 19:33 |
41 |
``` |
| daad7b02 |
sago007 |
2016-01-19 19:33 |
42 |
sudo make install |
| daad7b02 |
sago007 |
2016-01-19 19:33 |
43 |
``` |
| daad7b02 |
sago007 |
2016-01-19 19:33 |
44 |
|
| 5614ab55 |
sago007 |
2016-01-17 13:44 |
45 |
Windows build uses MXE (mxe.cc) with these installed: |
| 5614ab55 |
sago007 |
2016-01-17 13:44 |
46 |
``` |
| 5614ab55 |
sago007 |
2016-01-17 13:44 |
47 |
sdl2 sdl2_image sdl2_mixer sdl2_ttf physfs jsoncpp libtool gettext freetype zlib boost |
| 5614ab55 |
sago007 |
2016-01-17 13:44 |
48 |
``` |
| 5614ab55 |
sago007 |
2016-01-17 13:44 |
49 |
and libutfcpp copied from "source/misc/travis_help/utf8_v2_3_4/source/" to "/path/to/mxe/usr/lib/gcc/i686-w64-mingw32.static/4.9.3/include" |
| 3327bb0f |
Poul Sander |
2015-11-08 19:30 |
50 |
|
| 5614ab55 |
sago007 |
2016-01-17 13:44 |
51 |
Compiled with: |
| 5614ab55 |
sago007 |
2016-01-17 13:44 |
52 |
``` |
| 40fca54e |
sago007 |
2016-04-30 11:38 |
53 |
i686-w64-mingw32.static-cmake -DCMAKE_BUILD_TYPE=Release . && make |
| 5614ab55 |
sago007 |
2016-01-17 13:44 |
54 |
``` |
| bddd74d0 |
Poul Sander |
2016-04-12 18:31 |
55 |
|
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
56 |
# Source Structure |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
57 |
This project is a bit unconversionel because I didn't know any better at the time. |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
58 |
|
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
59 |
* Game - The output is placed here |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
60 |
* man - The manual file and the script to generate it. May be moved to source/misc at some point |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
61 |
* source/code/ - The source code |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
62 |
* source/code/Libs - External libs that are compiled into the project because they are either header only (Cereal) or not designed for use as a shared library (NFont). |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
63 |
* source/code/sago - Source code. Not designed to be specific to Block Attack - Rise of the Blocks |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
64 |
* source/assets - Source for the assets if relevant. For instance svg source for the graphics. |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
65 |
* source/misc - Misc stuff. Code related tool that are used for development but not part of the final product. |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
66 |
* source/misc/astyle - Helper script that enforces code style using the "astyle"-program |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
67 |
* source/misc/cmake - Files needed by CMake |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
68 |
* source/misc/icons - Icons for the installer |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
69 |
* source/misc/screenshots - Screen shots like the one in this README file. |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
70 |
* source/misc/translation - Translations and related tools and scripts |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
71 |
* source/misc/travis_help - Helper files for Travis CI |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
72 |
* windows installer - Information needed to Windows installer. May be moved to source/misc at some point |
| 557a8065 |
Poul Sander |
2016-05-13 17:35 |
73 |
|
| bddd74d0 |
Poul Sander |
2016-04-12 18:31 |
74 |
# Reporting bugs |
| bddd74d0 |
Poul Sander |
2016-04-12 18:31 |
75 |
|
| bddd74d0 |
Poul Sander |
2016-04-12 18:31 |
76 |
Please report bugs on github: https://github.com/blockattack/blockattack-game/issues |
| bddd74d0 |
Poul Sander |
2016-04-12 18:31 |
77 |
If possible: Check if the bug is already fixed in master. But if you don't know how to check it then just report it. |
| bddd74d0 |
Poul Sander |
2016-04-12 18:31 |
78 |
|
| bddd74d0 |
Poul Sander |
2016-04-12 18:31 |
79 |
# Contributions |
| bddd74d0 |
Poul Sander |
2016-04-12 18:31 |
80 |
Contributions are welcome. Both the current graphics and the original sharedir support was provided by kind individuals. |
| bddd74d0 |
Poul Sander |
2016-04-12 18:31 |
81 |
Patches can be attached to a github ticket or sent to poul@poulsander.com directly. You can also create pull requests on Github. |
|
|
1970-01-01 00:00 |
82 |
|