Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Initial commit, migrate from Google Code, r18
  • Loading branch information
Keripo committed Mar 10, 2014
1 parent 24a217f commit d4d5d38
Show file tree
Hide file tree
Showing 222 changed files with 33,156 additions and 23 deletions.
14 changes: 14 additions & 0 deletions .classpath
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<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/UHL.jar">
<attributes>
<attribute name="javadoc_location" value="jar:platform:/resource/beats/libs/UHLdoc.zip!/"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="lib" path="libs/GoogleAdMobAdsSdk-6.2.1.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
23 changes: 23 additions & 0 deletions .gitignore
@@ -0,0 +1,23 @@
# Built application files
*.apk
*.ap_

# Files for the Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/
33 changes: 33 additions & 0 deletions .project
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>beats</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>
4 changes: 4 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,4 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.source=1.5
133 changes: 133 additions & 0 deletions AndroidManifest.xml
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.beatsportable.beats"
android:versionCode="18"
android:versionName="@string/App_version"
android:installLocation="auto">
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="16"
/>
<uses-permission android:name="android.permission.INTERNET"/> <!-- AdMob Localytics -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <!-- AdMob -->
<uses-permission android:name="android.permission.VIBRATE"/> <!-- Game -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <!-- Updates -->
<application
android:enabled="true"
android:icon="@drawable/icon"
android:label="@string/App_name"
android:description="@string/App_description">
<activity
android:name=".MenuHome"
android:configChanges="orientation|keyboardHidden">
<!-- android:configChanges="locale|orientation|keyboardHidden"-->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ToolsDownloader"
android:configChanges="orientation|keyboardHidden">
<!--
Most websites report .smzip files as of MIME type application/octet-stream
so the only real way to handle them would be to directly download the files
within Beats, then proceed to installing them.
-->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="http"
android:host="*"
android:pathPattern=".*\\.smzip"
/>
</intent-filter>
</activity>
<activity
android:name=".ToolsUnzipperActivity"
android:configChanges="orientation|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:mimeType="application/zip"
/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:mimeType="application/octet-stream"
/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:mimeType="application/download"
/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:mimeType="*/*"
android:scheme="file"
android:host="*"
android:pathPattern=".*\\.smzip"
/>
<data
android:mimeType="*/*"
android:scheme="file"
android:host="*"
android:pathPattern=".*\\.zip"
/>
<data
android:mimeType="*/*"
android:scheme="file"
android:host="*"
android:pathPattern=".*\\.osz"
/>
<data
android:mimeType="*/*"
android:scheme="file"
android:host="*"
android:pathPattern=".*\\.bin"
/>
</intent-filter>
</activity>
<activity
android:name=".MenuCredits">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
<action android:name=".MenuCredits" />
</intent-filter>
</activity>
<activity
android:name=".MenuFileChooser"
android:configChanges="orientation|keyboardHidden"/>
<activity android:name=".MenuSettings"/>
<activity
android:name=".GUIGame"
android:theme="@style/Theme.NoBackground"
android:configChanges="orientation|keyboardHidden"
/>

<!-- AdMob -->
<activity
android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
/>
</application>
</manifest>
41 changes: 19 additions & 22 deletions LICENSE
@@ -1,27 +1,24 @@
Copyright (c) 2014, Philip Peng
Copyright (c) 2011, Keripo
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the <organization> nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the {organization} nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
9 changes: 8 additions & 1 deletion README.md
@@ -1,4 +1,11 @@
Beats
Beats, Advanced Rhythm Game
=====

Popular, open source rhythm game for Android.
This is the latest snapshot of the SVN code base (r18), migrated to GitHub.
This is the final release of Beats and the subsequent open sourcing of the code. The decision was made to not open source Beats until now due to the extremely messy and disorganized nature of the code (just about every feature since Beats 1.0a is an ugly hack). While Beats is now under a modified BSD license, please do NOT fork the original source code, for sanity reasons. The source code should be used for reference purposes only.
See http://beatsportable.com for more info

