Permalink
Browse files

Initial commit.

  • Loading branch information...
NewCreature committed Jul 10, 2017
0 parents commit dded1e2c920660fe1fc3a24370ee8c299d256d7d
Showing with 13,250 additions and 0 deletions.
  1. +41 −0 .gitignore
  2. +40 −0 android/template/AndroidManifest.xml
  3. +17 −0 android/template/ant.properties
  4. BIN android/template/assets/alexlogo.png
  5. +85 −0 android/template/build.xml
  6. +86 −0 android/template/jni/Android.mk
  7. +13 −0 android/template/jni/Application.mk
  8. +204 −0 android/template/jni/main.c
  9. +11 −0 android/template/project.properties
  10. +46 −0 android/template/res/layout/edit_box.xml
  11. +13 −0 android/template/res/layout/main.xml
  12. +4 −0 android/template/res/values/strings.xml
  13. +11 −0 android/template/run.sh
  14. +87 −0 android/template/src/org/liballeg/example/EditBoxActivity.java
  15. +102 −0 android/template/src/org/liballeg/example/ExampleActivity.java
  16. +2 −0 bin/data/t3f.dat
  17. +5 −0 changelog
  18. +110 −0 debian/control_gen.c
  19. +5 −0 debian/postinst
  20. +1 −0 debian/postrm
  21. +1 −0 debian/prerm
  22. +32 −0 docs/README
  23. +1 −0 docs/copyright
  24. BIN icons/android_icon-hdpi_72.png
  25. BIN icons/android_icon-ldpi_36.png
  26. BIN icons/android_icon-mdpi_48.png
  27. BIN icons/android_icon-xhdpi_96.png
  28. +970 −0 icons/debian_icon.svg
  29. BIN icons/macosx_icon.icns
  30. BIN icons/old_windows_icon.ico
  31. BIN icons/windows_icon.ico
  32. +35 −0 macosx/Info.plist
  33. +1 −0 macosx/PkgInfo
  34. +26 −0 macosx/builder/create-dmg.builder
  35. +210 −0 macosx/create-dmg
  36. +3 −0 macosx/sample
  37. +141 −0 macosx/support/dmg-license.py
  38. +77 −0 macosx/support/template.applescript
  39. +565 −0 src/DUMBA5/dumba5.c
  40. +113 −0 src/DUMBA5/dumba5.h
  41. +57 −0 src/Makefile
  42. +53 −0 src/codec_allegro_acodec.c
  43. +8 −0 src/codec_allegro_acodec.h
  44. +8 −0 src/codec_avmidiplayer.h
  45. +78 −0 src/codec_avmidiplayer.m
  46. +8 −0 src/codec_avplayer.h
  47. +83 −0 src/codec_avplayer.m
  48. +68 −0 src/codec_dumba5.c
  49. +8 −0 src/codec_dumba5.h
  50. +9 −0 src/defines.h
  51. +21 −0 src/instance.h
  52. +88 −0 src/main.c
  53. +82 −0 src/makefile.android
  54. +63 −0 src/makefile.common
  55. +93 −0 src/makefile.defines
  56. +4 −0 src/makefile.include
  57. +10 −0 src/makefile.linux
  58. +72 −0 src/makefile.linux_static
  59. +37 −0 src/makefile.macosx
  60. +12 −0 src/makefile.mingw
  61. +57 −0 src/makefile.mingw_cross
  62. +49 −0 src/makefile.pandora
  63. +12 −0 src/player.c
  64. +28 −0 src/player.h
  65. +13 −0 src/player_registry.c
  66. +18 −0 src/player_registry.h
  67. +212 −0 src/t3f/android.c
  68. +9 −0 src/t3f/android.h
  69. +561 −0 src/t3f/animation.c
  70. +87 −0 src/t3f/animation.h
  71. +260 −0 src/t3f/atlas.c
  72. +28 −0 src/t3f/atlas.h
  73. +98 −0 src/t3f/bitmap.c
  74. +7 −0 src/t3f/bitmap.h
  75. +1,133 −0 src/t3f/collision.c
  76. +157 −0 src/t3f/collision.h
  77. +505 −0 src/t3f/controller.c
  78. +79 −0 src/t3f/controller.h
  79. +55 −0 src/t3f/debug.c
  80. +9 −0 src/t3f/debug.h
  81. +108 −0 src/t3f/draw.c
  82. +9 −0 src/t3f/draw.h
  83. +496 −0 src/t3f/font.c
  84. +62 −0 src/t3f/font.h
  85. +475 −0 src/t3f/gui.c
  86. +87 −0 src/t3f/gui.h
  87. +153 −0 src/t3f/memory.c
  88. +10 −0 src/t3f/memory.h
  89. +90 −0 src/t3f/menu.c
  90. +17 −0 src/t3f/menu.h
  91. +297 −0 src/t3f/music.c
  92. +35 −0 src/t3f/music.h
  93. +65 −0 src/t3f/primitives.c
  94. +22 −0 src/t3f/primitives.h
  95. +340 −0 src/t3f/resource.c
  96. +50 −0 src/t3f/resource.h
  97. +34 −0 src/t3f/rng.c
  98. +17 −0 src/t3f/rng.h
  99. +126 −0 src/t3f/sound.c
  100. +30 −0 src/t3f/sound.h
  101. +1,529 −0 src/t3f/t3f.c
  102. +177 −0 src/t3f/t3f.h
  103. +598 −0 src/t3f/tilemap.c
  104. +114 −0 src/t3f/tilemap.h
  105. +456 −0 src/t3f/vector.c
  106. +100 −0 src/t3f/vector.h
  107. +95 −0 src/t3f/view.c
  108. +35 −0 src/t3f/view.h
  109. +35 −0 src/ui_init.c
  110. +6 −0 src/ui_init.h
  111. +173 −0 src/ui_menu_proc.c
  112. +11 −0 src/ui_menu_proc.h
  113. +1 −0 win32/icon.rc
  114. +65 −0 win32/info_fixer.c
  115. +35 −0 win32/installer.iss
