1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2024-11-26 19:13:27 +00:00

convert with lib

This commit is contained in:
Rémi Heredero 2022-06-06 13:48:20 +02:00
parent 4c99bb5629
commit 622e072481
50 changed files with 466 additions and 802 deletions

11
.vscode/settings.json vendored
View File

@ -1,8 +1,7 @@
{ {
"java.configuration.updateBuildConfiguration": "interactive" "java.project.sourcePaths": ["src"],
"cSpell.words": [ "java.project.outputPath": "bin",
"pokemudry", "java.project.referencedLibraries": [
"Spritesheet" "lib/**/*.jar"
], ]
"java.configuration.updateBuildConfiguration": "disabled"
} }

18
README.md Normal file
View File

@ -0,0 +1,18 @@
## Getting Started
Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code.
## Folder Structure
The workspace contains two folders by default, where:
- `src`: the folder to maintain sources
- `lib`: the folder to maintain dependencies
Meanwhile, the compiled output files will be generated in the `bin` folder by default.
> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there.
## Dependency Management
The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies).

View File

@ -1,42 +0,0 @@
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.3/userguide/building_java_projects.html
*/
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
// Use JUnit Jupiter for testing.
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.2'
// This dependency is used by the application.
implementation 'com.google.guava:guava:30.1.1-jre'
implementation 'ch.hevs.gdx2d:gdx2d-desktop:1.2.1'
implementation 'com.badlogicgames.gdx:gdx-backend-lwjgl:1.5.6'
implementation 'com.badlogicgames.gdx:gdx-platform:1.5.6'
implementation 'com.badlogicgames.gdx:gdx-box2d-platform:1.5.6'
implementation 'com.badlogicgames.gdx:gdx-freetype-platform:1.5.6'
}
application {
// Define the main class for the application.
mainClass = 'PokeMudry'
}
/*
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}
*/

BIN
bin/Entity/Character.class Normal file

Binary file not shown.

BIN
bin/Entity/Enemy.class Normal file

Binary file not shown.

BIN
bin/Entity/Entity.class Normal file

Binary file not shown.

BIN
bin/Entity/Player.class Normal file

Binary file not shown.

BIN
bin/Entity/Stuff.class Normal file

Binary file not shown.

BIN
bin/PokeMudry.class Normal file

Binary file not shown.

Binary file not shown.

BIN
bin/Screen/Hero.class Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/Screen/ScreenMap.class Normal file

Binary file not shown.

Binary file not shown.

BIN
bin/testHER.class Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +0,0 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

234
gradlew vendored
View File

@ -1,234 +0,0 @@
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
APP_NAME="Gradle"
APP_BASE_NAME=${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" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
echo "$*"
} >&2
die () {
echo
echo "$*"
echo
exit 1
} >&2
# 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 ;; #(
MSYS* | 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" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"

89
gradlew.bat vendored
View File

@ -1,89 +0,0 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@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 Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@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" "-Xms64m"
@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 execute
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 execute
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
: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 %*
: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

Binary file not shown.

BIN
lib/gdx2d-desktop-1.2.2.jar Normal file

Binary file not shown.

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

Before

Width:  |  Height:  |  Size: 438 KiB

After

Width:  |  Height:  |  Size: 438 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 867 KiB

After

Width:  |  Height:  |  Size: 867 KiB

View File

Before

Width:  |  Height:  |  Size: 225 KiB

After

Width:  |  Height:  |  Size: 225 KiB

