Correct walk direction upon landing from a reversed direction after sliding
Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com> Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
96160bd35c
commit
c115ff4a7e
@ -5,5 +5,5 @@ javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp $
|
|||||||
printf "\n\n\nRunning Program...\n\n"
|
printf "\n\n\nRunning Program...\n\n"
|
||||||
ORIGINAL_LOC=$(pwd)
|
ORIGINAL_LOC=$(pwd)
|
||||||
cd $OUT_DIR
|
cd $OUT_DIR
|
||||||
java -cp .:../lib/bin -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"
|
java ${CUSTOM_PARAMS} -cp .:../lib/bin -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"
|
||||||
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh
|
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh
|
@ -12,6 +12,6 @@ cd ${OUT_DIR}
|
|||||||
jar cfm ${PROJECT_NAME}.jar ${ORIGINAL_LOC}/manifest sig
|
jar cfm ${PROJECT_NAME}.jar ${ORIGINAL_LOC}/manifest sig
|
||||||
jar uf ${PROJECT_NAME}.jar -C ../lib/bin/ .
|
jar uf ${PROJECT_NAME}.jar -C ../lib/bin/ .
|
||||||
printf "\n\n\nRunning Program...\n\n"
|
printf "\n\n\nRunning Program...\n\n"
|
||||||
java -cp .:../lib/bin -Djava.library.path="${LIBRARY_PATH}" -jar ${PROJECT_NAME}.jar "$@"
|
java ${CUSTOM_PARAMS} -cp .:../lib/bin -Djava.library.path="${LIBRARY_PATH}" -jar ${PROJECT_NAME}.jar "$@"
|
||||||
../${LANGUAGE}/scripts/clean.sh
|
./${LANGUAGE}/scripts/clean.sh
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
build.sh:22308eae5fd9c88aa16fef54cf03ae21 -
|
build.sh:293285766098a4e3d4d708e58a69de82 -
|
||||||
clean.sh:668a2f9b568c55f6a044a509315032f6 -
|
clean.sh:668a2f9b568c55f6a044a509315032f6 -
|
||||||
commit.sh:5e4448db9ad48e72ec3a1ff4f5763b41 -
|
commit.sh:5e4448db9ad48e72ec3a1ff4f5763b41 -
|
||||||
jar.sh:9bbc25225e7356f9145f7c2b9ac72e30 -
|
jar.sh:2f59229fcaf02779bfaa43144f3be66f -
|
||||||
release.sh:b1b62203411b18d0fec1db3dc2e5a061 -
|
release.sh:b1b62203411b18d0fec1db3dc2e5a061 -
|
||||||
update.sh:3be721658983183efa395984acd96b03 -
|
update.sh:3be721658983183efa395984acd96b03 -
|
||||||
|
1
sig
1
sig
@ -8,6 +8,7 @@ define MAIN_CLASS "sig.${PROJECT_NAME}"
|
|||||||
define OUT_DIR "bin"
|
define OUT_DIR "bin"
|
||||||
define LIBRARY_PATH "../lib"
|
define LIBRARY_PATH "../lib"
|
||||||
define CLASS_PATH "${PROJECT_DIR}/..:lib/bin"
|
define CLASS_PATH "${PROJECT_DIR}/..:lib/bin"
|
||||||
|
define CUSTOM_PARAMS "-Xmx2G -Xms2G"
|
||||||
define LANGUAGE "Java"
|
define LANGUAGE "Java"
|
||||||
|
|
||||||
source utils/main.sh
|
source utils/main.sh
|
@ -100,6 +100,12 @@ public class Player extends AnimatedObject{
|
|||||||
|
|
||||||
if(x_velocity!=0){
|
if(x_velocity!=0){
|
||||||
setAnimatedSpr(Sprite.ERINA_WALK);
|
setAnimatedSpr(Sprite.ERINA_WALK);
|
||||||
|
if (x_velocity>0) {
|
||||||
|
facing_direction=RIGHT;
|
||||||
|
} else
|
||||||
|
if (x_velocity<0) {
|
||||||
|
facing_direction=LEFT;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
setAnimatedSpr(Sprite.ERINA);
|
setAnimatedSpr(Sprite.ERINA);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user