Browse Source

Change over to gradle build system

Signed-off-by: Chris Cromer <chris@cromer.cl>
master
Chris Cromer 2 years ago
parent
commit
7d48b1ccb5
312 changed files with 502 additions and 331 deletions
  1. +3
    -3
      .gitignore
  2. +1
    -1
      .idea/.name
  3. +0
    -16
      .idea/artifacts/Azaraka.xml
  4. +0
    -12
      .idea/artifacts/Azaraka_standalone.xml
  5. +17
    -0
      .idea/gradle.xml
  6. +0
    -10
      .idea/libraries/com_google_code_gson_gson_2_8_5.xml
  7. +3
    -2
      .idea/misc.xml
  8. +0
    -8
      .idea/modules.xml
  9. +0
    -124
      .idea/uiDesigner.xml
  10. +1
    -1
      .idea/vcs.xml
  11. +0
    -20
      Azaraka.iml
  12. +55
    -0
      build.gradle
  13. BIN
      gradle/wrapper/gradle-wrapper.jar
  14. +21
    -0
      gradle/wrapper/gradle-wrapper.properties
  15. +172
    -0
      gradlew
  16. +84
    -0
      gradlew.bat
  17. +17
    -0
      settings.gradle
  18. +0
    -15
      src/META-INF/MANIFEST.MF
  19. +5
    -2
      src/main/java/cl/cromer/azaraka/Celda.java
  20. +28
    -29
      src/main/java/cl/cromer/azaraka/Constantes.java
  21. +5
    -4
      src/main/java/cl/cromer/azaraka/Escenario.java
  22. +17
    -16
      src/main/java/cl/cromer/azaraka/Lienzo.java
  23. +2
    -1
      src/main/java/cl/cromer/azaraka/Main.java
  24. +0
    -0
      src/main/java/cl/cromer/azaraka/VentanaPrincipal.java
  25. +0
    -0
      src/main/java/cl/cromer/azaraka/json/Cell.java
  26. +0
    -0
      src/main/java/cl/cromer/azaraka/json/Json.java
  27. +0
    -0
      src/main/java/cl/cromer/azaraka/json/package-info.java
  28. +0
    -0
      src/main/java/cl/cromer/azaraka/logging/HtmlFormatter.java
  29. +0
    -0
      src/main/java/cl/cromer/azaraka/logging/StringUtils.java
  30. +0
    -0
      src/main/java/cl/cromer/azaraka/logging/package-info.java
  31. +15
    -14
      src/main/java/cl/cromer/azaraka/object/Chest.java
  32. +6
    -6
      src/main/java/cl/cromer/azaraka/object/Enemy.java
  33. +10
    -10
      src/main/java/cl/cromer/azaraka/object/Gem.java
  34. +0
    -0
      src/main/java/cl/cromer/azaraka/object/Key.java
  35. +13
    -13
      src/main/java/cl/cromer/azaraka/object/Object.java
  36. +0
    -0
      src/main/java/cl/cromer/azaraka/object/Obstacle.java
  37. +4
    -4
      src/main/java/cl/cromer/azaraka/object/Player.java
  38. +1
    -1
      src/main/java/cl/cromer/azaraka/object/Portal.java
  39. +0
    -0
      src/main/java/cl/cromer/azaraka/object/package-info.java
  40. +0
    -0
      src/main/java/cl/cromer/azaraka/package-info.java
  41. +0
    -0
      src/main/java/cl/cromer/azaraka/panel/Config.java
  42. +0
    -0
      src/main/java/cl/cromer/azaraka/panel/Game.java
  43. +0
    -0
      src/main/java/cl/cromer/azaraka/panel/package-info.java
  44. +7
    -4
      src/main/java/cl/cromer/azaraka/sound/Sound.java
  45. +0
    -0
      src/main/java/cl/cromer/azaraka/sound/SoundException.java
  46. +0
    -0
      src/main/java/cl/cromer/azaraka/sound/package-info.java
  47. +12
    -12
      src/main/java/cl/cromer/azaraka/sprite/Animation.java
  48. +0
    -0
      src/main/java/cl/cromer/azaraka/sprite/AnimationException.java
  49. +3
    -3
      src/main/java/cl/cromer/azaraka/sprite/Sheet.java
  50. +0
    -0
      src/main/java/cl/cromer/azaraka/sprite/SheetException.java
  51. +0
    -0
      src/main/java/cl/cromer/azaraka/sprite/package-info.java
  52. +0
    -0
      src/main/resources/img/chest/chests.png
  53. +0
    -0
      src/main/resources/img/enemy/chara4.png
  54. +0
    -0
      src/main/resources/img/enemy/emote4.png
  55. +0
    -0
      src/main/resources/img/gameover/gameover.png
  56. +0
    -0
      src/main/resources/img/heart/heart0.png
  57. +0
    -0
      src/main/resources/img/heart/heart1.png
  58. +0
    -0
      src/main/resources/img/heart/heart2.png
  59. +0
    -0
      src/main/resources/img/heart/heart3.png
  60. +0
    -0
      src/main/resources/img/heart/heart4.png
  61. +0
    -0
      src/main/resources/img/icon.png
  62. +0
    -0
      src/main/resources/img/key/key.png
  63. +0
    -0
      src/main/resources/img/player/chara2.png
  64. +0
    -0
      src/main/resources/img/player/emote2.png
  65. +0
    -0
      src/main/resources/img/portal/gray/000.png
  66. +0
    -0
      src/main/resources/img/portal/gray/001.png
  67. +0
    -0
      src/main/resources/img/portal/gray/002.png
  68. +0
    -0
      src/main/resources/img/portal/gray/003.png
  69. +0
    -0
      src/main/resources/img/portal/gray/004.png
  70. +0
    -0
      src/main/resources/img/portal/gray/005.png
  71. +0
    -0
      src/main/resources/img/portal/gray/006.png
  72. +0
    -0
      src/main/resources/img/portal/gray/007.png
  73. +0
    -0
      src/main/resources/img/portal/gray/008.png
  74. +0
    -0
      src/main/resources/img/portal/gray/009.png
  75. +0
    -0
      src/main/resources/img/portal/gray/010.png
  76. +0
    -0
      src/main/resources/img/portal/gray/011.png
  77. +0
    -0
      src/main/resources/img/portal/gray/012.png
  78. +0
    -0
      src/main/resources/img/portal/gray/013.png
  79. +0
    -0
      src/main/resources/img/portal/gray/014.png
  80. +0
    -0
      src/main/resources/img/portal/gray/015.png
  81. +0
    -0
      src/main/resources/img/portal/gray/016.png
  82. +0
    -0
      src/main/resources/img/portal/gray/017.png
  83. +0
    -0
      src/main/resources/img/portal/gray/018.png
  84. +0
    -0
      src/main/resources/img/portal/gray/019.png
  85. +0
    -0
      src/main/resources/img/portal/gray/020.png
  86. +0
    -0
      src/main/resources/img/portal/gray/021.png
  87. +0
    -0
      src/main/resources/img/portal/gray/022.png
  88. +0
    -0
      src/main/resources/img/portal/gray/023.png
  89. +0
    -0
      src/main/resources/img/portal/gray/024.png
  90. +0
    -0
      src/main/resources/img/portal/gray/025.png
  91. +0
    -0
      src/main/resources/img/portal/gray/026.png
  92. +0
    -0
      src/main/resources/img/portal/gray/027.png
  93. +0
    -0
      src/main/resources/img/portal/gray/028.png
  94. +0
    -0
      src/main/resources/img/portal/gray/029.png
  95. +0
    -0
      src/main/resources/img/portal/gray/030.png
  96. +0
    -0
      src/main/resources/img/portal/gray/031.png
  97. +0
    -0
      src/main/resources/img/portal/gray/032.png
  98. +0
    -0
      src/main/resources/img/portal/gray/033.png
  99. +0
    -0
      src/main/resources/img/portal/gray/034.png
  100. +0
    -0
      src/main/resources/img/portal/gray/035.png