All source code is available under Modified BSD license.

~Keripo
Binary file added assets/fonts/HappyKiller.ttf
Binary file not shown.
5 changes: 5 additions & 0 deletions docs/Beats Portable Google Group Invitation.txt
@@ -0,0 +1,5 @@
Hello, you are invited to the newly created, official Google group for "Beats, Advanced Rhythm Game" <http://beatsportable.com>. Subscribe to help test out the very latest SVN builds of Beats or help with translating Beats to other languages. Developers and experienced players are also welcome for general discussion.

You are invited because you either expressed interest in the development of the app, translating the app, or testing the app. If you were sent this invitation by error (or would not like to be involved), feel free to ignore this message.

~Keripo (Philip Peng)
Binary file not shown.
2 changes: 2 additions & 0 deletions docs/beats.ivs
@@ -0,0 +1,2 @@
<?xml version="1.0"?>
<ivs-file last-modified="Monday, March 07, 2011 11:57:39PM"><effects><timeline-effect name="tap"><launch-event time="0" effect="tap #1"/></timeline-effect><basis-effect name="tap #1" type="magsweep" duration="20" magnitude="7500" style="strong"/><basis-effect name="hold" type="periodic" duration="2147483647" magnitude="300" waveform="square" period="50" style="strong" attack-level="300"/><timeline-effect name="miss"><launch-event time="0" effect="miss #1"/></timeline-effect><basis-effect name="miss #1" type="magsweep" duration="150" magnitude="10000" style="strong"/><timeline-effect name="miss2"><launch-event time="0" effect="miss2 #1"/></timeline-effect><basis-effect name="miss2 #1" type="magsweep" duration="1000" magnitude="7500" style="strong" attack-time="200" fade-time="200"/></effects></ivs-file>
93 changes: 93 additions & 0 deletions docs/osuspecv5mod.txt
@@ -0,0 +1,93 @@
osu file format v5
//Version header. This is used to determine some conditions which must be changed for older
//osu! file formats. In this document I will be looking at v5 only.

[General]
AudioFilename: 05 Calling.mp3
//The audio filename (mp3/ogg, restricted to beatmap directory).
AudioHash:
//???
AudioLeadIn: 0
//The number of ms to allow before mp3 starts. Basically starts the internal time counter at a negative position.
PreviewTime: -1
//The position in the song (ms) to play the song selection preview from.
Countdown: 1
//Type of countdown {Disabled = 0, Normal = 1, HalfSpeed = 2, DoubleSpeed = 3}
SampleSet: Normal
//Audio sampleset name. Either Normal or Soft at the moment. This is the map default and is overridden by TimingPoints.
EditorBookmarks: 4106,66876,81646,125955,140725
//Locations in the song that editor bookmarks have been placed (ms).
Mode:
//???
EditorBookmarks:
//???

[Metadata]
Title:Calling
//Song Title (spec max 80chars)
Artist:Leah
//Song Artist (spec max 80chars)
Creator:awp
//Song Creator, always forum username in case of bss submission. (spec max 80chars)
Version:Hard
//Custom version name. Defaults to easy,normal,hard,insane but can be customised. (spec max 80chars)
Source:The World Ends with You
//Song Source, used for searching and will be displayed. (spec max 80chars)
Tags:game twewy
//Tags, used for searching. (spec max 80chars)

[Difficulty]
HPDrainRate:6
//The level of HP drain, 0 (easy) to 10 (hard).
//NB: The calculation for HP drain is quite complex - contact me when you need the specifics.
CircleSize:6
//Size of hitobjects. Assuming a gamefield of 512x384, 64 * (1 - 0.7*((CircleSize-5)/5))
OverallDifficulty:6
//Affects timing window, spinner difficulty and approach speeds.
SliderMultiplier:1.7
//Speed of slider movement, where 1.0 is 100pixels per beatLength.
SliderTickRate:2
//How often slider ticks are placed, where 1 is "1 tick per beat" etc.

[Events]
//See http://osu.ppy.sh/forum/viewtopic.php?f=20&t=1869 for now.