View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -462,7 +462,7 @@
</tileset> </tileset>
<layer id="1" name="Ground" width="40" height="40"> <layer id="1" name="Ground" width="40" height="40">
<data encoding="base64" compression="zlib"> <data encoding="base64" compression="zlib">
eJztmNtOwzAMQAPjPi4DJK5idCvsAgP6/1+HK2rJMlliO03Xhz4cbc3S5sR22nRT59w0I5fAFTBJuMYRcJyJi8bvPNLvRDDHXRKKb6rfAXCfyEOCX2z80LX3gH1gRNpeA/1jftTlkMX+EXhS8AycAmfAWOm0zW/iace2GTBXUGb0WwF3LH/o9wZ8AO879PMxI+NK4inxk9QixslX64vMflrXmop5cb+N+6v/r47yi6wix7F48boM+UljxR2wjcYPv8f8eFzbit+SHaOPNn6588s9Oesmf1I+lX6+nNP9Az6LQoyE/ZCXgJ+kBul9D+caYizs5zvPsj7ofe8auIlwK+znOy/mUgR+i9Ve1xRbYtwnz6JDH8verAuv7+ZTcu+kz5+ypfGlSPxqp6rp26XfTyY/rBlLLfC6zuHH91MpdSvxo/sLjR+foza3Uj/tOHQ/gHu6jTGGFr/KeH3L2soRv5Cfdu1Y9mZWvzrHdI+css7bop6/7323dP/f61IoEh19eVg7W076Do+V9n+jvngPDAz4+QU9mLB5 eJztmNtOwzAMQAPjPmADJG4To2OwCwzo/38drqgly8oS20nWPfThSGuXJie2m2SbOuemBbkGRsA4oY8T4LQQV63fZaTdmWCOXRKKb6rfEfCQyGOCX2z8UN8HwCEwIPdeA+1jftTlmMX+CXhWMAHOgQtgqHTa5jf23Md7M+BNwbyg3wq4Z/lDv3fgE/jo0M/HjIwriafET1KLGCdfrS8K+2ldG2rmxf027r/+v3eUX2QVuY7Fi9dlyE8aK+6A92j88HPMj8c1V/yW7Bp9tPErnV/uyVm3+ZPypfTz5ZyeH3AvCjEQtkNeAn6SGqTrHs41xFDYzvec5f2g694NcBvhTtjO91zMpQp856s9PA9MhHPNSbUlxtST7xddOIbe2Zx+lrNZrM8cfj+sL+n+IxkzZ/wkfs04ddt2l36/Bf1GRj9e1yXjh/t+yloj8aPnC40fn6M2t1I/7Tj0PIBnuo0xhha/2ti/pR5LxC/kp937LGczq1+TY3pG7nKfpvP3/d6du7zreJXo6MvD2tlysu/wWGn/N9oX756eHj9/jGawrg==
</data> </data>
</layer> </layer>
<objectgroup id="3" name="door"> <objectgroup id="3" name="door">
@ -470,14 +470,14 @@
<properties> <properties>
<property name="nextMap" value="test"/> <property name="nextMap" value="test"/>
<property name="nextX" type="int" value="4"/> <property name="nextX" type="int" value="4"/>
<property name="nextY" type="int" value="8"/> <property name="nextY" type="int" value="1"/>
</properties> </properties>
</object> </object>
<object id="13" x="592" y="1007"> <object id="13" x="592" y="1007">
<properties> <properties>
<property name="nextMap" value="test_couloir"/> <property name="nextMap" value="test_couloir"/>
<property name="nextX" type="int" value="9"/> <property name="nextX" type="int" value="8"/>
<property name="nextY" type="int" value="4"/> <property name="nextY" type="int" value="2"/>
</properties> </properties>
</object> </object>
</objectgroup> </objectgroup>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<map version="1.8" tiledversion="1.8.5" orientation="orthogonal" renderorder="right-down" width="20" height="10" tilewidth="32" tileheight="32" infinite="0" nextlayerid="8" nextobjectid="8"> <map version="1.8" tiledversion="1.8.5" orientation="orthogonal" renderorder="left-down" width="20" height="10" tilewidth="32" tileheight="32" infinite="0" nextlayerid="11" nextobjectid="12">
<editorsettings> <editorsettings>
<export target="../../../../../../../../Desktop/test_couloir.tmx" format="tmx"/> <export target="../../../../../../../../Desktop/test_couloir.tmx" format="tmx"/>
</editorsettings> </editorsettings>
@ -4625,37 +4625,37 @@
<tile id="492"> <tile id="492">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="493"> <tile id="493">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="494"> <tile id="494">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="495"> <tile id="495">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="496"> <tile id="496">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="497"> <tile id="497">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="498"> <tile id="498">
@ -4829,37 +4829,37 @@
<tile id="526"> <tile id="526">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="527"> <tile id="527">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="528"> <tile id="528">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="529"> <tile id="529">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="530"> <tile id="530">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="531"> <tile id="531">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="532"> <tile id="532">
@ -5033,37 +5033,37 @@
<tile id="560"> <tile id="560">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="561"> <tile id="561">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="562"> <tile id="562">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="563"> <tile id="563">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="564"> <tile id="564">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="565"> <tile id="565">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="566"> <tile id="566">
@ -5237,37 +5237,37 @@
<tile id="594"> <tile id="594">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="595"> <tile id="595">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="596"> <tile id="596">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="597"> <tile id="597">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="598"> <tile id="598">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="599"> <tile id="599">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="600"> <tile id="600">
@ -5441,37 +5441,37 @@
<tile id="628"> <tile id="628">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="629"> <tile id="629">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="630"> <tile id="630">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="631"> <tile id="631">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="632"> <tile id="632">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="633"> <tile id="633">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="634"> <tile id="634">
@ -5645,37 +5645,37 @@
<tile id="662"> <tile id="662">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="663"> <tile id="663">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="664"> <tile id="664">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="665"> <tile id="665">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="666"> <tile id="666">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="667"> <tile id="667">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="668"> <tile id="668">
@ -5849,37 +5849,37 @@
<tile id="696"> <tile id="696">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="697"> <tile id="697">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="698"> <tile id="698">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="699"> <tile id="699">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="700"> <tile id="700">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="701"> <tile id="701">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="702"> <tile id="702">
@ -6053,37 +6053,37 @@
<tile id="730"> <tile id="730">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="731"> <tile id="731">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="732"> <tile id="732">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="733"> <tile id="733">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="734"> <tile id="734">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="735"> <tile id="735">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="736"> <tile id="736">
@ -6257,37 +6257,37 @@
<tile id="764"> <tile id="764">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="765"> <tile id="765">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="766"> <tile id="766">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="767"> <tile id="767">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="768"> <tile id="768">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="769"> <tile id="769">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="770"> <tile id="770">
@ -6461,19 +6461,19 @@
<tile id="798"> <tile id="798">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="799"> <tile id="799">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="800"> <tile id="800">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="801"> <tile id="801">
@ -6665,19 +6665,19 @@
<tile id="832"> <tile id="832">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="833"> <tile id="833">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="834"> <tile id="834">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="835"> <tile id="835">
@ -6869,19 +6869,19 @@
<tile id="866"> <tile id="866">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="867"> <tile id="867">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="868"> <tile id="868">
<properties> <properties>
<property name="speed" type="float" value="1"/> <property name="speed" type="float" value="1"/>
<property name="walkable" type="bool" value="false"/> <property name="walkable" type="bool" value="true"/>
</properties> </properties>
</tile> </tile>
<tile id="869"> <tile id="869">
@ -8967,7 +8967,7 @@
</properties> </properties>
</tile> </tile>
</tileset> </tileset>
<layer id="6" name="background" width="20" height="10" locked="1"> <layer id="6" name="background" width="20" height="10">
<data encoding="csv"> <data encoding="csv">
21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,
21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,
@ -8981,7 +8981,7 @@
21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21
</data> </data>
</layer> </layer>
<layer id="2" name="floor" width="20" height="10" locked="1"> <layer id="2" name="floor" width="20" height="10">
<data encoding="csv"> <data encoding="csv">
956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956, 956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,
956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956, 956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,956,
@ -8990,42 +8990,26 @@
1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113, 1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,
1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113, 1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,
1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113, 1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,
1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113,1113, 1113,1113,1113,1113,1113,1113,1113,1113,909,1113,1113,909,1113,1113,1113,1113,1113,1113,1113,1113,
1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147, 1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,1147,
921,921,921,921,921,921,921,921,921,921,921,921,921,921,921,921,921,921,921,921 921,921,921,921,921,921,921,921,921,921,921,921,921,921,921,921,921,921,921,921
</data> </data>
</layer> </layer>
<objectgroup id="7" name="door" locked="1"> <layer id="8" name="stair" width="20" height="10">
<object id="4" gid="17" x="96" y="96" width="32" height="32"> <data encoding="csv">
<properties> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
<property name="nextMap" value="test"/> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
<property name="nextX" type="int" value="2"/> 0,0,0,17,2147483665,0,0,0,0,0,0,0,0,0,0,17,2147483665,0,0,0,
<property name="nextY" type="int" value="9"/> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
</properties> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
</object> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
<object id="5" gid="17" x="480" y="96" width="32" height="32"> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
<properties> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
<property name="nextMap" value="test"/> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
<property name="nextX" type="int" value="6"/> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
<property name="nextY" type="int" value="9"/> </data>
</properties> </layer>
</object> <layer id="1" name="wall" width="20" height="10">
<object id="6" gid="2147483665" x="512" y="96" width="32" height="32">
<properties>
<property name="nextMap" value="test"/>
<property name="nextX" type="int" value="6"/>
<property name="nextY" type="int" value="9"/>
</properties>
</object>
<object id="7" gid="2147483665" x="128" y="96" width="32" height="32">
<properties>
<property name="nextMap" value="test"/>
<property name="nextX" type="int" value="2"/>
<property name="nextY" type="int" value="9"/>
</properties>
</object>
</objectgroup>
<layer id="1" name="wall" width="20" height="10" locked="1">
<data encoding="csv"> <data encoding="csv">
21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21, 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,
40,40,40,8,9,40,40,40,40,40,40,40,40,40,40,8,9,40,40,40, 40,40,40,8,9,40,40,40,40,40,40,40,40,40,40,8,9,40,40,40,
@ -9039,4 +9023,34 @@
21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21 21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21
</data> </data>
</layer> </layer>
<objectgroup id="9" name="door">
<object id="8" x="115" y="74">
<properties>
<property name="nextMap" value="test"/>
<property name="nextX" type="int" value="2"/>
<property name="nextY" type="int" value="0"/>
</properties>
</object>
<object id="9" x="140" y="75">
<properties>
<property name="nextMap" value="test"/>
<property name="nextX" type="int" value="2"/>
<property name="nextY" type="int" value="0"/>
</properties>
</object>
<object id="10" x="501.5" y="75">
<properties>
<property name="nextMap" value="test"/>
<property name="nextX" type="int" value="6"/>
<property name="nextY" type="int" value="0"/>
</properties>
</object>
<object id="11" x="522.5" y="75">
<properties>
<property name="nextMap" value="test"/>
<property name="nextX" type="int" value="6"/>
<property name="nextY" type="int" value="0"/>
</properties>
</object>
</objectgroup>
</map> </map>

