Giter Site home page Giter Site logo

moai-dev's Introduction

Welcome to Moai!

Thanks for checking out the Moai source code. Here's the scoop.

Linux CI: Build Status OSX CI: Build Status

Introduction

Moai SDK is an open source game framework for quickly developing great mobile games.

You can work in Lua or C++, and Moai SDK runs on multiple platforms including iOS, Android, Chrome, Windows, Mac and Linux.

Download

Please clones the source in the following way.

git clone [email protected]:moai/moai-dev.git
git submodule init
git submodule update

Setup

Tools needed to build the MOAI SDK.

The following tools are required to build the API documentation.

Please set the following environment variables.

# Mac OSX
export MOAI_BIN=<install_path>/moai-dev/release/osx/host-sdl/bin
export MOAI_CONFIG=<install_path>/moai-dev/samples/config

# Linux
export MOAI_BIN=<install_path>/moai-dev/release/linux/host-sdl/x64/bin
export MOAI_CONFIG=<install_path>/moai-dev/samples/config

# Windows
set MOAI_BIN=<install_path>¥moai-dev¥release¥win32¥host-sdl¥bin
set MOAI_CONFIG=<install_path>¥moai-dev¥samples¥config

Build Hosts

Please build according to the following procedure.

Windows Host

cd moai-dev
.\bin\build-win.bat

OSX Host

# Build
cd moai-dev
./bin/build-osx-sdl.sh

# Run
cd <sample_directory>
$MOAI_BIN/moai main.lua

iOS Host

cd moai-dev
./bin/build-ios.sh <lua_dir>

Linux Host

# Build
cd moai-dev
./bin/build-linux-sdl.sh

# Run
$MOAI_BIN/moai main.lua

Android Host

# Build
export ANDROID_NDK=<path_to_android_ndk>
cd moai-dev
./bin/build-android.sh

# Edit Setting
cd release/android/host
vi settings-global.sh
vi settings-local.sh

# Run
./run-host.sh

HTML Host

#build
export EMSCRIPTEN_HOME=<path_to_emscripten_1.7.1>
cd moai-dev
./bin/build-html.sh

#run
<http-serve> cmake/build/host-template/www

#see src\host-html\readme.md for more info

Create IDE Projects

Visual Studio

Execute create-projects-win.bat in moai-dev\bin. By default, this creates a Visual Studio 2012 solution in moai-dev\cmake\projects\vs2012. To generate project files for a different version of Visual Studio, specify your desired version (vs2008, vs2010, vs2012, or vs2013) as a command-line argument.

iOS

./bin/create-projects-ios.sh
open cmake/projects/moai-ios/moai.xcproj

OSX

./bin/create-projects-osx.sh
open cmake/projects/moai-osx/moai.xcproj

Sample code

Go to the samples folder, which contains dozens of samples that can be run using one the hosts located in ant (Android), xcode (OSX and iOS), or Visual Studio (Windows).

One of our priorities is to build richer samples for Moai developers, so if you'd like to see a particular code sample, let us know by posting in the Moai forums.

License

This SDK uses the CPAL license. Refer to the for attribution screens to include with games made with Moai.

Forks

Links

Moai Pages

Tutorials

Libraries

Tools

moai-dev's People

Contributors

patrickmeehan avatar joshlytle1 avatar seanzipline avatar halfnelson avatar danadrew avatar makotok avatar jlytledistinctdev avatar superquadratic avatar rdalton avatar danielswolf avatar kibiz0r avatar hach-que avatar harningt avatar ziplinejon avatar vavius avatar pygy avatar jdaance avatar kengonakajima avatar eiriksm avatar seebs avatar markusfisch avatar tommo avatar naturally-intelligent avatar johncopic avatar bjorn avatar sporksmith avatar russellhochenedel avatar nanocell avatar robertwahler avatar nepherhotep avatar

Watchers

James Cloos 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.