Permalink
Browse files

android version

  • Loading branch information...
c99koder committed Oct 20, 2014
1 parent 74c9bee commit d55f9b8a65639fe56d1ad6b601d827911d7dbbea
Showing with 973 additions and 0 deletions.
  1. +12 −0 android/.classpath
  2. +33 −0 android/.project
  3. +35 −0 android/AndroidManifest.xml
  4. BIN android/libs/ZControllerLib-android-1.6.0.jar
  5. BIN android/libs/ZControllerLib-android-ui-1.6.0.jar
  6. BIN android/libs/ZControllerLib-common-1.6.0.jar
  7. BIN android/libs/zc-strings-1.6.0.jar
  8. +40 −0 android/proguard.cfg
  9. +11 −0 android/project.properties
  10. BIN android/res/drawable-mdpi/bg.png
  11. BIN android/res/drawable-mdpi/bigsquare.png
  12. BIN android/res/drawable-mdpi/enemy.png
  13. BIN android/res/drawable-mdpi/evil.png
  14. BIN android/res/drawable-mdpi/game_bg.png
  15. BIN android/res/drawable-mdpi/icon.png
  16. BIN android/res/drawable-mdpi/invincible.png
  17. BIN android/res/drawable-mdpi/logo.png
  18. BIN android/res/drawable-mdpi/minus1000.png
  19. BIN android/res/drawable-mdpi/player.png
  20. BIN android/res/drawable-mdpi/plus1000.png
  21. BIN android/res/drawable-mdpi/score.png
  22. BIN android/res/drawable-mdpi/slowdown.png
  23. BIN android/res/drawable-mdpi/smallsquare.png
  24. BIN android/res/drawable-mdpi/speedup.png
  25. BIN android/res/drawable-mdpi/stat_bg.png
  26. +92 −0 android/res/layout/game.xml
  27. +57 −0 android/res/layout/title.xml
  28. BIN android/res/raw/collect.wav
  29. BIN android/res/raw/gameover.wav
  30. BIN android/res/raw/powerdown.wav
  31. BIN android/res/raw/powerup.wav
  32. +4 −0 android/res/values/strings.xml
  33. +464 −0 android/src/org/c99/dcsquares/DCSquaresActivity.java
  34. +83 −0 android/src/org/c99/dcsquares/DCSquaresApplication.java
  35. +94 −0 android/src/org/c99/dcsquares/GameActivity.java
  36. +48 −0 android/src/org/c99/dcsquares/TitleScreenActivity.java
View
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="lib" path="libs/zc-strings-1.6.0.jar"/>
<classpathentry kind="lib" path="libs/ZControllerLib-android-1.6.0.jar"/>
<classpathentry kind="lib" path="libs/ZControllerLib-android-ui-1.6.0.jar"/>
<classpathentry kind="lib" path="libs/ZControllerLib-common-1.6.0.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
View
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>DCSquares-android</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.c99.dcsquares"
android:versionCode="1"
android:versionName="1.0" >
<uses-permission android:name="android.permission.BLUETOOTH"></uses-permission>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"></uses-permission>
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="14"/>
<application
android:icon="@drawable/icon" android:name="DCSquaresApplication"
android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:hardwareAccelerated="true">
<activity
android:label="@string/app_name"
android:name=".TitleScreenActivity" android:screenOrientation="landscape" android:immersive="true">
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:label="@string/app_name"
android:name=".GameActivity" android:screenOrientation="landscape" android:immersive="true">
<intent-filter >
<action android:name="android.intent.action.VIEW" />
</intent-filter>
</activity>
<!-- Controller user interface. -->
<activity android:name="com.zeemote.zc.ui.android.ControllerAndroidUi$Activity" />
</application>
</manifest>
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
@@ -0,0 +1,40 @@
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService
-keepclasseswithmembernames class * {
native <methods>;
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
View
@@ -0,0 +1,11 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
target=android-14
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bg"
android:orientation="horizontal" android:weightSum="100">
<android.opengl.GLSurfaceView
android:id="@+id/squaresView"
android:layout_height="match_parent"
android:layout_margin="10dip" android:layout_weight="100" android:layout_width="wrap_content"/>
<LinearLayout
android:layout_width="100dp"
android:layout_height="wrap_content"
android:orientation="vertical" android:layout_marginRight="10dp" android:layout_marginTop="10dp">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="46dp"
android:orientation="vertical" android:background="@drawable/stat_bg" android:layout_marginBottom="10dp">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Score" android:gravity="center_horizontal"/>
<TextView
android:id="@+id/scoreLabel"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="0" android:gravity="center"/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="46dp"
android:orientation="vertical" android:background="@drawable/stat_bg" android:layout_marginBottom="10dp">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Squares" android:gravity="center_horizontal"/>
<TextView
android:id="@+id/squaresLabel"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="0" android:gravity="center"/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="46dp"
android:orientation="vertical" android:background="@drawable/stat_bg" android:layout_marginBottom="10dp">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Combo" android:gravity="center_horizontal"/>
<TextView
android:id="@+id/comboLabel"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="0" android:gravity="center"/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="46dp"
android:orientation="vertical" android:background="@drawable/stat_bg" android:layout_marginBottom="10dp">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Time" android:gravity="center_horizontal"/>
<TextView
android:id="@+id/timeLabel"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="0" android:gravity="center"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bg"
android:orientation="vertical" >
<android.opengl.GLSurfaceView
android:id="@+id/squaresView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dip"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/squaresView"
android:layout_centerHorizontal="true"
android:layout_marginTop="72dp"
android:src="@drawable/logo" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/squaresView"
android:layout_centerHorizontal="true"
android:layout_marginBottom="32dp" >
<Button
android:id="@+id/playBtn"
android:layout_width="160dip"
android:layout_height="wrap_content"
android:text="New Game" android:layout_margin="16dp"/>
<Button
android:id="@+id/settingsBtn"
android:layout_width="160dip"
android:layout_height="wrap_content"
android:text="Settings" android:layout_margin="16dp"/>
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/squaresView"
android:layout_alignLeft="@+id/squaresView"
android:text="Version 1.0" android:layout_marginLeft="6dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/squaresView"
android:layout_alignRight="@+id/squaresView"
android:text="© 2001-2011 Sam Steele" android:layout_marginRight="6dp"/>
</RelativeLayout>
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">DCSquares</string>
</resources>
Oops, something went wrong.

0 comments on commit d55f9b8

Please sign in to comment.