+ 3
- 3
.gitignore View File

@ -1,4 +1,4 @@
/out/
/.gradle/
/build/
/javadoc/
/log/
/lib/
/log/

+ 1
- 1
.idea/.name View File

@ -1 +1 @@
Azaraka
azaraka

+ 0
- 16
.idea/artifacts/Azaraka.xml View File

@ -1,16 +0,0 @@
<component name="ArtifactManager">
<artifact name="Azaraka">
<output-path>$PROJECT_DIR$/out/artifacts/Azaraka</output-path>
<root id="root">
<element id="archive" name="Azaraka.jar">
<element id="module-output" name="Azaraka" />
</element>
<element id="archive" name="Azaraka-javadoc.jar">
<element id="dir-copy" path="$PROJECT_DIR$/javadoc" />
</element>
<element id="directory" name="lib">
<element id="file-copy" path="$PROJECT_DIR$/lib/gson-2.8.5.jar" />
</element>
</root>
</artifact>
</component>

+ 0
- 12
.idea/artifacts/Azaraka_standalone.xml View File

@ -1,12 +0,0 @@
<component name="ArtifactManager">
<artifact type="jar" name="Azaraka standalone">
<output-path>$PROJECT_DIR$/out/artifacts/Azaraka_standalone</output-path>
<root id="archive" name="Azaraka.jar">
<element id="module-output" name="Azaraka" />
<element id="extracted-dir" path="$PROJECT_DIR$/lib/gson-2.8.5.jar" path-in-jar="/" />
<element id="directory" name="javadoc">
<element id="dir-copy" path="$PROJECT_DIR$/javadoc" />
</element>
</root>
</artifact>
</component>

