Skip to content

Commit

Permalink
#15 Portal Gun
Browse files Browse the repository at this point in the history
  • Loading branch information
plajdo committed Aug 13, 2022
2 parents b5433dd + 8c87672 commit ce17a91
Show file tree
Hide file tree
Showing 50 changed files with 1,398 additions and 303 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions .idea/runConfigurations.xml

This file was deleted.

100 changes: 56 additions & 44 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added aseprite/crosshair.aseprite
Binary file not shown.
Binary file added aseprite/logo.aseprite
Binary file not shown.
46 changes: 1 addition & 45 deletions bludisko_rt.iml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/tests" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
</content>
<orderEntry type="jdk" jdkName="17" jdkType="JavaSDK" />
<orderEntry type="jdk" jdkName="18" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library>
Expand All @@ -34,48 +33,5 @@
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter/5.7.0/junit-jupiter-5.7.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-api/5.7.0/junit-jupiter-api-5.7.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/apiguardian/apiguardian-api/1.1.0/apiguardian-api-1.1.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-commons/1.7.0/junit-platform-commons-1.7.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-params/5.7.0/junit-jupiter-params-5.7.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-engine/5.7.0/junit-jupiter-engine-5.7.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-engine/1.7.0/junit-platform-engine-1.7.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="library" name="jetbrains.annotations" level="project" />
<orderEntry type="module-library" scope="TEST">
<library name="JUnit4">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.13.1/junit-4.13.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library" scope="TEST">
<library name="JUnit5.8.1">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter/5.8.1/junit-jupiter-5.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-api/5.8.1/junit-jupiter-api-5.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-commons/1.8.1/junit-platform-commons-1.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-params/5.8.1/junit-jupiter-params-5.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-engine/5.8.1/junit-jupiter-engine-5.8.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-engine/1.8.1/junit-platform-engine-1.8.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
</component>
</module>
Binary file modified res/maps/chamber1.map
Binary file not shown.
5 changes: 3 additions & 2 deletions res/run.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/usr/bin/env bash
java --enable-preview -jar bludisko_rt.jar
#!/bin/bash

java --enable-preview -jar bludisko_rt.jar
Binary file added res/textures/other/crosshair.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/textures/other/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
open module bludisko.rt {
requires jdk.unsupported;
requires java.desktop;
requires org.jetbrains.annotations;
}
4 changes: 2 additions & 2 deletions src/sk/bytecode/bludisko/rt/desktop/DesktopLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import sk.bytecode.bludisko.rt.game.graphics.TextureManager;
import sk.bytecode.bludisko.rt.game.window.Window;
import sk.bytecode.bludisko.rt.game.window.screens.GameScreen;
import sk.bytecode.bludisko.rt.game.window.screens.MenuScreen;

public class DesktopLauncher {

Expand All @@ -13,7 +13,7 @@ public class DesktopLauncher {
public static void main(String[] args) {
TextureManager.loadAll();

Window window = new Window(new GameScreen());
Window window = new Window(new MenuScreen());
window.start();
}

Expand Down
2 changes: 0 additions & 2 deletions src/sk/bytecode/bludisko/rt/game/blocks/Block.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public Side getSide(Vector2 position) {
} else {
return Side.SOUTH;
}

}
if(position.y % 1 == 0) {
// East-West
Expand All @@ -73,7 +72,6 @@ public Side getSide(Vector2 position) {
return Side.EAST;
}
}

return Side.NONE;
}

Expand Down
3 changes: 0 additions & 3 deletions src/sk/bytecode/bludisko/rt/game/blocks/BlockManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ public static Block createBlock(int id, int x, int y) {
case 5 -> new GlassPane(Side.NORTH, coordinates);
case 6 -> new GlassPane(Side.EAST, coordinates);

case 7 -> new Portal(Side.EAST, Portal.Color.ORANGE, coordinates);
case 8 -> new Portal(Side.SOUTH, Portal.Color.BLUE, coordinates);

case 9 -> new WallWindow(coordinates, false);
case 10 -> new WallWindow(coordinates, true);
case 11 -> new Board(coordinates, 0);
Expand Down
Loading

0 comments on commit ce17a91

Please sign in to comment.