[TimingPoints]
4056,461.551275,4,1,1,100
//offsetMs,beatLength,timingSignature,sampleSetId,useCustomSamples,sampleVolume
//offsetMs - the offset in milliseconds for this section
//beatLength - length of a single beat in milliseconds (double accuracy)
//timingSignature - 3 = simple triple, 4 = simple quadruple. Used in editor.
//sampleSetId - timing point specific samples {None = 0, Normal = 1, Soft = 2}
//useCustomSamples - use skin localised samples? {No = 0, Yes = 1}
//sampleVolume - volume of the samples
//timingChange - is there a timing change (beatLength)? {No = 0, Yes = 1}
//kiaiTimeActive - is kiai time active? {No = 0, Yes = 1}
[Colours]
Combo1 : 209,209,209
//RGB values
Combo2 : 61,27,222
Combo3 : 63,63,63
Combo4 : 234,119,15
//Up to five entries for combo colours. When not present, default four colours are used (see skintemplate).

[HitObjects]
//HitObjectSoundType {Normal = 0, Whistle = 2, Finish = 4, WhistleFinish = 6, Clap = 8}
// For a hit circle: x,y,startTime,objectType,soundType
// For a slider: x,y,startTime,objectType,soundType,curveType|x1,y1|x2,y2|...xn,yn,repeatCount,pixelLength
// For a spinner: x,y,startTime,objectType,soundType,endTime

//Bitwise flag enums:
//HitObjectType {Normal = 1, Slider = 2, NewCombo = 4, NormalNewCombo = 5, SliderNewCombo = 6, Spinner = 8}
//HitObjectSoundType {Normal = 0, Whistle = 2, Finish = 4, WhistleFinish = 6}

//SliderCurveType { C = Catmull, B = Bezier, L = Linear }
//See http://up.ppy.sh/files/sliderstuff.cs and http://pe.ppy.sh/bezier.cs for curve creation specifics.
//Post if you need more slider creation help.

128,192,4056,1,0
//HitCircle: xPos,yPos,startTimeMs,objectType,soundType
256,192,7748,6,2,B|256:96|384:96,1,170
//Slider: xPos,yPos,startTimeMs,objectType,soundType,curveType|x1,y1|x2,y2|...|xn,yn,repeatCount,sliderLengthPixels
256,192,199292,12,0,202523
//Spinner: xPos(redundant),yPod(redundant),startTimeMs,objectType,soundType,endTimeMs
3 changes: 3 additions & 0 deletions docs/version.txt
@@ -0,0 +1,3 @@
18
1.7.2b FINAL
http://beatsportable.com/downloads/
Binary file added graphics/HappyKiller.ttf
Binary file not shown.
Binary file added graphics/beats_logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/beats_logo.psd
Binary file not shown.
Binary file added graphics/beats_logo_beta.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/beats_logo_beta_xlarge.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/bg_blue.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/bg_light.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/bg_red.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/bg_white.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/choose.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/choose_hit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/combined.psd
Binary file not shown.
Binary file added graphics/combined_bg4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/combined_bg_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/combined_bg_2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/combined_bg_3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/combined_bg_all.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/difficulty_beginner.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/difficulty_challenge.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/difficulty_easy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/difficulty_hard.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/difficulty_header.psd
Binary file not shown.
Binary file added graphics/difficulty_medium.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/double_arrow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/download.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/download_hit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/exit.png
Binary file added graphics/exit_hit.png
Binary file added graphics/menu_items.psd
Diff not rendered.
Binary file added graphics/mode_arrows.psd
Diff not rendered.
Binary file added graphics/modes.psd
Diff not rendered.
Binary file added graphics/osu_beats.psd
Diff not rendered.
Binary file added graphics/settings.png
Binary file added graphics/settings_hit.png
Binary file added graphics/start.png
Binary file added graphics/start_hit.png
Binary file added graphics/tapboxes.psd
Diff not rendered.

0 comments on commit d4d5d38

Please sign in to comment.