+ 17
- 0
.idea/gradle.xml View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
</set>
</option>
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>
</project>

+ 0
- 10
.idea/libraries/com_google_code_gson_gson_2_8_5.xml View File

@ -1,10 +0,0 @@
<component name="libraryTable">
<library name="com.google.code.gson:gson:2.8.5" type="repository">
<properties maven-id="com.google.code.gson:gson:2.8.5" />
<CLASSES>
<root url="jar://$PROJECT_DIR$/lib/gson-2.8.5.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

+ 3
- 2
.idea/misc.xml View File

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="JavadocGenerationManager">
<option name="OUTPUT_DIRECTORY" value="$PROJECT_DIR$/javadoc" />
<option name="OPTION_SCOPE" value="private" />
<option name="OPEN_IN_BROWSER" value="false" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8 Oracle" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/../Azaraka/out" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="1.8 Oracle" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

+ 0
- 8
.idea/modules.xml View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/../Azaraka/Azaraka.iml" filepath="$PROJECT_DIR$/../Azaraka/Azaraka.iml" />
</modules>
</component>
</project>

+ 0
- 124
.idea/uiDesigner.xml View File

@ -1,124 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>

+ 1
- 1
.idea/vcs.xml View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../Azaraka" vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

+ 0
- 20
Azaraka.iml View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<javadoc-paths>
<root url="file://$MODULE_DIR$/javadoc" />
</javadoc-paths>
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/res" type="java-resource" />
<excludeFolder url="file://$MODULE_DIR$/doc" />
<excludeFolder url="file://$MODULE_DIR$/javadoc" />
<excludeFolder url="file://$MODULE_DIR$/lib" />
<excludeFolder url="file://$MODULE_DIR$/log" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="com.google.code.gson:gson:2.8.5" level="project" />
</component>
</module>

+ 55
- 0
build.gradle View File

@ -0,0 +1,55 @@
/*
* Copyright 2019 Chris Cromer
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
*
* 2. 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.
*
* 3. Neither the name of the copyright holder 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.
*
*/
plugins {
id 'java'
id 'application'
}
group 'cl.cromer.azaraka'
version '1.0.0'
sourceCompatibility = 1.8
mainClassName = "cl.cromer.azaraka.Main"
repositories {
mavenCentral()
}
dependencies {
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.2'
}
jar {
manifest {
attributes "Main-Class": "$mainClassName",
'Class-Path': configurations.default.files.collect { "$it.name" }.join(' ')
}
// This adds the libs into the jar
/*from {
configurations.default.collect { it.isDirectory() ? it : zipTree(it) }
}*/
}
task copyDependencies(type: Copy) {
from configurations.default
into "$buildDir/libs"
}
build.dependsOn(copyDependencies)
jar.dependsOn(copyDependencies)

BIN
gradle/wrapper/gradle-wrapper.jar View File


+ 21
- 0
gradle/wrapper/gradle-wrapper.properties View File

@ -0,0 +1,21 @@
#
# Copyright 2019 Chris Cromer
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
#
# 2. 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.
#
# 3. Neither the name of the copyright holder 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.
#
#
#Thu Oct 03 19:38:30 CLST 2019
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

+ 172
- 0
gradlew View File

@ -0,0 +1,172 @@
#!/usr/bin/env sh
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"

+ 84
- 0
gradlew.bat View File

@ -0,0 +1,84 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

+ 17
- 0
settings.gradle View File

@ -0,0 +1,17 @@
/*
* Copyright 2019 Chris Cromer
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
*
* 2. 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.
*
* 3. Neither the name of the copyright holder 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.
*
*/
rootProject.name = 'azaraka'

+ 0
- 15
src/META-INF/MANIFEST.MF View File

