1 | name: xtactics
|
---|
2 | title: xTactics
|
---|
3 | version: '1.4.0'
|
---|
4 | summary: A turn-based strategy game inspired by Risk board game.
|
---|
5 | description: |
|
---|
6 | **Features:**
|
---|
7 | * Zoom-able map.
|
---|
8 | * Map can be generated in cyclic mode to simulate world without borders.
|
---|
9 | * Application configuration stored in XML file.
|
---|
10 | * Allows to save and load game to game file in XML format with extension .xtg.
|
---|
11 | * Localization support (English, Czech)
|
---|
12 | * High DPI support.
|
---|
13 | * Multiple map cell shapes as hexagons, squares, triangles, isometric, and random mesh.
|
---|
14 | * Bridges between remote cells visible as lines.
|
---|
15 | * Multiple players support. Players can have different color and other starting properties.
|
---|
16 | * Application automatically open saved game file given as command line parameter after execution.
|
---|
17 | * Computer player settings to be low, medium or highly aggressive in attacking.
|
---|
18 | * Use Shift key during mouse click to attack maximum available power is moved without dialog confirmation.
|
---|
19 | * Use Control key during mouse click to move with maximum one time and repeated unit counts to selected target cell.
|
---|
20 | * Game option "Fog of war" which cause map to be covered to black and only explored cells will be visible.
|
---|
21 | * Auto save game to file option in settings.
|
---|
22 | * Map shape can be selected as Rectangular, Rounded or mask from image file.
|
---|
23 | * Support for symmetric map usable for two players game.
|
---|
24 | * Confirmation dialog for ending game.
|
---|
25 | * Support for switching large icons in toolbar.
|
---|
26 | * Support for cities. Cities can configured to be used as only growing cells.
|
---|
27 | * Allows to set grow rate as square root of cell power.
|
---|
28 | * Amount of inaccessible cells can be adjusted in New game dialog.
|
---|
29 | * Player mode human or computer.
|
---|
30 | * Graph window can be shown from menu which presents development of various statistic values during game turns.
|
---|
31 | * Load recent menu action to load recently opened/saved files.
|
---|
32 | confinement: strict
|
---|
33 | base: core20
|
---|
34 | grade: stable
|
---|
35 | icon: "Images/64x64/xtactics.png"
|
---|
36 | license: NLPL
|
---|
37 |
|
---|
38 | parts:
|
---|
39 | xtactics:
|
---|
40 | plugin: nil
|
---|
41 | source: .
|
---|
42 | source-type: local
|
---|
43 | build-packages:
|
---|
44 | - fpc
|
---|
45 | - lazarus
|
---|
46 | - lcl
|
---|
47 | - lcl-utils
|
---|
48 | override-build: |
|
---|
49 | snapcraftctl build
|
---|
50 | lazbuild --build-mode=Release xtactics.lpi
|
---|
51 | install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/bin
|
---|
52 | install -s -m 755 xtactics $SNAPCRAFT_PART_INSTALL/usr/bin/xtactics
|
---|
53 | install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/xtactics/Languages
|
---|
54 | install -m 644 Languages/xtactics.pot $SNAPCRAFT_PART_INSTALL/usr/share/xtactics/Languages
|
---|
55 | install -m 644 Languages/xtactics.cs.po $SNAPCRAFT_PART_INSTALL/usr/share/xtactics/Languages
|
---|
56 | install -m 644 Languages/lclstrconsts.pot $SNAPCRAFT_PART_INSTALL/usr/share/xtactics/Languages
|
---|
57 | install -m 644 Languages/lclstrconsts.cs.po $SNAPCRAFT_PART_INSTALL/usr/share/xtactics/Languages
|
---|
58 | install -m 644 Languages/UFormAbout.pot $SNAPCRAFT_PART_INSTALL/usr/share/xtactics/Languages
|
---|
59 | install -m 644 Languages/UFormAbout.cs.po $SNAPCRAFT_PART_INSTALL/usr/share/xtactics/Languages
|
---|
60 | install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/applications
|
---|
61 | install -m 755 Install/snap/local/xtactics.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications
|
---|
62 | install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
|
---|
63 | install -m 755 Install/deb/xtactics.xml $SNAPCRAFT_PART_INSTALL/usr/share/mime/packages
|
---|
64 | install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
|
---|
65 | install -m 755 Images/64x64/xtactics.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
|
---|
66 | install -m 755 Images/64x64/xtactics.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-xtg.png
|
---|
67 | install -m 755 Images/64x64/xtactics.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/application-xts.png
|
---|
68 | cp -r Systems $SNAPCRAFT_PART_INSTALL/usr/share/xtactics
|
---|
69 | install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/xtactics/Images
|
---|
70 | cp -r Images/Maps $SNAPCRAFT_PART_INSTALL/usr/share/xtactics/Images
|
---|
71 | after:
|
---|
72 | - desktop-gtk2
|
---|
73 | stage:
|
---|
74 | - etc
|
---|
75 | - usr
|
---|
76 | - usr/bin
|
---|
77 | - usr/share/xtactics
|
---|
78 | - usr/share/applications/xtactics.desktop
|
---|
79 | - usr/share/pixmaps
|
---|
80 | stage-packages:
|
---|
81 | - libatk1.0-0
|
---|
82 | - libcairo2
|
---|
83 | - libdatrie1
|
---|
84 | - libfontconfig1
|
---|
85 | - libfreetype6
|
---|
86 | - libfribidi0
|
---|
87 | - libgdk-pixbuf2.0-0
|
---|
88 | - libgraphite2-3
|
---|
89 | - libgtk2.0-0
|
---|
90 | - libharfbuzz0b
|
---|
91 | - libpango-1.0-0
|
---|
92 | - libpangocairo-1.0-0
|
---|
93 | - libpangoft2-1.0-0
|
---|
94 | - libpixman-1-0
|
---|
95 | - libpng16-16
|
---|
96 | - libthai0
|
---|
97 | - libx11-6
|
---|
98 | - libxau6
|
---|
99 | - libxcb-render0
|
---|
100 | - libxcb-shm0
|
---|
101 | - libxcb1
|
---|
102 | - libxcomposite1
|
---|
103 | - libxcursor1
|
---|
104 | - libxdamage1
|
---|
105 | - libxdmcp6
|
---|
106 | - libxext6
|
---|
107 | - libxfixes3
|
---|
108 | - libxi6
|
---|
109 | - libxinerama1
|
---|
110 | - libxrandr2
|
---|
111 | - libxrender1
|
---|
112 | - libglu1-mesa
|
---|
113 | desktop-gtk2:
|
---|
114 | source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
|
---|
115 | source-subdir: gtk
|
---|
116 | plugin: make
|
---|
117 | make-parameters: ["FLAVOR=gtk2"]
|
---|
118 | build-packages:
|
---|
119 | - build-essential
|
---|
120 | - libgtk2.0-dev
|
---|
121 | stage-packages:
|
---|
122 | - libxkbcommon0 # XKB_CONFIG_ROOT
|
---|
123 | - ttf-ubuntu-font-family
|
---|
124 | - dmz-cursor-theme
|
---|
125 | - light-themes
|
---|
126 | - adwaita-icon-theme
|
---|
127 | - gnome-themes-standard
|
---|
128 | - shared-mime-info
|
---|
129 | - libgtk2.0-0
|
---|
130 | - libgdk-pixbuf2.0-0
|
---|
131 | - libglib2.0-bin
|
---|
132 | - libgtk2.0-bin
|
---|
133 | - unity-gtk2-module
|
---|
134 | - locales-all
|
---|
135 | - libappindicator1
|
---|
136 | - xdg-user-dirs
|
---|
137 | - ibus-gtk
|
---|
138 | - libibus-1.0-5
|
---|
139 |
|
---|
140 | # Additional plugs to pick up the GTK theme and icons from the system
|
---|
141 | plugs:
|
---|
142 | icon-themes:
|
---|
143 | interface: content
|
---|
144 | target: $SNAP/data-dir/icons
|
---|
145 | default-provider: gtk-common-themes
|
---|
146 | sound-themes:
|
---|
147 | interface: content
|
---|
148 | target: $SNAP/data-dir/sounds
|
---|
149 | default-provider: gtk-common-themes
|
---|
150 | gtk-2-engines:
|
---|
151 | interface: content
|
---|
152 | target: $SNAP/lib/gtk-2.0
|
---|
153 | default-provider: gtk2-common-themes:gtk-2-engines
|
---|
154 | gtk-2-themes:
|
---|
155 | interface: content
|
---|
156 | target: $SNAP/usr/share/themes
|
---|
157 | default-provider: gtk2-common-themes:gtk-2-themes
|
---|
158 |
|
---|
159 | environment:
|
---|
160 | XDG_DATA_DIRS: $SNAP/usr/share:$XDG_DATA_DIRS
|
---|
161 | GTK_PATH: $SNAP/lib/gtk-2.0
|
---|
162 |
|
---|
163 | apps:
|
---|
164 | xtactics:
|
---|
165 | command: usr/bin/xtactics
|
---|
166 | command-chain:
|
---|
167 | - bin/desktop-launch
|
---|
168 | desktop: usr/share/applications/xtactics.desktop
|
---|
169 | plugs:
|
---|
170 | - desktop
|
---|
171 | - x11
|
---|
172 | - home
|
---|
173 |
|
---|
174 | layout:
|
---|
175 | /usr/share/xtactics:
|
---|
176 | bind: $SNAP/usr/share/xtactics
|
---|