forked from team-emo/emo-framework
/
README.txt
164 lines (107 loc) · 5.03 KB
/
README.txt
1
2
3
4
5
6
7
8
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
==============================================================
emo-framework: Lightweight 2D OpenGL game framework for Android / iOS
Copyright (c) 2011 emo-framework project
==============================================================
Home: http://www.emo-framework.com/
Google Code: http://code.google.com/p/emo-framework/
emo-framework is licensed under the terms of the New BSD License (see LICENSE.txt).
= Install project template for Android =
Use Eclipse project template to create new emo project for Android.
Download the latest source distribution from http://code.google.com/p/emo-framework/downloads/list . The project template for Eclipse is in the Android-Template directory.
* Start your Eclipse
* Select 'File' -> 'Import' menu
* Select 'General' -> 'Existing Projects into Workspace'
http://www.emo-framework.com/images/eclipse_install1.png
* Choose 'Select root directory' and browse for the parent directory of the Android-Template directory.
http://www.emo-framework.com/images/eclipse_install2.png
* Check the 'copy projects into workspace' if you want to copy them to your workspace. (Normally you may need to check it.)
* Check the 'Android-Template' directory and press 'Finish' button
http://www.emo-framework.com/images/eclipse_install3.png
Edit package name in the !AndroidManifest.xml. Otherwise "com.emo_framework.examples" is used for your app. (you won't be happy with it...)
{{{
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.emo_framework.examples"
android:versionCode="1"
android:versionName="1.0">
}}}
The main script file is *assets/main.nut*. Edit it to create your own game.
http://www.emo-framework.com/images/eclipse_install4.png
{{{
function emo::onLoad() {
// print log into the logcat
print("It works!");
emo.Stage().load(Main());
}
}}}
= Build examples for Android =
The example for Eclipse is in the Android-Examples directory.
* Start your Eclipse
* Select 'File' -> 'Import' menu
* Select 'General' -> 'Existing Projects into Workspace'
http://www.emo-framework.com/images/eclipse_install1.png
* Choose 'Select root directory' and browse for the parent directory of the Android-Examples directory.
http://www.emo-framework.com/images/eclipse_install2.png
* Check the 'copy projects into workspace' if you want to copy them to your workspace. (Normally you may need to check it.)
* Check the 'Android-Examples' directory and press 'Finish' button
= Install project template for Xcode 3 =
Use project template for Xcode 3 to create emo project for iOS.
Download the latest source distribution from http://code.google.com/p/emo-framework/downloads/list . You can install the project template for Xcode 3 by using project template installer.
* Open Terminal
* In the terminal cd to the directory where you extract the source distribution. It goes something like below:
{{{
$ cd ~/Downloads/emo-framework-X.X.X-source
}}}
* type ./install-templates-Xcode3.sh -u
{{{
$ ./install-templates-Xcode3.sh -u
}}}
The -u option installs the project template into the user's Library directory: ~/Library/Application Support/Developer/Shared/Xcode .
If you want to install into global directory, type following. This installs the template into /Library/Application Support/Developer/Shared/Xcode .
{{{
$ sudo ./install-templates-Xcode3.sh
}}}
If you want to re-install the project template, add -f option.
{{{
$ ./install-templates-Xcode3.sh -u -f
}}}
After installing project template into your Xcode 3, you can choose the User Template to create new emo project for iOS.
http://www.emo-framework.com/images/xcode_install1.png
http://www.emo-framework.com/images/xcode_install2.png
The main script file is *Resources/main.nut*. Edit main.nut to create your own game.
http://www.emo-framework.com/images/xcode_install3.png
{{{
function emo::onLoad() {
// print log into the console
print("It works!");
emo.Stage().load(Main());
}
}}}
Have fun with emo!
http://www.emo-framework.com/images/xcode_install4.png
= Using with Xcode 4 =
emo-framework 0.1.2 and above contains project template for Xcode 4.
Download the latest source distribution from http://code.google.com/p/emo-framework/downloads/list . You can install the project template for Xcode 4 by using project template installer.
* Open Terminal
* In the terminal cd to the directory where you extract the source distribution. It goes something like below:
{{{
$ cd ~/Downloads/emo-framework-X.X.X-source
}}}
* type ./install-templates-Xcode4.sh
{{{
$ ./install-templates-Xcode4.sh
}}}
If you want to re-install the project template, add -f option.
{{{
$ ./install-templates-Xcode4.sh -f
}}}
After installing project template into your Xcode 4, you can choose the User Template to create new emo project for iOS.
The main script file is *Resources/main.nut*. Edit main.nut to create your own game.
http://www.emo-framework.com/images/xcode4_install2.png
{{{
function emo::onLoad() {
// print log into the console
print("It works!");
emo.Stage().load(Main());
}
}}}
Have fun with emo!