@ -1,15 +0,0 @@
Manifest-Version: 1.0
Main-Class: cl.cromer.azaraka.Main
Class-Path: lib/gson-2.8.5.jar lib/junit-jupiter-5.5.2.jar lib/junit-jupiter-api-5.5
.2.jar lib/apiguardian-api-1.1.0.jar lib/opentest4j-1.2.0.jar lib/junit-platform-co
mmons-1.5.2.jar lib/junit-jupiter-params-5.5.2.jar lib/junit-jupiter-engine-5.5
.2.jar lib/junit-platform-engine-1.5.2.jar
Name: cl/cromer/game/
Specification-Title: La Aventura de Azaraka
Specification-Version: 1.0
Specification-Vendor: Chris Cromer
Implementation-Title: cl.cromer.azaraka
Implementation-Version: build1
Implementation-Vendor: Chris Cromer
Name: cl/cromer/game/
Sealed: true

src/cl/cromer/azaraka/Celda.java → src/main/java/cl/cromer/azaraka/Celda.java View File


src/cl/cromer/azaraka/Constantes.java → src/main/java/cl/cromer/azaraka/Constantes.java View File


src/cl/cromer/azaraka/Escenario.java → src/main/java/cl/cromer/azaraka/Escenario.java View File


src/cl/cromer/azaraka/Lienzo.java → src/main/java/cl/cromer/azaraka/Lienzo.java View File


src/cl/cromer/azaraka/Main.java → src/main/java/cl/cromer/azaraka/Main.java View File


src/cl/cromer/azaraka/VentanaPrincipal.java → src/main/java/cl/cromer/azaraka/VentanaPrincipal.java View File


src/cl/cromer/azaraka/json/Cell.java → src/main/java/cl/cromer/azaraka/json/Cell.java View File


src/cl/cromer/azaraka/json/Json.java → src/main/java/cl/cromer/azaraka/json/Json.java View File


src/cl/cromer/azaraka/json/package-info.java → src/main/java/cl/cromer/azaraka/json/package-info.java View File


src/cl/cromer/azaraka/logging/HtmlFormatter.java → src/main/java/cl/cromer/azaraka/logging/HtmlFormatter.java View File


src/cl/cromer/azaraka/logging/StringUtils.java → src/main/java/cl/cromer/azaraka/logging/StringUtils.java View File


src/cl/cromer/azaraka/logging/package-info.java → src/main/java/cl/cromer/azaraka/logging/package-info.java View File


src/cl/cromer/azaraka/object/Chest.java → src/main/java/cl/cromer/azaraka/object/Chest.java View File


src/cl/cromer/azaraka/object/Enemy.java → src/main/java/cl/cromer/azaraka/object/Enemy.java View File


src/cl/cromer/azaraka/object/Gem.java → src/main/java/cl/cromer/azaraka/object/Gem.java View File


src/cl/cromer/azaraka/object/Key.java → src/main/java/cl/cromer/azaraka/object/Key.java View File


src/cl/cromer/azaraka/object/Object.java → src/main/java/cl/cromer/azaraka/object/Object.java View File


src/cl/cromer/azaraka/object/Obstacle.java → src/main/java/cl/cromer/azaraka/object/Obstacle.java View File


src/cl/cromer/azaraka/object/Player.java → src/main/java/cl/cromer/azaraka/object/Player.java View File


src/cl/cromer/azaraka/object/Portal.java → src/main/java/cl/cromer/azaraka/object/Portal.java View File


src/cl/cromer/azaraka/object/package-info.java → src/main/java/cl/cromer/azaraka/object/package-info.java View File


src/cl/cromer/azaraka/package-info.java → src/main/java/cl/cromer/azaraka/package-info.java View File


src/cl/cromer/azaraka/panel/Config.java → src/main/java/cl/cromer/azaraka/panel/Config.java View File


src/cl/cromer/azaraka/panel/Game.java → src/main/java/cl/cromer/azaraka/panel/Game.java View File


src/cl/cromer/azaraka/panel/package-info.java → src/main/java/cl/cromer/azaraka/panel/package-info.java View File


src/cl/cromer/azaraka/sound/Sound.java → src/main/java/cl/cromer/azaraka/sound/Sound.java View File


src/cl/cromer/azaraka/sound/SoundException.java → src/main/java/cl/cromer/azaraka/sound/SoundException.java View File


src/cl/cromer/azaraka/sound/package-info.java → src/main/java/cl/cromer/azaraka/sound/package-info.java View File


src/cl/cromer/azaraka/sprite/Animation.java → src/main/java/cl/cromer/azaraka/sprite/Animation.java View File


src/cl/cromer/azaraka/sprite/AnimationException.java → src/main/java/cl/cromer/azaraka/sprite/AnimationException.java View File


