Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
25 files changed:
import android::portrait
import moles
import android::portrait
import moles
import moles
import effects
import moles
import effects
module friendz_android
import friendz
module friendz_android
import friendz
import android::landscape
redef class App
import android::landscape
redef class App
module friendz_linux
import friendz
module friendz_linux
import friendz
redef class Display
redef fun wanted_width do return app.screen_width
redef class Display
redef fun wanted_width do return app.screen_width
# limitations under the License.
import s2pn
# limitations under the License.
import s2pn
# limitations under the License.
import s2pn
# limitations under the License.
import s2pn
android_manifest """<uses-permission android:name="android.permission.VIBRATE" />"""
end
android_manifest """<uses-permission android:name="android.permission.VIBRATE" />"""
end
import android::portrait
import serialization
import android::portrait
import serialization
module simple_linux
import simple
module simple_linux
import simple
android_api_target 10
end
android_api_target 10
end
import android::audio
import android::vibration
import android::landscape
import android::audio
import android::vibration
import android::landscape
# GNU/Linux client with config saved to `config.json`
module linux_client
# GNU/Linux client with config saved to `config.json`
module linux_client
import linux::audio
import json::serialization
import linux::audio
import json::serialization
import android::sensors
class Ball
import android::sensors
class Ball
import android::portrait
import android::vibration
import android::portrait
import android::vibration
redef class ImageSet
redef fun start_over_path do return "images/play_again.png"
redef class ImageSet
redef fun start_over_path do return "images/play_again.png"
module shoot_android
import shoot
module shoot_android
import shoot
module shoot_linux
import shoot
module shoot_linux
import shoot
# Pointer and hardware key events
module input_events
# Pointer and hardware key events
module input_events
import android
in "C header" `{
import android
in "C header" `{
import x11
if "NIT_TESTING".environ == "true" then exit(0)
import x11
if "NIT_TESTING".environ == "true" then exit(0)
intrude import ::android::input_events
in "C" `{
intrude import ::android::input_events
in "C" `{
module android_opengles1 is ldflags "-lEGL -lGLESv1_CM"
import android_app
module android_opengles1 is ldflags "-lEGL -lGLESv1_CM"
import android_app
in "C" `{
#include <android_native_app_glue.h>
in "C" `{
#include <android_native_app_glue.h>
module assets
import mnit_app
module assets
import mnit_app
# General asset
interface Asset
# General asset
interface Asset
import mnit
import sdl
import linux_opengles1
import mnit
import sdl
import linux_opengles1
in "C" `{
#include <EGL/egl.h>
in "C" `{
#include <EGL/egl.h>
module mnit_app
import ::app
module mnit_app
import ::app
# An App instance serves as base to every Mnit projects.
#
# An App instance serves as base to every Mnit projects.
#
# OpenGL ES1 general support (most of it)
module opengles1 is pkgconfig("glesv1_cm", "egl")
# OpenGL ES1 general support (most of it)
module opengles1 is pkgconfig("glesv1_cm", "egl")
in "C header" `{
#include <EGL/egl.h>
in "C header" `{
#include <EGL/egl.h>
# Manage images that are tileset or glyphset (for bitmap fonts)
module tileset
# Manage images that are tileset or glyphset (for bitmap fonts)
module tileset
# Efficiently retrieve tiles in a big image
class TileSet
# Efficiently retrieve tiles in a big image
class TileSet
ldflags(exec("sdl-config", "--libs"), "-lSDL_image -lSDL_ttf")
end
ldflags(exec("sdl-config", "--libs"), "-lSDL_image -lSDL_ttf")
end
import c
in "C header" `{
import c
in "C header" `{