Skip to content

Commit 5332202

Browse files
authored
Merge pull request #1 from MapMakersAndProgrammers/mobile
Initial mobile support
2 parents 7dbc9e5 + 8d51230 commit 5332202

File tree

8 files changed

+84
-46
lines changed

8 files changed

+84
-46
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
bin/
22
.vscode/
33
.DS_Store
4-
resources/
4+
5+
# Resource file
6+
data/
7+
cfg.*.xml
58

69
# Certificates and keys
710
*.p12
811
*.pfx
912
*.pem
10-
*.crt
13+
*.crt

TanksTestingTool-app.xml

Lines changed: 14 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -109,22 +109,22 @@
109109
<!-- <maxSize></maxSize> -->
110110

111111
<!-- The aspect ratio of the app ("portrait" or "landscape" or "any"). Optional. Mobile only. Default is the natural orientation of the device -->
112-
<!-- <aspectRatio></aspectRatio> -->
112+
<aspectRatio>landscape</aspectRatio>
113113

114114
<!-- Whether the app will begin auto-orienting on launch. Optional. Mobile only. Default false -->
115-
<!-- <autoOrients></autoOrients> -->
115+
<autoOrients>false</autoOrients>
116116

117117
<!-- Whether the app will rotate with OS animation effects during auto-orient ("standard" or "none"). Optional. Mobile only. Default standard -->
118118
<!-- <orientationAnimation></orientationAnimation> -->
119119

120120
<!-- Whether the app launches in full screen. Optional. Mobile only. Default false -->
121-
<!-- <fullScreen></fullScreen> -->
121+
<fullScreen>true</fullScreen>
122122

123123
<!-- The render mode for the app (either auto, cpu, gpu, or direct). Optional. Default auto -->
124-
<renderMode>gpu</renderMode>
124+
<renderMode>direct</renderMode>
125125

126126
<!-- Whether the default direct mode rendering context allocates storage for depth and stencil buffers. Optional. Default false. -->
127-
<!-- <depthAndStencil></depthAndStencil> -->
127+
<depthAndStencil>true</depthAndStencil>
128128

129129
<!-- Whether or not to pan when a soft keyboard is raised or lowered (either "pan" or "none"). Optional. Defaults "pan." -->
130130
<!-- <softKeyboardBehavior></softKeyboardBehavior> -->
@@ -154,42 +154,12 @@
154154

155155
<!-- The icon the system uses for the application. For at least one resolution,
156156
specify the path to a PNG file included in the AIR package. Optional. -->
157-
<!-- <icon>
158-
<image16x16></image16x16>
159-
<image29x29></image29x29>
160-
<image32x32></image32x32>
161-
<image36x36></image36x36>
162-
<image40x40></image40x40>
163-
<image44x44></image44x44>
164-
<image48x48></image48x48>
165-
<image50x50></image50x50>
166-
<image57x57></image57x57>
167-
<image58x58></image58x58>
168-
<image60x60></image60x60>
169-
<image66x66></image66x66>
170-
<image72x72></image72x72>
171-
<image75x75></image75x75>
172-
<image76x76></image76x76>
173-
<image80x80></image80x80>
174-
<image87x87></image87x87>
175-
<image96x96></image96x96>
176-
<image100x100></image100x100>
177-
<image114x114></image114x114>
178-
<image120x120></image120x120>
179-
<image128x128></image128x128>
180-
<image144x144></image144x144>
181-
<image152x152></image152x152>
182-
<image160x160></image160x160>
183-
<image167x167></image167x167>
184-
<image180x180></image180x180>
185-
<image192x192></image192x192>
186-
<image240x240></image240x240>
187-
<image256x256></image256x256>
188-
<image320x320></image320x320>
189-
<image512x512></image512x512>
190-
<image732x412></image732x412>
191-
<image1024x1024></image1024x1024>
192-
</icon> -->
157+
<icon>
158+
<image32x32>icons/icon32.png</image32x32>
159+
<image60x60>icons/icon60.png</image60x60>
160+
<image128x128>icons/icon128.png</image128x128>
161+
<image256x256>icons/icon256.png</image256x256>
162+
</icon>
193163