src/cl/cromer/azaraka/sprite/Sheet.java → src/main/java/cl/cromer/azaraka/sprite/Sheet.java View File


src/cl/cromer/azaraka/sprite/SheetException.java → src/main/java/cl/cromer/azaraka/sprite/SheetException.java View File


src/cl/cromer/azaraka/sprite/package-info.java → src/main/java/cl/cromer/azaraka/sprite/package-info.java View File


res/img/chest/chests.png → src/main/resources/img/chest/chests.png View File


res/img/enemy/chara4.png → src/main/resources/img/enemy/chara4.png View File


res/img/enemy/emote4.png → src/main/resources/img/enemy/emote4.png View File


res/img/gameover/gameover.png → src/main/resources/img/gameover/gameover.png View File


res/img/heart/heart0.png → src/main/resources/img/heart/heart0.png View File


res/img/heart/heart1.png → src/main/resources/img/heart/heart1.png View File


res/img/heart/heart2.png → src/main/resources/img/heart/heart2.png View File


res/img/heart/heart3.png → src/main/resources/img/heart/heart3.png View File


res/img/heart/heart4.png → src/main/resources/img/heart/heart4.png View File


res/img/icon.png → src/main/resources/img/icon.png View File


res/img/key/key.png → src/main/resources/img/key/key.png View File


res/img/player/chara2.png → src/main/resources/img/player/chara2.png View File


res/img/player/emote2.png → src/main/resources/img/player/emote2.png View File


res/img/portal/gray/000.png → src/main/resources/img/portal/gray/000.png View File


res/img/portal/gray/001.png → src/main/resources/img/portal/gray/001.png View File


res/img/portal/gray/002.png → src/main/resources/img/portal/gray/002.png View File


res/img/portal/gray/003.png → src/main/resources/img/portal/gray/003.png View File


res/img/portal/gray/004.png → src/main/resources/img/portal/gray/004.png View File


res/img/portal/gray/005.png → src/main/resources/img/portal/gray/005.png View File


res/img/portal/gray/006.png → src/main/resources/img/portal/gray/006.png View File


res/img/portal/gray/007.png → src/main/resources/img/portal/gray/007.png View File


res/img/portal/gray/008.png → src/main/resources/img/portal/gray/008.png View File


res/img/portal/gray/009.png → src/main/resources/img/portal/gray/009.png View File


res/img/portal/gray/010.png → src/main/resources/img/portal/gray/010.png View File


res/img/portal/gray/011.png → src/main/resources/img/portal/gray/011.png View File


res/img/portal/gray/012.png → src/main/resources/img/portal/gray/012.png View File


res/img/portal/gray/013.png → src/main/resources/img/portal/gray/013.png View File


res/img/portal/gray/014.png → src/main/resources/img/portal/gray/014.png View File


res/img/portal/gray/015.png → src/main/resources/img/portal/gray/015.png View File


res/img/portal/gray/016.png → src/main/resources/img/portal/gray/016.png View File


res/img/portal/gray/017.png → src/main/resources/img/portal/gray/017.png View File


res/img/portal/gray/018.png → src/main/resources/img/portal/gray/018.png View File


res/img/portal/gray/019.png → src/main/resources/img/portal/gray/019.png View File


res/img/portal/gray/020.png → src/main/resources/img/portal/gray/020.png View File


res/img/portal/gray/021.png → src/main/resources/img/portal/gray/021.png View File


res/img/portal/gray/022.png → src/main/resources/img/portal/gray/022.png View File


res/img/portal/gray/023.png → src/main/resources/img/portal/gray/023.png View File


res/img/portal/gray/024.png → src/main/resources/img/portal/gray/024.png View File


res/img/portal/gray/025.png → src/main/resources/img/portal/gray/025.png View File


res/img/portal/gray/026.png → src/main/resources/img/portal/gray/026.png View File


res/img/portal/gray/027.png → src/main/resources/img/portal/gray/027.png View File


res/img/portal/gray/028.png → src/main/resources/img/portal/gray/028.png View File


res/img/portal/gray/029.png → src/main/resources/img/portal/gray/029.png View File


res/img/portal/gray/030.png → src/main/resources/img/portal/gray/030.png View File


res/img/portal/gray/031.png → src/main/resources/img/portal/gray/031.png View File


res/img/portal/gray/032.png → src/main/resources/img/portal/gray/032.png View File


res/img/portal/gray/033.png → src/main/resources/img/portal/gray/033.png View File


res/img/portal/gray/034.png → src/main/resources/img/portal/gray/034.png View File


res/img/portal/gray/035.png → src/main/resources/img/portal/gray/035.png View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save