Giter Club home page Giter Club logo

air-mobile-sample-project's Introduction

Scaffold Project for iOS

This project is set up as a universal application supporting iPhone and iPad, as well as any Android device. Use it as the basis for your mobile game projects. The recommended approach is to simply copy the complete directory somewhere on your disk, rename the classes appropriately for your game, and add your game logic step by step.

Features:

  • Assets for low- and high-resolution devices are loaded depending on screen size.
  • Devices with screens smaller than 480x720 use SD graphics (e.g. old iPhone).
  • Devices with greater resolutions use HD graphics (e.g. Retina iPhone, iPad).
  • The assets are loaded from disk (instead of embedding them) to save memory.
  • The "AssetManager" class simplifies management of your game assets.
  • App icons and Startup images are correctly set up.
  • While Starling is starting up, the background image is displayed in the classic display list. This provides a seamless startup process.
  • The project proposes a simple structure to navigate between game and menu. This is done with three classes: "Root", "Game" and "Menu".

To find out more about multi-resolution development, please visit the Starling Wiki. It also contains an article about auto-rotation.

How to build this project

If you are working with Flash Builder, you can import the project using "File - Import Flash Builder Project". In other IDEs, set up the project as an "ActionScript Mobile Project" and add the directories "src", "system", and "assets" to your source paths (that's required so that they are added to the application package when the project is built). Furthermore, you have to link Starling to the project (either its "src" directory or the precompiled SWC file).

Note: You will need at least AIR 3.2 to deploy AIR applications on a mobile device. To deploy to actual Android or iOS devices, you will need the certificates and profiles provided by Google or Apple.

air-mobile-sample-project's People

Contributors

pjvds avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.