first commit

This commit is contained in:
sillysagiri 2024-10-14 20:34:14 +07:00
commit fb8d6515c4
110 changed files with 5001 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build

5
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"java.project.referencedLibraries": [
"lib/**/*.jar",
]
}

BIN
assets/ask.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

BIN
assets/b1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

BIN
assets/bF_0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 797 B

BIN
assets/bF_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 B

BIN
assets/bF_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 887 B

BIN
assets/bF_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 857 B

BIN
assets/bF_4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

BIN
assets/bH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

BIN
assets/c_0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

BIN
assets/c_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

BIN
assets/cancel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 B

BIN
assets/d0.dat Normal file

Binary file not shown.

BIN
assets/d1.dat Normal file

Binary file not shown.

BIN
assets/d2.dat Normal file

Binary file not shown.

BIN
assets/dT_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 B

BIN
assets/dT_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

BIN
assets/dT_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

BIN
assets/ez.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 B

BIN
assets/fC.dat Normal file

Binary file not shown.

BIN
assets/fL0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

BIN
assets/fL1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

BIN
assets/fL2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

BIN
assets/f_0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 B

BIN
assets/f_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

BIN
assets/f_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

BIN
assets/f_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 B

BIN
assets/f_5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 B

BIN
assets/f_6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

BIN
assets/f_7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

BIN
assets/fa1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

BIN
assets/fa2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 485 B

BIN
assets/fa3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

BIN
assets/g.dat Normal file

Binary file not shown.

BIN
assets/gameOver.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

BIN
assets/i_0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

BIN
assets/i_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

BIN
assets/i_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 B

BIN
assets/logo/menet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

BIN
assets/m0.dat Normal file

Binary file not shown.

BIN
assets/m1.dat Normal file

Binary file not shown.

BIN
assets/m2.dat Normal file

Binary file not shown.

BIN
assets/m3.dat Normal file

Binary file not shown.

BIN
assets/m4.dat Normal file

Binary file not shown.

BIN
assets/m5.dat Normal file

Binary file not shown.

BIN
assets/m6.dat Normal file

Binary file not shown.

BIN
assets/mC.dat Normal file

Binary file not shown.

BIN
assets/mF.dat Normal file

Binary file not shown.

BIN
assets/m_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

BIN
assets/mon.dat Normal file

Binary file not shown.

BIN
assets/monWin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

BIN
assets/out.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

BIN
assets/pEZ.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

BIN
assets/root.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 833 B

BIN
assets/s/1.mmf Normal file

Binary file not shown.

BIN
assets/s/10.mmf Normal file

Binary file not shown.

BIN
assets/s/11.mmf Normal file

Binary file not shown.

BIN
assets/s/12.mmf Normal file

Binary file not shown.

BIN
assets/s/13.mmf Normal file

Binary file not shown.

BIN
assets/s/14.mmf Normal file

Binary file not shown.

BIN
assets/s/15.mmf Normal file

Binary file not shown.

BIN
assets/s/16.mmf Normal file

Binary file not shown.

BIN
assets/s/2.mmf Normal file

Binary file not shown.

BIN
assets/s/3.mmf Normal file

Binary file not shown.

BIN
assets/s/4.mmf Normal file

Binary file not shown.

BIN
assets/s/5.mmf Normal file

Binary file not shown.

BIN
assets/s/6.mmf Normal file

Binary file not shown.

BIN
assets/s/7.mmf Normal file

Binary file not shown.

BIN
assets/s/8.mmf Normal file

Binary file not shown.

BIN
assets/s/9.mmf Normal file

Binary file not shown.

BIN
assets/sN.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

BIN
assets/s_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

BIN
assets/s_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

BIN
assets/s_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 B

BIN
assets/s_7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

BIN
assets/shop.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

BIN
assets/skip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 B

BIN
assets/t1.txt Normal file

Binary file not shown.

BIN
assets/t2.txt Normal file

Binary file not shown.

BIN
assets/t3.txt Normal file

Binary file not shown.

BIN
assets/t4.txt Normal file

Binary file not shown.

BIN
assets/t5.txt Normal file

Binary file not shown.

BIN
assets/t6.txt Normal file

Binary file not shown.

BIN
assets/t7.txt Normal file

Binary file not shown.

BIN
assets/t8.txt Normal file

Binary file not shown.

BIN
assets/t9.txt Normal file

Binary file not shown.

BIN
assets/t_0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
assets/t_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

BIN
assets/t_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 901 B

BIN
assets/t_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

BIN
assets/t_4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 B

BIN
assets/w.dat Normal file

Binary file not shown.

BIN
assets/win.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

31
build.sh Normal file
View File

@ -0,0 +1,31 @@
#!/bin/bash
set -e # Exit immediately if any command fails
MAIN_CLASS="dothack/DotHack.java"
PROJECT_NAME="dh_musicfix"
SOURCE_PATH="src"
PATH_LIBRARIES="lib"
PATH_PROGUARD="/home/sillysagiri/Documents/dothack/proguard.jar"
CLASS_VERSION="1.4"
###
rm -rf "build"
mkdir -p "build/class"
###
CLASSPATH=$(find "$PATH_LIBRARIES" -type f | tr '\n' ':' | sed 's/:$//')
# compile class
javac -source $CLASS_VERSION -target $CLASS_VERSION -cp $CLASSPATH -encoding "utf-8" -d "build/class" -sourcepath $SOURCE_PATH -Xlint:-options -g "${SOURCE_PATH}/${MAIN_CLASS}"
# pack .jar
jar cvfm "build/${PROJECT_NAME}_not_preverified.jar" "${SOURCE_PATH}/META-INF/MANIFEST.MF" -C "build/class" . -C "assets" .
# preverify
java -jar $PATH_PROGUARD -microedition -injars "build/${PROJECT_NAME}_not_preverified.jar" -outjars "build/${PROJECT_NAME}.jar" -libraryjars $CLASSPATH -dontshrink -dontoptimize -dontobfuscate -target $CLASS_VERSION
# release build
# java -jar $PATH_PROGUARD -microedition -injars "build/${PROJECT_NAME}_not_preverified.jar" -outjars "build/${PROJECT_NAME}_release.jar" -libraryjars $CLASSPATH -target $CLASS_VERSION -keep "class * extends javax.microedition.midlet.MIDlet" -optimizationpasses 4 -repackageclasses "" -allowaccessmodification

BIN
lib/cldcapi11.jar Normal file

Binary file not shown.

BIN
lib/jsr75.jar Normal file

Binary file not shown.

BIN
lib/midpapi20.jar Normal file

Binary file not shown.

BIN
lib/mmapi.jar Normal file

Binary file not shown.

17
readme.txt Normal file
View File

@ -0,0 +1,17 @@
.hack//vol1 is a j2me game originally from old korean game...
the original game runs on the mighty cldc 1.0/midp 1.0 and boasts a stunning resolution of 128x128 pixels
you can get the game here on archive.net
https://archive.org/details/dh1_ezi
there is also people who translate this to english here
https://archive.org/download/dh1_ezi_en
however, due to some native apis used in the original game. the game doesnt work on most emulator.
ive been on a mission to swap out those stubborn native apis for their midp equivalents
i took on the heroic quest of porting this masterpiece to a more contemporary version of j2me: cldc 1.1/midp 2.0...
plus, i also tried added support for larger screens, like 240x320...
- building
ugh... just peek at the build.sh file for now. i promise ill whip up a more detailed guide soon...after i finish this epic battle with caffeine!

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