Windows build support

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
unknown 2022-06-11 08:39:19 +03:00
parent f4d44b4431
commit 561c51da19
51 changed files with 31 additions and 24 deletions

View File

@ -5,5 +5,5 @@ javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp $
printf "\n\n\nRunning Program...\n\n"
ORIGINAL_LOC=$(pwd)
cd $OUT_DIR
java ${CUSTOM_PARAMS} -cp .:../lib/bin -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh
java ${CUSTOM_PARAMS} -cp .:../lib/bin/ -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"
#${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh

9
Java/scripts/build2.sh Normal file
View File

@ -0,0 +1,9 @@
#Builds and runs the project.
#Java
source ${LANGUAGE}/scripts/version_info
javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp ${CLASS_PATH2} -d ${OUT_DIR} ${PROJECT_DIR}/*.java
printf "\n\n\nRunning Program...\n\n"
ORIGINAL_LOC=$(pwd)
cd $OUT_DIR
java ${CUSTOM_PARAMS} -cp ".;../lib/bin/ " "-Djava.library.path=${LIBRARY_PATH}" ${MAIN_CLASS} "$@"
#${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh

View File

@ -1,6 +1,6 @@
build.sh:293285766098a4e3d4d708e58a69de82 -
clean.sh:668a2f9b568c55f6a044a509315032f6 -
commit.sh:5e4448db9ad48e72ec3a1ff4f5763b41 -
jar.sh:2f59229fcaf02779bfaa43144f3be66f -
release.sh:b1b62203411b18d0fec1db3dc2e5a061 -
update.sh:3be721658983183efa395984acd96b03 -
build.sh:293285766098a4e3d4d708e58a69de82 *-
clean.sh:668a2f9b568c55f6a044a509315032f6 *-
commit.sh:5e4448db9ad48e72ec3a1ff4f5763b41 *-
jar.sh:2f59229fcaf02779bfaa43144f3be66f *-
release.sh:b1b62203411b18d0fec1db3dc2e5a061 *-
update.sh:3be721658983183efa395984acd96b03 *-

Binary file not shown.

BIN
bin/sig/DrawLoop.class Normal file

Binary file not shown.

BIN
bin/sig/RabiClone.class Normal file

Binary file not shown.

BIN
bin/sig/engine/Action.class Normal file

Binary file not shown.

BIN
bin/sig/engine/Alpha.class Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/sig/engine/Color.class Normal file

Binary file not shown.

BIN
bin/sig/engine/Edge.class Normal file

Binary file not shown.

BIN
bin/sig/engine/Font.class Normal file

Binary file not shown.

Binary file not shown.

BIN
bin/sig/engine/Key.class Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/sig/engine/Object.class Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/sig/engine/Panel.class Normal file

Binary file not shown.

BIN
bin/sig/engine/Point.class Normal file

Binary file not shown.

Binary file not shown.

BIN
bin/sig/engine/Sprite.class Normal file

Binary file not shown.

BIN
bin/sig/engine/String.class Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/sig/map/Map.class Normal file

Binary file not shown.

BIN
bin/sig/map/Maps.class Normal file

Binary file not shown.

BIN
bin/sig/map/Tile.class Normal file

Binary file not shown.

BIN
bin/sig/map/Type.class Normal file

Binary file not shown.

BIN
bin/sig/map/View.class Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,10 +0,0 @@
#Builds and runs the project.
#Java
source ${LANGUAGE}/scripts/version_info
rm -Rf out/*
javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp ${PROJECT_DIR}/.. -d ${OUT_DIR} ${PROJECT_DIR}/*.java
printf "\n\n\nRunning Program...\n\n"
ORIGINAL_LOC=$(pwd)
cd $OUT_DIR
java -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh

Binary file not shown.

3
sig
View File

@ -1,4 +1,4 @@
export AUTO_UPDATE=true
export AUTO_UPDATE=false
source utils/define.sh
@ -8,6 +8,7 @@ define MAIN_CLASS "sig.${PROJECT_NAME}"
define OUT_DIR "bin"
define LIBRARY_PATH "../lib"
define CLASS_PATH "${PROJECT_DIR}/..:lib/bin"
define CLASS_PATH2 "${PROJECT_DIR}/..;lib/bin"
define CUSTOM_PARAMS "-Xmx2G -Xms2G"
define LANGUAGE "Java"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 735 B

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -2,5 +2,6 @@ package sig.map;
public enum CollisionType {
BLOCK,
SLOPE,
NONE
}

View File

@ -7,6 +7,12 @@ public enum Tile {
PLATFORM_LEDGE(2,0,CollisionType.BLOCK),
INVISIBLE_WALL(0,0,true,CollisionType.BLOCK),
HIGHLIGHTED_TILE(3,0,CollisionType.BLOCK),
SMALL_SLOPE_LEFT(0,1,CollisionType.BLOCK),
SMALL_SLOPE_RIGHT(1,1,CollisionType.BLOCK),
BIG_SLOPE_LEFT1(2,1,CollisionType.BLOCK),
BIG_SLOPE_LEFT2(3,1,CollisionType.BLOCK),
BIG_SLOPE_RIGHT1(0,2,CollisionType.BLOCK),
BIG_SLOPE_RIGHT2(1,2,CollisionType.BLOCK),
;
final public static int TILE_WIDTH=32;

View File

@ -1,5 +1,5 @@
.coauthors
.updateDirectories
define.sh
main.sh
search.sh
.updateDirectories

View File

@ -1,4 +1,4 @@
define.sh:3ecab0dffe2adfb950f3eb7c7061b750 -
main.sh:d3d1bd0b56d8114eb7479964227f8576 -
search.sh:81d08f5ff48e8a44b5f68387d426da05 -
.updateDirectories:0ede00461e947494545e694040787b3f -
.updateDirectories:0ede00461e947494545e694040787b3f *-
define.sh:3ecab0dffe2adfb950f3eb7c7061b750 *-
main.sh:d3d1bd0b56d8114eb7479964227f8576 *-
search.sh:81d08f5ff48e8a44b5f68387d426da05 *-