View File

@ -1,11 +0,0 @@
/*
* This file was generated by the Gradle 'init' task.
*
* The settings file is used to specify which projects to include in your build.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user manual at https://docs.gradle.org/7.3/userguide/multi_project_builds.html
*/
rootProject.name = 'PokeMudry'
include('app')

View File

@ -70,7 +70,7 @@ public class Hero implements DrawableObject {
newPosition = new Vector2(initialPosition); newPosition = new Vector2(initialPosition);
position = new Vector2(initialPosition); position = new Vector2(initialPosition);
ss = new Spritesheet("app/src/main/resources/lumberjack_sheet32.png", SPRITE_WIDTH, SPRITE_HEIGHT); ss = new Spritesheet("./resources/lumberjack_sheet32.png", SPRITE_WIDTH, SPRITE_HEIGHT);
} }
/** /**

View File

@ -3,6 +3,7 @@ package Screen;
import ch.hevs.gdx2d.lib.GdxGraphics; import ch.hevs.gdx2d.lib.GdxGraphics;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input; import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.maps.MapObject; import com.badlogic.gdx.maps.MapObject;
import com.badlogic.gdx.maps.MapObjects; import com.badlogic.gdx.maps.MapObjects;
import com.badlogic.gdx.maps.MapProperties; import com.badlogic.gdx.maps.MapProperties;
@ -34,11 +35,8 @@ public class ScreenMap {
private int tileHeight; private int tileHeight;
// position
Vector2 pannel = new Vector2(30, 30);
private void createMap(String name){ private void createMap(String name){
TiledMap tm =new TmxMapLoader().load("app/src/main/resources/map/"+ name + ".tmx"); TiledMap tm =new TmxMapLoader().load("./resources/map/"+ name + ".tmx");
tMap.put(name,tm); tMap.put(name,tm);
tMapRenderer.put(name,new OrthogonalTiledMapRenderer(tm)); tMapRenderer.put(name,new OrthogonalTiledMapRenderer(tm));
} }
@ -46,7 +44,7 @@ public class ScreenMap {
public void init() { public void init() {
// Create hero // Create hero
hero = new Hero(9, 4); hero = new Hero(8, 15);
// Set initial zoom // Set initial zoom
zoom = 1; zoom = 1;