├── Changes.md ├── LICENSE ├── README.md ├── apps ├── Flappybalt │ ├── Flappybalt.hxproj │ ├── LICENSE │ ├── Project.xml │ ├── README.md │ ├── assets │ │ ├── bg.png │ │ ├── dove.png │ │ ├── feather.png │ │ ├── icon.png │ │ ├── icon.svg │ │ ├── paddle.png │ │ ├── screenshot.png │ │ └── spike.png │ └── source │ │ ├── Main.hx │ │ ├── Paddle.hx │ │ ├── PlayState.hx │ │ ├── Player.hx │ │ └── Reg.hx ├── HerokuShaders │ └── project.nmml ├── PiratePig │ └── project.nmml ├── Tilemap │ ├── Tilemap.hx │ ├── Tilemap.nmml │ ├── Tiles.png │ └── icon.svg └── boot │ ├── build.nmml │ ├── default.svg │ └── src │ └── AcadnmeBoot.hx ├── engine ├── assets │ ├── banner.svg │ └── icon.svg ├── build.nmml └── src │ ├── Acadnme.hx │ ├── AllNme.hx │ └── IBoot.hx ├── haxelib.json ├── include.xml └── tools └── run ├── RunMain.hx └── compile.hxml /Changes.md: -------------------------------------------------------------------------------- 1 | - update Flappybalt to flixel version 4 2 | - Updated to latest NME version 3 | 4 | 1.0.0 5 | -------------------------- 6 | * Created 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 nmehost 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # acadnme 2 | Acadnme is the basic Cppia host for Nme applications 3 | 4 | 5 | Rebuilding 6 | ---------- 7 | First, you need to rebuild the 'exports' directory. 8 | This is done with 9 | ``` 10 | cd engine 11 | nme nocompile 12 | ``` 13 | 14 | Then, you build each of the apps into a ".nme" file 15 | ``` 16 | cd apps/boot 17 | nme cppia installer 18 | cd apps/Flappybalt 19 | nme cppia installer 20 | cd apps/HerokuShaders 21 | nme cppia installer 22 | cd apps/PiratePig 23 | nme cppia installer 24 | cd apps/Tilemap 25 | nme cppia installer 26 | ``` 27 | 28 | Finally, compile the engine into a runtime: 29 | ``` 30 | cd engine 31 | nme cpp (for your host target) 32 | or 33 | nme android 34 | or 35 | nme ios update 36 | ``` 37 | If you need a debug build, you can add the "-debug" flag: 38 | ``` 39 | cd engine 40 | nme cpp -debug 41 | ``` 42 | 43 | 44 | Having built the host, you can test the included apps (or indeed any project) with 45 | ``` 46 | cd app/MyApp 47 | nme cppia 48 | ``` 49 | 50 | From a git version, you will also need to build the 'run.n' script so "haxelib run..." will work. This is done with: 51 | ``` 52 | cd tools/run 53 | haxe compile.hxml 54 | ``` 55 | -------------------------------------------------------------------------------- /apps/Flappybalt/Flappybalt.hxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /apps/Flappybalt/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Adam 'Atomic' Saltsman 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /apps/Flappybalt/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /apps/Flappybalt/README.md: -------------------------------------------------------------------------------- 1 | # ![Icon](assets/icon.png) Flappybalt 2 | 3 |

4 | Screenshot 5 |

6 | 7 | A cross-platform port of [AdamAtomic](https://github.com/AdamAtomic)'s [Flappybalt](http://adamatomic.com/flappybalt/), converted to [Haxe](http://www.haxe.org) and [HaxeFlixel](http://www.haxeflixel.com). You can play this on your Android by downloading it from the [Google Play Store](https://play.google.com/store/apps/details?id=com.steverichey.flappybalt) if you'd like. 8 | 9 | # Releasing for Android with HaxeFlixel (Windows) 10 | 11 | The process for releasing a HaxeFlixel game as an Android app is a bit complicated, so I thought I'd step through some of the steps. This is for Windows, but the process is largely the same for any platform. 12 | 13 | 1. [Register](https://play.google.com/apps/publish/signup/) for a Google Play Developer Console account. The charge is currently $25. 14 | 2. Prepare to compile by running `lime setup android`. Make sure that your path to the Java JDK looks like `c:\java\jdk1.6.0_37` and NOT to the `bin` directory. 15 | 2. Compile your app for Android. This can be done simply by running `lime build android` from the command line in your project directory. Make sure your input is set up properly, accounting for touch controls and the lack of mouse/keyboard! HaxeFlixel has some handy Haxe defines for this, e.g. `FLX_NO_MOUSE`, `FLX_NO_KEYBOARD`, etc. 16 | 3. Test your app on an Android device! You can set up the Android Debug Bridge (ADB) for this, but you could just email the APK to yourself. Slower, but easier. 17 | 4. Provided everything works, you'll need to sign your app before you release it. So long as your `JAVA_HOME` environment variable points to the BIN directory (e.g. `c:/java/jdk1.6.0_37/bin/`) you can do this by running `keytool` from the command line. [Google recommends](http://developer.android.com/tools/publishing/app-signing.html) the following settings: 18 | 19 | ```` 20 | keytool -genkey -v -keystore YOUR_RELEASE_KEY.keystore -alias YOUR_ALIAS -keyalg RSA -keysize 2048 -validity 10000 21 | ```` 22 | 23 | It will ask for a password and stuff, which you will need to remember! Obviously, use your own values for `YOUR_RELEASE_KEY` and `YOUR_ALIAS`. 24 | 25 | In order for Lime to see your certificate, you need to add it to the `Project.XML` file. You can add this line: 26 | 27 | ```` 28 | 29 | ```` 30 | 31 | Obviously use your own values where appropriate. Now when you run `lime build android` it will sign the app automagically! Just look for `MyApp-release.apk` in `export/android/bin/bin/`. 32 | 33 | Finally, [upload your APK](https://play.google.com/apps/publish/)! You can set up Google Play stuff too. 34 | 35 | ## Optional Steps 36 | 37 | * If you have an SVG file set up as your icon in your `Project.XML` file, Lime will make nice high-res icons for you. Do this! Just add `` to your `Project.XML` file. You can create SVGs using [InkScape](http://inkscape.org/en/), or even by hand, as they are [basically just XML files](http://www.w3.org/TR/SVG11/). 38 | * Don't want to scare off potential customers with a bunch of app permissions? Lime includes a few by default, but this can be overridden. After building your app at least once, get `export/android/bin/bin/AndroidManifest.xml` and copy it somewhere else (I usually put it into a `libs` directory). Then, in your `Project.XML`, add: 39 | 40 | ```` 41 |