@@ -0,0 +1,41 @@
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
*.apk
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store*
ehthumbs.db
#Icon?
Thumbs.db
# files generated by my project #
#######################################
*.app
docs/changelog
src/makefile.config
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.liballeg.example"
android:versionCode="APP_RELEASE_NUMBER"
android:versionName="APP_VERSION_STRING">
<uses-sdk android:minSdkVersion="12"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<application android:label="@string/app_name" android:debuggable="false" android:icon="@drawable/icon">
<activity android:name="org.liballeg.example.ExampleActivity"
android:label="@string/app_name"
android:launchMode="singleTask"
android:screenOrientation="unspecified"
android:configChanges="screenLayout|uiMode|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- Tell Allegro the name of the game .so when using dynamic linking -->
<meta-data android:name="org.liballeg.app_name"
android:value="allegro-example"/>
</activity>
<activity android:name="org.liballeg.example.EditBoxActivity"
android:label="@string/app_name"
android:launchMode="standard"
android:screenOrientation="behind"
android:theme="@android:style/Theme.Holo.Dialog"
android:configChanges="screenLayout|uiMode|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
<!-- Tell Allegro the name of the game .so when using dynamic linking -->
<meta-data android:name="org.liballeg.app_name"
android:value="allegro-example"/>
</activity>
</application>
</manifest>
@@ -0,0 +1,17 @@
# This file is used to override default values used by the Ant build system.
#
# This file must be checked in Version Control Systems, as it is
# integral to the build system of your project.
# This file is only used by the Ant script.
# You can use this to override default values such as
# 'source.dir' for the location of your java source folder and
# 'out.dir' for the location of your output folder.
# You can also use it define how the release builds are signed by declaring
# the following properties:
# 'key.store' for the location of your keystore and
# 'key.alias' for the name of the key to use.
# The password will be asked during the build when you use the 'release' target.
Binary file not shown.
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="alandroid-project" default="help">
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<property file="local.properties" />
<!-- The ant.properties file can be created by you. It is only edited by the
'android' tool to add properties to it.
This is the place to change some Ant specific build properties.
Here are some properties you may want to change/update:
source.dir
The name of the source directory. Default is 'src'.
out.dir
The name of the output directory. Default is 'bin'.
For other overridable properties, look at the beginning of the rules
files in the SDK, at tools/ant/build.xml
Properties related to the SDK location or the project target should
be updated using the 'android' tool with the 'update' action.
This file is an integral part of the build system for your
application and should be checked into Version Control Systems.
-->
<property file="ant.properties" />
<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
This contains project specific properties such as project target, and library
dependencies. Lower level build properties are stored in ant.properties
(or in .classpath for Eclipse projects).
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />
<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
unless="sdk.dir"
/>
<!-- extension targets. Uncomment the ones where you want to do custom work
in between standard targets -->
<!--
<target name="-pre-build">
</target>
<target name="-pre-compile">
</target>
/* This is typically used for code obfuscation.
Compiled code location: ${out.classes.absolute.dir}
If this is not done in place, override ${out.dex.input.absolute.dir} */
<target name="-post-compile">
</target>
-->
<!-- Import the actual build file.
To customize existing targets, there are two options:
- Customize only one target:
- copy/paste the target into this file, *before* the
<import> task.
- customize it to your needs.
- Customize the whole content of build.xml
- copy/paste the content of the rules files (minus the top node)
into this file, replacing the <import> task.
- customize to your needs.
***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
</project>
@@ -0,0 +1,86 @@
# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
TARGET_ARCH_ABI := armeabi-v7a
include $(CLEAR_VARS)
LOCAL_MODULE := liballegro-prebuilt
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/liballegro.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := liballegro_primitives-prebuilt
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/liballegro_primitives.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := liballegro_image-prebuilt
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/liballegro_image.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := liballegro_font-prebuilt
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/liballegro_font.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := liballegro_ttf-prebuilt
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/liballegro_ttf.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := liballegro_audio-prebuilt
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/liballegro_audio.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := liballegro_acodec-prebuilt
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/liballegro_acodec.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := liballegro_physfs-prebuilt
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/liballegro_physfs.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := liballegro_memfile-prebuilt
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/liballegro_memfile.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_ALLOW_UNDEFINED_SYMBOLS := true
LOCAL_MODULE := allegro-example
LOCAL_SRC_FILES := main.c
LOCAL_CFLAGS := -I$(ANDROID_NDK_TOOLCHAIN_ROOT)/user/$(TARGET_ARCH_ABI)/include -I../../../src/joynet/enet-1.3.1/include -DT3F_ANDROID $(PLATFORM_CFLAGS) -DT3F_ANDROID_NATIVE_CALL_PREFIX=$(NATIVE_CALL_PREFIX)
LOCAL_CFLAGS += -DDEBUGMODE
LOCAL_CFLAGS += -W -Wall
LOCAL_LDLIBS := -L$(ANDROID_NDK_TOOLCHAIN_ROOT)/user/$(TARGET_ARCH_ABI)/lib
LOCAL_LDLIBS += -L$(LOCAL_PATH)/$(TARGET_ARCH_ABI)
LOCAL_LDLIBS += -llog $(APP_LIBS) $(PLATFORM_LIBS)
LOCAL_LDLIBS += libs/$(TARGET_ARCH_ABI)/liballegro.so
LOCAL_LDLIBS += libs/$(TARGET_ARCH_ABI)/liballegro_primitives.so
LOCAL_LDLIBS += libs/$(TARGET_ARCH_ABI)/liballegro_image.so
LOCAL_LDLIBS += libs/$(TARGET_ARCH_ABI)/liballegro_font.so
LOCAL_LDLIBS += libs/$(TARGET_ARCH_ABI)/liballegro_ttf.so
LOCAL_LDLIBS += libs/$(TARGET_ARCH_ABI)/liballegro_audio.so
LOCAL_LDLIBS += libs/$(TARGET_ARCH_ABI)/liballegro_acodec.so
LOCAL_LDLIBS += libs/$(TARGET_ARCH_ABI)/liballegro_physfs.so
LOCAL_LDLIBS += libs/$(TARGET_ARCH_ABI)/liballegro_memfile.so
include $(BUILD_SHARED_LIBRARY)
@@ -0,0 +1,13 @@
TARGET_ARCH_ABI := armeabi-v7a
APP_PLATFORM := android-12
APP_ABI := $(TARGET_ARCH_ABI)
APP_MODULES := liballegro-prebuilt
APP_MODULES += liballegro_primitives-prebuilt
APP_MODULES += liballegro_image-prebuilt
APP_MODULES += liballegro_font-prebuilt
APP_MODULES += liballegro_ttf-prebuilt
APP_MODULES += liballegro_audio-prebuilt
APP_MODULES += liballegro_acodec-prebuilt
APP_MODULES += liballegro_physfs-prebuilt
APP_MODULES += liballegro_memfile-prebuilt
APP_MODULES += allegro-example
Oops, something went wrong.

0 comments on commit dded1e2

Please sign in to comment.