mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-25 17:39:09 -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/
|
||||
.vscode/
|
||||
.DS_Store
|
||||
resources/
|
||||
|
||||
# Resource file
|
||||
data/
|
||||
cfg.*.xml
|
||||
|
||||
# Certificates and keys
|
||||
*.p12
|
||||
*.pfx
|
||||
*.pem
|
||||
*.crt
|
||||
*.crt
|
||||
|
||||
@@ -109,22 +109,22 @@
|
||||
<!-- <maxSize></maxSize> -->
|
||||
|
||||
<!-- 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 -->
|
||||
<!-- <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 -->
|
||||
<!-- <orientationAnimation></orientationAnimation> -->
|
||||
|
||||
<!-- 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 -->
|
||||
<renderMode>gpu</renderMode>
|
||||
<renderMode>direct</renderMode>
|
||||
|
||||
<!-- 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." -->
|
||||
<!-- <softKeyboardBehavior></softKeyboardBehavior> -->
|
||||
@@ -154,42 +154,12 @@
|
||||
|
||||
<!-- 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. -->
|
||||
<!-- <icon>
|
||||
<image16x16></image16x16>
|
||||
<image29x29></image29x29>
|
||||
<image32x32></image32x32>
|
||||
<image36x36></image36x36>
|
||||
<image40x40></image40x40>
|
||||
<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> -->
|
||||
<icon>
|
||||
<image32x32>icons/icon32.png</image32x32>
|
||||
<image60x60>icons/icon60.png</image60x60>
|
||||
<image128x128>icons/icon128.png</image128x128>
|
||||
<image256x256>icons/icon256.png</image256x256>
|
||||
</icon>
|
||||
|
||||
<!-- 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).
|
||||
@@ -285,7 +255,7 @@
|
||||
<!-- <excludeDefaultUsageDescriptions></excludeDefaultUsageDescriptions> -->
|
||||
<!-- </iPhone> -->
|
||||
|
||||
<!--<android> -->
|
||||
<android>
|
||||
<!-- Specify Android specific tags that get passed to AndroidManifest.xml file. -->
|
||||
<!-- <manifestAdditions>
|
||||
<![CDATA[
|
||||
@@ -366,14 +336,14 @@
|
||||
<!-- <storageAccessFrameworkFromAPI></storageAccessFrameworkFromAPI> -->
|
||||
<!-- 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". -->
|
||||
<!-- <displayCutoutMode></displayCutoutMode> -->
|
||||
<displayCutoutMode>always</displayCutoutMode>
|
||||
<!-- 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. -->
|
||||
<!-- <manifestPlaceholders> -->
|
||||
<!-- <manifestPlaceholder>baseUrl: "dev.demoserver.com"</manifestPlaceholder> -->
|
||||
<!-- </manifestPlaceholders> -->
|
||||
|
||||
<!-- </android> -->
|
||||
</android>
|
||||
<!-- A folder to include in the search for Android resources. Optional. -->
|
||||
<!-- <resdir></resdir> -->
|
||||
|
||||
|
||||
@@ -31,6 +31,22 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
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