diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7e818c2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,59 @@ +name: Build Workflow + +on: + push: + branches: + - main + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + distribution: 'adopt' # Optional, you can choose other JDK providers (e.g., zulu) + java-version: '17' + + - name: Build with Maven + run: mvn package + + - name: Create EXE using Launch4j + run: | + curl -L https://github.com/launch4j/launch4j/releases/download/3.14/launch4j-3.14-win32.msi --output launch4j.msi + msiexec /i launch4j.msi /quiet + launch4j --output target/MDCstudentSIMULATOR.exe --jar target/gs-maven-0.1.0.jar --outfile target/MDCstudentSIMULATOR.exe + shell: bash + + - name: Upload EXE artifact + uses: actions/upload-artifact@v2 + with: + name: app_executable + path: target/MDCstudentSIMULATOR.exe + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref_name }} + release_name: "Release ${{ github.ref_name }}" + body: "Release created by GitHub Actions" + draft: false + prerelease: false + + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: target/MDCstudentSIMULATOR.exe + asset_name: MDCstudentSIMULATOR.exe + asset_content_type: application/octet-stream diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f23b948 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.jar \ No newline at end of file diff --git a/Makefile b/Makefile index 767d582..151c97f 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,3 @@ hi: - java -jar target/gs-maven-0.1.0-shaded.jar + mvn package + java -jar target/gs-maven-0.1.0.jar diff --git a/README.md b/README.md index 8bfd916..a483deb 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # MDCstudentSIMULATOR +To compile and play the game, you need maven and make. +You can install these using chocolatey with `choco install maven make -y` +Then, clone the repo, change directory to the repo, and say `make` + ## Play this on replit! https://replit.com/@JacquesFleische/MDCstudentSIMULATOR diff --git a/target/classes/hello/CharacterSelect$1.class b/target/classes/hello/CharacterSelect$1.class index f3bad35..b90f19e 100644 Binary files a/target/classes/hello/CharacterSelect$1.class and b/target/classes/hello/CharacterSelect$1.class differ diff --git a/target/classes/hello/CharacterSelect$2.class b/target/classes/hello/CharacterSelect$2.class index 2763651..b2cb439 100644 Binary files a/target/classes/hello/CharacterSelect$2.class and b/target/classes/hello/CharacterSelect$2.class differ diff --git a/target/classes/hello/CharacterSelect$3.class b/target/classes/hello/CharacterSelect$3.class index 9eb3c37..48ec309 100644 Binary files a/target/classes/hello/CharacterSelect$3.class and b/target/classes/hello/CharacterSelect$3.class differ diff --git a/target/classes/hello/CharacterSelect$4.class b/target/classes/hello/CharacterSelect$4.class index 6c36c3f..1bf76cd 100644 Binary files a/target/classes/hello/CharacterSelect$4.class and b/target/classes/hello/CharacterSelect$4.class differ diff --git a/target/classes/hello/CharacterSelect$5.class b/target/classes/hello/CharacterSelect$5.class index 84156f9..b007b78 100644 Binary files a/target/classes/hello/CharacterSelect$5.class and b/target/classes/hello/CharacterSelect$5.class differ diff --git a/target/classes/hello/CharacterSelect.class b/target/classes/hello/CharacterSelect.class index c0370a4..dfed43f 100644 Binary files a/target/classes/hello/CharacterSelect.class and b/target/classes/hello/CharacterSelect.class differ diff --git a/target/classes/hello/GameStart$1.class b/target/classes/hello/GameStart$1.class index 25b6c5b..4888d97 100644 Binary files a/target/classes/hello/GameStart$1.class and b/target/classes/hello/GameStart$1.class differ diff --git a/target/classes/hello/GameStart$2.class b/target/classes/hello/GameStart$2.class index 1ccb334..f505a81 100644 Binary files a/target/classes/hello/GameStart$2.class and b/target/classes/hello/GameStart$2.class differ diff --git a/target/classes/hello/GameStart.class b/target/classes/hello/GameStart.class index 4e4c413..a7e2daa 100644 Binary files a/target/classes/hello/GameStart.class and b/target/classes/hello/GameStart.class differ diff --git a/target/classes/hello/Lecture$1.class b/target/classes/hello/Lecture$1.class index 2d3871c..96e7d74 100644 Binary files a/target/classes/hello/Lecture$1.class and b/target/classes/hello/Lecture$1.class differ diff --git a/target/classes/hello/Lecture$2.class b/target/classes/hello/Lecture$2.class index d81ffa1..5089e1c 100644 Binary files a/target/classes/hello/Lecture$2.class and b/target/classes/hello/Lecture$2.class differ diff --git a/target/classes/hello/Lecture.class b/target/classes/hello/Lecture.class index bdef2e4..3efd2a2 100644 Binary files a/target/classes/hello/Lecture.class and b/target/classes/hello/Lecture.class differ diff --git a/target/classes/hello/LosingScreen$1.class b/target/classes/hello/LosingScreen$1.class index f545f70..eb43d45 100644 Binary files a/target/classes/hello/LosingScreen$1.class and b/target/classes/hello/LosingScreen$1.class differ diff --git a/target/classes/hello/LosingScreen$2.class b/target/classes/hello/LosingScreen$2.class index c56cb87..52dcba1 100644 Binary files a/target/classes/hello/LosingScreen$2.class and b/target/classes/hello/LosingScreen$2.class differ diff --git a/target/classes/hello/LosingScreen.class b/target/classes/hello/LosingScreen.class index 0a34441..ca1c783 100644 Binary files a/target/classes/hello/LosingScreen.class and b/target/classes/hello/LosingScreen.class differ diff --git a/target/classes/hello/MainWindow$1.class b/target/classes/hello/MainWindow$1.class index a08169e..f73b95b 100644 Binary files a/target/classes/hello/MainWindow$1.class and b/target/classes/hello/MainWindow$1.class differ diff --git a/target/classes/hello/MainWindow$2.class b/target/classes/hello/MainWindow$2.class index b2c3f53..be1cc0d 100644 Binary files a/target/classes/hello/MainWindow$2.class and b/target/classes/hello/MainWindow$2.class differ diff --git a/target/classes/hello/MainWindow$3.class b/target/classes/hello/MainWindow$3.class index 1ad1afe..62a6398 100644 Binary files a/target/classes/hello/MainWindow$3.class and b/target/classes/hello/MainWindow$3.class differ diff --git a/target/classes/hello/MainWindow$4.class b/target/classes/hello/MainWindow$4.class index be7f01f..90251f8 100644 Binary files a/target/classes/hello/MainWindow$4.class and b/target/classes/hello/MainWindow$4.class differ diff --git a/target/classes/hello/MainWindow.class b/target/classes/hello/MainWindow.class index bc511a4..58db2d0 100644 Binary files a/target/classes/hello/MainWindow.class and b/target/classes/hello/MainWindow.class differ diff --git a/target/classes/hello/Party$1.class b/target/classes/hello/Party$1.class index f3fc2ca..0b390fd 100644 Binary files a/target/classes/hello/Party$1.class and b/target/classes/hello/Party$1.class differ diff --git a/target/classes/hello/Party$2.class b/target/classes/hello/Party$2.class index 3f05f12..1ce85e3 100644 Binary files a/target/classes/hello/Party$2.class and b/target/classes/hello/Party$2.class differ diff --git a/target/classes/hello/Party.class b/target/classes/hello/Party.class index c9ee2f2..39d1af7 100644 Binary files a/target/classes/hello/Party.class and b/target/classes/hello/Party.class differ diff --git a/target/classes/hello/PausablePlayer$1.class b/target/classes/hello/PausablePlayer$1.class index 7580ac0..115b31e 100644 Binary files a/target/classes/hello/PausablePlayer$1.class and b/target/classes/hello/PausablePlayer$1.class differ diff --git a/target/classes/hello/PausablePlayer.class b/target/classes/hello/PausablePlayer.class index 226dd0f..a7453bd 100644 Binary files a/target/classes/hello/PausablePlayer.class and b/target/classes/hello/PausablePlayer.class differ diff --git a/target/classes/hello/StretchIcon.class b/target/classes/hello/StretchIcon.class index a4cf84e..fad63f8 100644 Binary files a/target/classes/hello/StretchIcon.class and b/target/classes/hello/StretchIcon.class differ diff --git a/target/classes/hello/StudentSimulator.class b/target/classes/hello/StudentSimulator.class index dec4721..94cffcc 100644 Binary files a/target/classes/hello/StudentSimulator.class and b/target/classes/hello/StudentSimulator.class differ diff --git a/target/classes/hello/Study$1.class b/target/classes/hello/Study$1.class index 2a628e5..d19e3cb 100644 Binary files a/target/classes/hello/Study$1.class and b/target/classes/hello/Study$1.class differ diff --git a/target/classes/hello/Study$2.class b/target/classes/hello/Study$2.class index 6f34b47..1cc9bca 100644 Binary files a/target/classes/hello/Study$2.class and b/target/classes/hello/Study$2.class differ diff --git a/target/classes/hello/Study.class b/target/classes/hello/Study.class index 2b54d69..ec1129d 100644 Binary files a/target/classes/hello/Study.class and b/target/classes/hello/Study.class differ diff --git a/target/classes/hello/VideoGame$1.class b/target/classes/hello/VideoGame$1.class index 7cdb29b..45ad486 100644 Binary files a/target/classes/hello/VideoGame$1.class and b/target/classes/hello/VideoGame$1.class differ diff --git a/target/classes/hello/VideoGame$2.class b/target/classes/hello/VideoGame$2.class index c137253..dfb81aa 100644 Binary files a/target/classes/hello/VideoGame$2.class and b/target/classes/hello/VideoGame$2.class differ diff --git a/target/classes/hello/VideoGame.class b/target/classes/hello/VideoGame.class index 905590f..8e39c37 100644 Binary files a/target/classes/hello/VideoGame.class and b/target/classes/hello/VideoGame.class differ diff --git a/target/classes/hello/WhereThingsHappen$1.class b/target/classes/hello/WhereThingsHappen$1.class index 8ab54a4..26afc6f 100644 Binary files a/target/classes/hello/WhereThingsHappen$1.class and b/target/classes/hello/WhereThingsHappen$1.class differ diff --git a/target/classes/hello/WhereThingsHappen$2.class b/target/classes/hello/WhereThingsHappen$2.class index c617e09..4661de2 100644 Binary files a/target/classes/hello/WhereThingsHappen$2.class and b/target/classes/hello/WhereThingsHappen$2.class differ diff --git a/target/classes/hello/WhereThingsHappen$3.class b/target/classes/hello/WhereThingsHappen$3.class index e68d2ca..00437e1 100644 Binary files a/target/classes/hello/WhereThingsHappen$3.class and b/target/classes/hello/WhereThingsHappen$3.class differ diff --git a/target/classes/hello/WhereThingsHappen$4.class b/target/classes/hello/WhereThingsHappen$4.class index 7aa3bc1..edf635a 100644 Binary files a/target/classes/hello/WhereThingsHappen$4.class and b/target/classes/hello/WhereThingsHappen$4.class differ diff --git a/target/classes/hello/WhereThingsHappen$5.class b/target/classes/hello/WhereThingsHappen$5.class index 7bdb330..28fc80f 100644 Binary files a/target/classes/hello/WhereThingsHappen$5.class and b/target/classes/hello/WhereThingsHappen$5.class differ diff --git a/target/classes/hello/WhereThingsHappen$6.class b/target/classes/hello/WhereThingsHappen$6.class index b68f1fb..b7975a1 100644 Binary files a/target/classes/hello/WhereThingsHappen$6.class and b/target/classes/hello/WhereThingsHappen$6.class differ diff --git a/target/classes/hello/WhereThingsHappen$7.class b/target/classes/hello/WhereThingsHappen$7.class index 6ec3d07..12bd1fe 100644 Binary files a/target/classes/hello/WhereThingsHappen$7.class and b/target/classes/hello/WhereThingsHappen$7.class differ diff --git a/target/classes/hello/WhereThingsHappen$RoundedBorder.class b/target/classes/hello/WhereThingsHappen$RoundedBorder.class index 4cc7113..e389275 100644 Binary files a/target/classes/hello/WhereThingsHappen$RoundedBorder.class and b/target/classes/hello/WhereThingsHappen$RoundedBorder.class differ diff --git a/target/classes/hello/WhereThingsHappen.class b/target/classes/hello/WhereThingsHappen.class index 3ae174b..623383c 100644 Binary files a/target/classes/hello/WhereThingsHappen.class and b/target/classes/hello/WhereThingsHappen.class differ diff --git a/target/classes/hello/WhichCharacter.class b/target/classes/hello/WhichCharacter.class index 584f762..1cbfcc0 100644 Binary files a/target/classes/hello/WhichCharacter.class and b/target/classes/hello/WhichCharacter.class differ diff --git a/target/classes/hello/WinningScreen$1.class b/target/classes/hello/WinningScreen$1.class index f55be94..c03ea2d 100644 Binary files a/target/classes/hello/WinningScreen$1.class and b/target/classes/hello/WinningScreen$1.class differ diff --git a/target/classes/hello/WinningScreen$2.class b/target/classes/hello/WinningScreen$2.class index 2b02739..1b7013e 100644 Binary files a/target/classes/hello/WinningScreen$2.class and b/target/classes/hello/WinningScreen$2.class differ diff --git a/target/classes/hello/WinningScreen.class b/target/classes/hello/WinningScreen.class index b03adab..da03945 100644 Binary files a/target/classes/hello/WinningScreen.class and b/target/classes/hello/WinningScreen.class differ diff --git a/target/classes/hello/levels.class b/target/classes/hello/levels.class index 7c740ce..a51e676 100644 Binary files a/target/classes/hello/levels.class and b/target/classes/hello/levels.class differ diff --git a/target/classes/hello/playermusic$1.class b/target/classes/hello/playermusic$1.class index 4af7352..de1c889 100644 Binary files a/target/classes/hello/playermusic$1.class and b/target/classes/hello/playermusic$1.class differ diff --git a/target/classes/hello/playermusic.class b/target/classes/hello/playermusic.class index 18fcdb9..341cc0c 100644 Binary files a/target/classes/hello/playermusic.class and b/target/classes/hello/playermusic.class differ diff --git a/target/gs-maven-0.1.0-shaded.jar b/target/gs-maven-0.1.0-shaded.jar deleted file mode 100644 index 60847fd..0000000 --- a/target/gs-maven-0.1.0-shaded.jar +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fa65bf9af9993b2dc4370f7c2a98dab13bbea5febc965e4fd7a9c6c8bf3b8e93 -size 46026570 diff --git a/target/gs-maven-0.1.0.jar b/target/gs-maven-0.1.0.jar deleted file mode 100644 index 60847fd..0000000 --- a/target/gs-maven-0.1.0.jar +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fa65bf9af9993b2dc4370f7c2a98dab13bbea5febc965e4fd7a9c6c8bf3b8e93 -size 46026570 diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index a694467..7ee8bbc 100644 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -1,16 +1,16 @@ -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\GameStart.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\WhereThingsHappen.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\Study.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\Party.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\WhichCharacter.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\playermusic.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\Lecture.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\PausablePlayer.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\VideoGame.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\LosingScreen.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\StudentSimulator.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\CharacterSelect.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\StretchIcon.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\MainWindow.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\levels.java -C:\Users\Sledgehammer\MDCstudentSIMULATOR\src\main\java\hello\WinningScreen.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\CharacterSelect.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\GameStart.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\Lecture.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\levels.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\LosingScreen.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\MainWindow.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\Party.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\PausablePlayer.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\playermusic.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\StretchIcon.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\StudentSimulator.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\Study.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\VideoGame.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\WhereThingsHappen.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\WhichCharacter.java +C:\Users\stapm\cm\MDCstudentSIMULATOR\src\main\java\hello\WinningScreen.java diff --git a/target/original-gs-maven-0.1.0.jar b/target/original-gs-maven-0.1.0.jar deleted file mode 100644 index 0639ae4..0000000 --- a/target/original-gs-maven-0.1.0.jar +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f40de41160887e9131058e0561ff14f6f30a03f46797afa3e1d2e7f05cc0b568 -size 43839815