Skip to content

Commit

Permalink
actual source files added
Browse files Browse the repository at this point in the history
  • Loading branch information
watabou committed Jul 27, 2014
1 parent 57bf13c commit 842286d
Show file tree
Hide file tree
Showing 606 changed files with 55,996 additions and 55 deletions.
40 changes: 40 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.watabou.pixeldungeon"
android:versionCode="59"
android:versionName="1.7.1c"
android:installLocation="auto">

<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="com.android.vending.BILLING" />

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18"/>

<uses-feature
android:glEsVersion="0x00020000"/>

<supports-screens
android:smallScreens="false"
android:normalScreens="true"
android:largeScreens="true"/>
<!--android:xlargeScreens="true"-->

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
android:allowBackup="false">
<activity
android:label="@string/app_name"
android:name=".PixelDungeon"
android:screenOrientation="portrait">
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
57 changes: 2 additions & 55 deletions LICENSE → LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GNU GENERAL PUBLIC LICENSE
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Expand Down Expand Up @@ -618,57 +618,4 @@ an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

END OF TERMS AND CONDITIONS

How to Apply These Terms to Your New Programs

If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

{one line to give the program's name and a brief idea of what it does.}
Copyright (C) {year} {name of author}

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

{project} Copyright (C) {year} {fullname}
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.

The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
END OF TERMS AND CONDITIONS
Binary file added assets/amulet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/arcs1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/arcs2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/badges.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/banners.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/blacksmith.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/brute.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/buffs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/burning_fist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/crab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/demon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/dm300.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/effects.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/elemental.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/exp_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/eye.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fireball.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/font15x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/font1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/font25x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/font2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/font3x.png
Binary file added assets/game.mp3
Binary file not shown.
Binary file added assets/ghost.png
Binary file added assets/gnoll.png
Binary file added assets/golem.png
Binary file added assets/goo.png
Binary file added assets/hp_bar.png
Binary file added assets/icons.png
Binary file added assets/items.png
Binary file added assets/king.png
Binary file added assets/large_buffs.png
Binary file added assets/larva.png
Binary file added assets/mage.png
Binary file added assets/monk.png
Binary file added assets/piranha.png
Binary file added assets/plants.png
Binary file added assets/ranger.png
Binary file added assets/rat.png
Binary file added assets/ratking.png
Binary file added assets/rogue.png
Binary file added assets/rotting_fist.png
Binary file added assets/scorpio.png
Binary file added assets/shaman.png
Binary file added assets/sheep.png
Binary file added assets/shopkeeper.png
Binary file added assets/skeleton.png
Binary file added assets/snd_alert.mp3
Binary file not shown.
Binary file added assets/snd_badge.mp3
Binary file not shown.
Binary file added assets/snd_beacon.mp3
Binary file not shown.
Binary file added assets/snd_blast.mp3
Binary file not shown.
Binary file added assets/snd_bones.mp3
Binary file not shown.
Binary file added assets/snd_boss.mp3
Binary file not shown.
Binary file added assets/snd_burning.mp3
Binary file not shown.
Binary file added assets/snd_challenge.mp3
Binary file not shown.
Binary file added assets/snd_charms.mp3
Binary file not shown.
Binary file added assets/snd_click.mp3
Binary file not shown.
Binary file added assets/snd_cursed.mp3
Binary file not shown.
Binary file added assets/snd_death.mp3
Binary file not shown.
Binary file added assets/snd_descend.mp3
Binary file not shown.
Binary file added assets/snd_dewdrop.mp3
Binary file not shown.
Binary file added assets/snd_door_open.mp3
Binary file not shown.
Binary file added assets/snd_drink.mp3
Binary file not shown.
Binary file added assets/snd_eat.mp3
Binary file not shown.
Binary file added assets/snd_evoke.mp3
Binary file not shown.
Binary file added assets/snd_falling.mp3
Binary file not shown.
Binary file added assets/snd_ghost.mp3
Binary file not shown.
Binary file added assets/snd_gold.mp3
Binary file not shown.
Binary file added assets/snd_hit.mp3
Binary file not shown.
Binary file added assets/snd_item.mp3
Binary file not shown.
Binary file added assets/snd_levelup.mp3
Binary file not shown.
Binary file added assets/snd_lightning.mp3
Binary file not shown.
Binary file added assets/snd_lullaby.mp3
Binary file not shown.
Binary file added assets/snd_mastery.mp3
Binary file not shown.
Binary file added assets/snd_meld.mp3
Binary file not shown.
Binary file added assets/snd_miss.mp3
Binary file not shown.
Binary file added assets/snd_plant.mp3
Binary file not shown.
Binary file added assets/snd_puff.mp3
Binary file not shown.
Binary file added assets/snd_ray.mp3
Binary file not shown.
Binary file added assets/snd_read.mp3
Binary file not shown.
Binary file added assets/snd_rocks.mp3
Binary file not shown.
Binary file added assets/snd_secret.mp3
Binary file not shown.
Binary file added assets/snd_shatter.mp3
Binary file not shown.
Binary file added assets/snd_step.mp3
Binary file not shown.
Binary file added assets/snd_teleport.mp3
Binary file not shown.
Binary file added assets/snd_tomb.mp3
Binary file not shown.
Binary file added assets/snd_trap.mp3
Binary file not shown.
Binary file added assets/snd_unlock.mp3
Binary file not shown.
Binary file added assets/snd_water.mp3
Binary file not shown.
Binary file added assets/snd_zap.mp3
Binary file not shown.
Binary file added assets/specks.png
Binary file added assets/spell_icons.png
Binary file added assets/spinner.png
Binary file added assets/statue.png
Binary file added assets/status_pane.png
Binary file added assets/succubus.png
Binary file added assets/surface.mp3
Binary file not shown.
Binary file added assets/surface.png
Binary file added assets/swarm.png
Binary file added assets/tengu.png
Binary file added assets/theme.mp3
Binary file not shown.
Binary file added assets/thief.png
Binary file added assets/tiles0.png
Binary file added assets/tiles1.png
Binary file added assets/tiles2.png
Binary file added assets/tiles3.png
Binary file added assets/tiles4.png
Binary file added assets/toolbar.png
Binary file added assets/undead.png
Binary file added assets/wandmaker.png
Binary file added assets/warlock.png
Binary file added assets/warrior.png
Binary file added assets/water0.png
Binary file added assets/water1.png
Binary file added assets/water2.png
Binary file added assets/water3.png
Binary file added assets/water4.png
Binary file added assets/wraith.png
Binary file added assets/yog.png
20 changes: 20 additions & 0 deletions proguard-project.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
Binary file added res/drawable-hdpi/ic_launcher.png
Binary file added res/drawable-mdpi/ic_launcher.png
Binary file added res/drawable-xhdpi/ic_launcher.png
Binary file added res/drawable-xxhdpi/ic_launcher.png
Binary file added res/drawable-xxxhdpi/ic_launcher.png
11 changes: 11 additions & 0 deletions res/values-v11/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<resources>

<!--
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
<!-- API 11 theme customizations can go here. -->
</style>

</resources>
12 changes: 12 additions & 0 deletions res/values-v14/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<resources>

<!--
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<!-- API 14 theme customizations can go here. -->
</style>

</resources>
6 changes: 6 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<string name="app_name">Pixel Dungeon</string>

</resources>
20 changes: 20 additions & 0 deletions res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<resources>

<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>

<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>

</resources>
159 changes: 159 additions & 0 deletions src/com/watabou/pixeldungeon/Assets.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
/*
* Pixel Dungeon
* Copyright (C) 2012-2014 Oleg Dolya
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/
package com.watabou.pixeldungeon;

public class Assets {

public static final String ARCS_BG = "arcs1.png";
public static final String ARCS_FG = "arcs2.png";
public static final String DASHBOARD = "dashboard.png";

public static final String BANNERS = "banners.png";
public static final String BADGES = "badges.png";
public static final String AMULET = "amulet.png";

public static final String CHROME = "chrome.png";
public static final String ICONS = "icons.png";
public static final String STATUS = "status_pane.png";
public static final String HP_BAR = "hp_bar.png";
public static final String XP_BAR = "exp_bar.png";
public static final String TOOLBAR = "toolbar.png";

public static final String WARRIOR = "warrior.png";
public static final String MAGE = "mage.png";
public static final String ROGUE = "rogue.png";
public static final String HUNTRESS = "ranger.png";
public static final String AVATARS = "avatars.png";

public static final String SURFACE = "surface.png";

public static final String FIREBALL = "fireball.png";
public static final String SPECKS = "specks.png";
public static final String EFFECTS = "effects.png";

public static final String RAT = "rat.png";
public static final String GNOLL = "gnoll.png";
public static final String CRAB = "crab.png";
public static final String GOO = "goo.png";
public static final String SWARM = "swarm.png";
public static final String SKELETON = "skeleton.png";
public static final String SHAMAN = "shaman.png";
public static final String THIEF = "thief.png";
public static final String TENGU = "tengu.png";
public static final String SHEEP = "sheep.png";
public static final String KEEPER = "shopkeeper.png";
public static final String BAT = "bat.png";
public static final String BRUTE = "brute.png";
public static final String SPINNER = "spinner.png";
public static final String DM300 = "dm300.png";
public static final String WRAITH = "wraith.png";
public static final String ELEMENTAL= "elemental.png";
public static final String MONK = "monk.png";
public static final String WARLOCK = "warlock.png";
public static final String GOLEM = "golem.png";
public static final String UNDEAD = "undead.png";
public static final String KING = "king.png";
public static final String STATUE = "statue.png";
public static final String PIRANHA = "piranha.png";
public static final String EYE = "eye.png";
public static final String SUCCUBUS = "succubus.png";
public static final String SCORPIO = "scorpio.png";
public static final String ROTTING = "rotting_fist.png";
public static final String BURNING = "burning_fist.png";
public static final String YOG = "yog.png";
public static final String LARVA = "larva.png";
public static final String GHOST = "ghost.png";
public static final String MAKER = "wandmaker.png";
public static final String TROLL = "blacksmith.png";
public static final String IMP = "demon.png";
public static final String RATKING = "ratking.png";

public static final String ITEMS = "items.png";
public static final String PLANTS = "plants.png";

public static final String TILES_SEWERS = "tiles0.png";
public static final String TILES_PRISON = "tiles1.png";
public static final String TILES_CAVES = "tiles2.png";
public static final String TILES_CITY = "tiles3.png";
public static final String TILES_HALLS = "tiles4.png";

public static final String WATER_SEWERS = "water0.png";
public static final String WATER_PRISON = "water1.png";
public static final String WATER_CAVES = "water2.png";
public static final String WATER_CITY = "water3.png";
public static final String WATER_HALLS = "water4.png";

public static final String BUFFS_SMALL = "buffs.png";
public static final String BUFFS_LARGE = "large_buffs.png";
public static final String SPELL_ICONS = "spell_icons.png";

public static final String FONTS1X = "font1x.png";
public static final String FONTS15X = "font15x.png";
public static final String FONTS2X = "font2x.png";
public static final String FONTS25X = "font25x.png";
public static final String FONTS3X = "font3x.png";

public static final String THEME = "theme.mp3";
public static final String TUNE = "game.mp3";
public static final String HAPPY = "surface.mp3";

public static final String SND_CLICK = "snd_click.mp3";
public static final String SND_BADGE = "snd_badge.mp3";
public static final String SND_GOLD = "snd_gold.mp3";

public static final String SND_OPEN = "snd_door_open.mp3";
public static final String SND_UNLOCK = "snd_unlock.mp3";
public static final String SND_ITEM = "snd_item.mp3";
public static final String SND_DEWDROP = "snd_dewdrop.mp3";
public static final String SND_HIT = "snd_hit.mp3";
public static final String SND_MISS = "snd_miss.mp3";
public static final String SND_STEP = "snd_step.mp3";
public static final String SND_WATER = "snd_water.mp3";
public static final String SND_DESCEND = "snd_descend.mp3";
public static final String SND_EAT = "snd_eat.mp3";
public static final String SND_READ = "snd_read.mp3";
public static final String SND_LULLABY = "snd_lullaby.mp3";
public static final String SND_DRINK = "snd_drink.mp3";
public static final String SND_SHATTER = "snd_shatter.mp3";
public static final String SND_ZAP = "snd_zap.mp3";
public static final String SND_LIGHTNING= "snd_lightning.mp3";
public static final String SND_LEVELUP = "snd_levelup.mp3";
public static final String SND_DEATH = "snd_death.mp3";
public static final String SND_CHALLENGE= "snd_challenge.mp3";
public static final String SND_CURSED = "snd_cursed.mp3";
public static final String SND_TRAP = "snd_trap.mp3";
public static final String SND_EVOKE = "snd_evoke.mp3";
public static final String SND_TOMB = "snd_tomb.mp3";
public static final String SND_ALERT = "snd_alert.mp3";
public static final String SND_MELD = "snd_meld.mp3";
public static final String SND_BOSS = "snd_boss.mp3";
public static final String SND_BLAST = "snd_blast.mp3";
public static final String SND_PLANT = "snd_plant.mp3";
public static final String SND_RAY = "snd_ray.mp3";
public static final String SND_BEACON = "snd_beacon.mp3";
public static final String SND_TELEPORT = "snd_teleport.mp3";
public static final String SND_CHARMS = "snd_charms.mp3";
public static final String SND_MASTERY = "snd_mastery.mp3";
public static final String SND_PUFF = "snd_puff.mp3";
public static final String SND_ROCKS = "snd_rocks.mp3";
public static final String SND_BURNING = "snd_burning.mp3";
public static final String SND_FALLING = "snd_falling.mp3";
public static final String SND_GHOST = "snd_ghost.mp3";
public static final String SND_SECRET = "snd_secret.mp3";
public static final String SND_BONES = "snd_bones.mp3";
}
Loading

0 comments on commit 842286d

Please sign in to comment.