GithubHelp home page GithubHelp logo

simonren / moai-beta Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moai/moai-beta

0.0 2.0 0.0 87.51 MB

C++ 9.24% Objective-C 3.07% C 75.42% CSS 0.12% JavaScript 1.13% Lua 0.45% Shell 3.06% Ruby 0.03% Emacs Lisp 0.01% Perl 6.08% Awk 0.01% Python 0.32% Smalltalk 0.02% Assembly 0.81% Java 0.15% Racket 0.01% Prolog 0.05% Erlang 0.01% R 0.01% eC 0.01%

moai-beta's Introduction

Project structure: 

3rdparty - All of the 3rd party libraries we use.
android - The Android reference projects.
distribute - The files and set up used to create the SDK installers and other distributable packages
samples - Lua and tools samples as well as some development test/experiment scripts.
src - Moai source code and headers.
test - Lua stress tests for Moai. These were written to crash Moai. We'll be fixing Moai to handle more user errors gracefully (instead of crash) as the project develops.
vs2008 - Visual Studio 2008 reference projects.
vs2010 - Visual Studio 2010 reference projects.
xcode - Mac OSX and iPhone projects. 

Developing on Windows:

Start with the vs2008 or 2010 reference solutions. Make sure a 32-bit architecture is selected (64-bit not yet officially supported). The 'moai' project builds moai.exe, a command line Moai host based on GLUT.

Lua samples are located in samples/basics. To run, build moai.exe. Add the MOAI_BIN and MOAI_CONFIG environment variables:

MOAI_BIN = <path to Moai>/vs20XX/bin/Win32/<Debug|Release>/
MOAI_CONFIG = <path to Moai>/config/

If these two environment variables are set up correctly, you can run each sample simply by double clicking the run.bat file found in each folder.

Developing on Mac:

Open xcode/osx/MoaiSample.xcodeproj. Make sure a 32-bit architecture is selected (64-bit not yet officially supported). Build moai as a command line utility.

To try out the samples, configure Xcode's debug working directory and command line parameters. Set the working directory to the directory of the sample you want to try, relative to the Xcode project (for example '../../samples/basics/anim-basic'). Set the command line parameters to '../../config/config.lua main.lua'.

config.lua sets up some richer error messages; it's a good idea to always pass it to Moai. main.lua runs the sample.

In Xcode 3, right click the executable and choose 'Get Info.' In Xcode 4, select 'Edit Scheme' from the Schemes drop down. You will find the settings on the 'Info' and 'Arguments' tab the scheme editor.

Developing for iOS:

Use xcode/ios/MoaiSample.xcodeproj. This sample project includes the Lua and image found in samples/basics/anim-basic. The Moai runtime is implemented in an OpenGL view. Look at AppDelegate to see how it is used.

As Moai is written in C++, we've generally preferred Objective-C++ for our work. To make dealing with Apple's reference counting easier, we use a smart pointer called RefPtr <>. If you're planning to extend MoaiView and don't mind using Objective-C++, try it out for yourself.

Developing on Linux:

 $ cmake .
 $ make

Installing the dependencies on Ubuntu:

 $ sudo apt-get install cmake libcurl4-openssl-dev libfreetype6-dev \
     liblua5.1-0-dev libpng12-dev freeglut3-dev libxi-dev libxmu-dev

moai-beta's People

Contributors

bjorn avatar ckohnert avatar dubois avatar hach-que avatar jlytledistinctdev avatar joshlytle1 avatar patrickmeehan avatar rdalton avatar seanzipline avatar simonren avatar ziplineandy avatar ziplinejon avatar

Watchers

 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.