194164
<!-- Whether the application handles the update when a user double-clicks an update version
195165
of the AIR file (true), or the default AIR application installer handles the update (false).
@@ -285,7 +255,7 @@
285255
<!-- <excludeDefaultUsageDescriptions></excludeDefaultUsageDescriptions> -->
286256
<!-- </iPhone> -->
287257

288-
<!--<android> -->
258+
<android>
289259
<!-- Specify Android specific tags that get passed to AndroidManifest.xml file. -->
290260
<!-- <manifestAdditions>
291261
<![CDATA[
@@ -366,14 +336,14 @@
366336
<!-- <storageAccessFrameworkFromAPI></storageAccessFrameworkFromAPI> -->
367337
<!-- Alters the style used for handling cut-out areas in different orientations. See Android documentation.
368338
Optional. Values can be "default", "always", "never" or "shortEdges". Default is "default". -->
369-
<!-- <displayCutoutMode></displayCutoutMode> -->
339+
<displayCutoutMode>always</displayCutoutMode>
370340
<!-- Specifies a set of name/value properties that will be injected into the manifestPlaceholders section in an
371341
Android manifest file, so that user/app specific variables can be defined for third party SDKs. Optional. -->
372342
<!-- <manifestPlaceholders> -->
373343
<!-- <manifestPlaceholder>baseUrl: "dev.demoserver.com"</manifestPlaceholder> -->
374344
<!-- </manifestPlaceholders> -->
375345

376-
<!-- </android> -->
346+
</android>
377347
<!-- A folder to include in the search for Android resources. Optional. -->
378348
<!-- <resdir></resdir> -->
379349

asconfig.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@
3131
{
3232
"file": "resources/cfg.dxt1.xml",
3333
"path": "cfg.dxt1.xml"
34+
},
35+
{
36+
"file": "resources/icons/icon32.png",
37+
"path": "icons/icon32.png"
38+
},
39+
{
40+
"file": "resources/icons/icon60.png",
41+
"path": "icons/icon60.png"
42+
},
43+
{
44+
"file": "resources/icons/icon128.png",
45+
"path": "icons/icon128.png"
46+
},
47+
{
48+
"file": "resources/icons/icon256.png",
49+
"path": "icons/icon256.png"
3450
}
3551
]
3652
},

asconfig.mobile.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"config": "airmobile",
3+
"compilerOptions": {
4+
"source-path": [
5+
"src"
6+
],
7+
"output": "bin/tanki2.swf",
8+
"default-background-color": "#333333",
9+
"default-frame-rate": 60,
10+
"swf-version": 13
11+
},
12+
"airOptions": {
13+
"android": {
14+
"output": "bin/TanksTestingTool.apk",
15+
"signingOptions": {
16+
"storetype": "pkcs12",
17+
"keystore": "certificate.p12"
18+
}
19+
},
20+
"files": [
21+
{
22+
"file": "resources/data",
23+
"path": "data"
24+
},
25+
{
26+
"file": "resources/cfg.dxt1.xml",
27+
"path": "cfg.dxt1.xml"
28+
},
29+
{
30+
"file": "resources/icons/icon32.png",
31+
"path": "icons/icon32.png"
32+
},
33+
{
34+
"file": "resources/icons/icon60.png",
35+
"path": "icons/icon60.png"
36+
},
37+
{
38+
"file": "resources/icons/icon128.png",
39+
"path": "icons/icon128.png"
40+
},
41+
{
42+
"file": "resources/icons/icon256.png",
43+
"path": "icons/icon256.png"
44+
}
45+
]
46+
},
47+
"mainClass": "TanksTestingTool",
48+
"application": "TanksTestingTool-app.xml"
49+
}

resources/icons/icon128.png

27.2 KB
Loading

resources/icons/icon256.png

91.3 KB
Loading

resources/icons/icon32.png

2.74 KB
Loading

resources/icons/icon60.png

7.49 KB
Loading

0 commit comments

Comments
 (0)