mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-26 01:49:11 -07:00
Merge pull request #1 from MapMakersAndProgrammers/mobile
Initial mobile support
This commit is contained in:
7
.gitignore
vendored
7
.gitignore
vendored
@@ -1,10 +1,13 @@
|
|||||||
bin/
|
bin/
|
||||||
.vscode/
|
.vscode/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
resources/
|
|
||||||
|
# Resource file
|
||||||
|
data/
|
||||||
|
cfg.*.xml
|
||||||
|
|
||||||
# Certificates and keys
|
# Certificates and keys
|
||||||
*.p12
|
*.p12
|
||||||
*.pfx
|
*.pfx
|
||||||
*.pem
|
*.pem
|
||||||
*.crt
|
*.crt
|
||||||
|
|||||||
@@ -109,22 +109,22 @@
|
|||||||
<!-- <maxSize></maxSize> -->
|
<!-- <maxSize></maxSize> -->
|
||||||
|
|
||||||
<!-- The aspect ratio of the app ("portrait" or "landscape" or "any"). Optional. Mobile only. Default is the natural orientation of the device -->
|
<!-- The aspect ratio of the app ("portrait" or "landscape" or "any"). Optional. Mobile only. Default is the natural orientation of the device -->
|
||||||
<!-- <aspectRatio></aspectRatio> -->
|
<aspectRatio>landscape</aspectRatio>
|
||||||
|
|
||||||
<!-- Whether the app will begin auto-orienting on launch. Optional. Mobile only. Default false -->
|
<!-- Whether the app will begin auto-orienting on launch. Optional. Mobile only. Default false -->
|
||||||
<!-- <autoOrients></autoOrients> -->
|
<autoOrients>false</autoOrients>
|
||||||
|
|
||||||
<!-- Whether the app will rotate with OS animation effects during auto-orient ("standard" or "none"). Optional. Mobile only. Default standard -->
|
<!-- Whether the app will rotate with OS animation effects during auto-orient ("standard" or "none"). Optional. Mobile only. Default standard -->
|
||||||
<!-- <orientationAnimation></orientationAnimation> -->
|
<!-- <orientationAnimation></orientationAnimation> -->
|
||||||
|
|
||||||
<!-- Whether the app launches in full screen. Optional. Mobile only. Default false -->
|
<!-- Whether the app launches in full screen. Optional. Mobile only. Default false -->
|
||||||
<!-- <fullScreen></fullScreen> -->
|
<fullScreen>true</fullScreen>
|
||||||
|
|
||||||
<!-- The render mode for the app (either auto, cpu, gpu, or direct). Optional. Default auto -->
|
<!-- The render mode for the app (either auto, cpu, gpu, or direct). Optional. Default auto -->
|
||||||
<renderMode>gpu</renderMode>
|
<renderMode>direct</renderMode>
|
||||||
|
|
||||||
<!-- Whether the default direct mode rendering context allocates storage for depth and stencil buffers. Optional. Default false. -->
|
<!-- Whether the default direct mode rendering context allocates storage for depth and stencil buffers. Optional. Default false. -->
|
||||||
<!-- <depthAndStencil></depthAndStencil> -->
|
<depthAndStencil>true</depthAndStencil>
|
||||||
|
|
||||||
<!-- Whether or not to pan when a soft keyboard is raised or lowered (either "pan" or "none"). Optional. Defaults "pan." -->
|
<!-- Whether or not to pan when a soft keyboard is raised or lowered (either "pan" or "none"). Optional. Defaults "pan." -->
|
||||||
<!-- <softKeyboardBehavior></softKeyboardBehavior> -->
|
<!-- <softKeyboardBehavior></softKeyboardBehavior> -->
|
||||||
@@ -154,42 +154,12 @@
|
|||||||
|
|
||||||
<!-- The icon the system uses for the application. For at least one resolution,
|
<!-- The icon the system uses for the application. For at least one resolution,
|
||||||
specify the path to a PNG file included in the AIR package. Optional. -->
|
specify the path to a PNG file included in the AIR package. Optional. -->
|
||||||
<!-- <icon>
|
<icon>
|
||||||
<image16x16></image16x16>
|
<image32x32>icons/icon32.png</image32x32>
|
||||||
<image29x29></image29x29>
|
<image60x60>icons/icon60.png</image60x60>
|
||||||
<image32x32></image32x32>
|
<image128x128>icons/icon128.png</image128x128>
|
||||||
<image36x36></image36x36>
|
<image256x256>icons/icon256.png</image256x256>
|
||||||
<image40x40></image40x40>
|
</icon>
|
||||||
<image44x44></image44x44>
|
|
||||||
<image48x48></image48x48>
|
|
||||||
<image50x50></image50x50>
|
|
||||||
<image57x57></image57x57>
|
|
||||||
<image58x58></image58x58>
|
|
||||||
<image60x60></image60x60>
|
|
||||||
<image66x66></image66x66>
|
|
||||||
<image72x72></image72x72>
|
|
||||||
<image75x75></image75x75>
|
|
||||||
<image76x76></image76x76>
|
|
||||||
<image80x80></image80x80>
|
|
||||||
<image87x87></image87x87>
|
|
||||||
<image96x96></image96x96>
|
|
||||||
<image100x100></image100x100>
|
|
||||||
<image114x114></image114x114>
|
|
||||||
<image120x120></image120x120>
|
|
||||||
<image128x128></image128x128>
|
|
||||||
<image144x144></image144x144>
|
|
||||||
<image152x152></image152x152>
|
|
||||||
<image160x160></image160x160>
|
|
||||||
<image167x167></image167x167>
|
|
||||||
<image180x180></image180x180>
|
|
||||||
<image192x192></image192x192>
|
|
||||||
<image240x240></image240x240>
|
|
||||||
<image256x256></image256x256>
|
|
||||||
<image320x320></image320x320>
|
|
||||||
<image512x512></image512x512>
|
|
||||||
<image732x412></image732x412>
|
|
||||||
<image1024x1024></image1024x1024>
|
|
||||||
</icon> -->
|
|
||||||
|
|
||||||
<!-- Whether the application handles the update when a user double-clicks an update version
|
<!-- Whether the application handles the update when a user double-clicks an update version
|
||||||
of the AIR file (true), or the default AIR application installer handles the update (false).
|
of the AIR file (true), or the default AIR application installer handles the update (false).
|
||||||
@@ -285,7 +255,7 @@
|
|||||||
<!-- <excludeDefaultUsageDescriptions></excludeDefaultUsageDescriptions> -->
|
<!-- <excludeDefaultUsageDescriptions></excludeDefaultUsageDescriptions> -->
|
||||||
<!-- </iPhone> -->
|
<!-- </iPhone> -->
|
||||||
|
|
||||||
<!--<android> -->
|
<android>
|
||||||
<!-- Specify Android specific tags that get passed to AndroidManifest.xml file. -->
|
<!-- Specify Android specific tags that get passed to AndroidManifest.xml file. -->
|
||||||
<!-- <manifestAdditions>
|
<!-- <manifestAdditions>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
@@ -366,14 +336,14 @@
|
|||||||
<!-- <storageAccessFrameworkFromAPI></storageAccessFrameworkFromAPI> -->
|
<!-- <storageAccessFrameworkFromAPI></storageAccessFrameworkFromAPI> -->
|
||||||
<!-- Alters the style used for handling cut-out areas in different orientations. See Android documentation.
|
<!-- Alters the style used for handling cut-out areas in different orientations. See Android documentation.
|
||||||
Optional. Values can be "default", "always", "never" or "shortEdges". Default is "default". -->
|
Optional. Values can be "default", "always", "never" or "shortEdges". Default is "default". -->
|
||||||
<!-- <displayCutoutMode></displayCutoutMode> -->
|
<displayCutoutMode>always</displayCutoutMode>
|
||||||
<!-- Specifies a set of name/value properties that will be injected into the manifestPlaceholders section in an
|
<!-- Specifies a set of name/value properties that will be injected into the manifestPlaceholders section in an
|
||||||
Android manifest file, so that user/app specific variables can be defined for third party SDKs. Optional. -->
|
Android manifest file, so that user/app specific variables can be defined for third party SDKs. Optional. -->
|
||||||
<!-- <manifestPlaceholders> -->
|
<!-- <manifestPlaceholders> -->
|
||||||
<!-- <manifestPlaceholder>baseUrl: "dev.demoserver.com"</manifestPlaceholder> -->
|
<!-- <manifestPlaceholder>baseUrl: "dev.demoserver.com"</manifestPlaceholder> -->
|
||||||
<!-- </manifestPlaceholders> -->
|
<!-- </manifestPlaceholders> -->
|
||||||
|
|
||||||
<!-- </android> -->
|
</android>
|
||||||
<!-- A folder to include in the search for Android resources. Optional. -->
|
<!-- A folder to include in the search for Android resources. Optional. -->
|
||||||
<!-- <resdir></resdir> -->
|
<!-- <resdir></resdir> -->
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,22 @@
|
|||||||
{
|
{
|
||||||
"file": "resources/cfg.dxt1.xml",
|
"file": "resources/cfg.dxt1.xml",
|
||||||
"path": "cfg.dxt1.xml"
|
"path": "cfg.dxt1.xml"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "resources/icons/icon32.png",
|
||||||
|
"path": "icons/icon32.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "resources/icons/icon60.png",
|
||||||
|
"path": "icons/icon60.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "resources/icons/icon128.png",
|
||||||
|
"path": "icons/icon128.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "resources/icons/icon256.png",
|
||||||
|
"path": "icons/icon256.png"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
49
asconfig.mobile.json
Normal file
49
asconfig.mobile.json
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
"config": "airmobile",
|
||||||
|
"compilerOptions": {
|
||||||
|
"source-path": [
|
||||||
|
"src"
|
||||||
|
],
|
||||||
|
"output": "bin/tanki2.swf",
|
||||||
|
"default-background-color": "#333333",
|
||||||
|
"default-frame-rate": 60,
|
||||||
|
"swf-version": 13
|
||||||
|
},
|
||||||
|
"airOptions": {
|
||||||
|
"android": {
|
||||||
|
"output": "bin/TanksTestingTool.apk",
|
||||||
|
"signingOptions": {
|
||||||
|
"storetype": "pkcs12",
|
||||||
|
"keystore": "certificate.p12"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"file": "resources/data",
|
||||||
|
"path": "data"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "resources/cfg.dxt1.xml",
|
||||||
|
"path": "cfg.dxt1.xml"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "resources/icons/icon32.png",
|
||||||
|
"path": "icons/icon32.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "resources/icons/icon60.png",
|
||||||
|
"path": "icons/icon60.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "resources/icons/icon128.png",
|
||||||
|
"path": "icons/icon128.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "resources/icons/icon256.png",
|
||||||
|
"path": "icons/icon256.png"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mainClass": "TanksTestingTool",
|
||||||
|
"application": "TanksTestingTool-app.xml"
|
||||||
|
}
|
||||||
BIN
resources/icons/icon128.png
Normal file
BIN
resources/icons/icon128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
BIN
resources/icons/icon256.png
Normal file
BIN
resources/icons/icon256.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 91 KiB |
BIN
resources/icons/icon32.png
Normal file
BIN
resources/icons/icon32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
BIN
resources/icons/icon60.png
Normal file
BIN
resources/icons/icon60.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
Reference in New Issue
Block a user