diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/HappyBird.iml b/.idea/HappyBird.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/HappyBird.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..f8e78d6 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..a11e211 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Happy_Bird/.gradle/7.1.1/executionHistory/executionHistory.bin b/Happy_Bird/.gradle/7.1.1/executionHistory/executionHistory.bin index 75215d0..ffddf3d 100644 Binary files a/Happy_Bird/.gradle/7.1.1/executionHistory/executionHistory.bin and b/Happy_Bird/.gradle/7.1.1/executionHistory/executionHistory.bin differ diff --git a/Happy_Bird/.gradle/7.1.1/executionHistory/executionHistory.lock b/Happy_Bird/.gradle/7.1.1/executionHistory/executionHistory.lock index dbf83f2..0e4d037 100644 Binary files a/Happy_Bird/.gradle/7.1.1/executionHistory/executionHistory.lock and b/Happy_Bird/.gradle/7.1.1/executionHistory/executionHistory.lock differ diff --git a/Happy_Bird/.gradle/7.1.1/fileHashes/fileHashes.bin b/Happy_Bird/.gradle/7.1.1/fileHashes/fileHashes.bin index 2fc4c7c..c748e6e 100644 Binary files a/Happy_Bird/.gradle/7.1.1/fileHashes/fileHashes.bin and b/Happy_Bird/.gradle/7.1.1/fileHashes/fileHashes.bin differ diff --git a/Happy_Bird/.gradle/7.1.1/fileHashes/fileHashes.lock b/Happy_Bird/.gradle/7.1.1/fileHashes/fileHashes.lock index 5a213ca..3a3e19d 100644 Binary files a/Happy_Bird/.gradle/7.1.1/fileHashes/fileHashes.lock and b/Happy_Bird/.gradle/7.1.1/fileHashes/fileHashes.lock differ diff --git a/Happy_Bird/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/Happy_Bird/.gradle/buildOutputCleanup/buildOutputCleanup.lock index a385feb..8ae83bf 100644 Binary files a/Happy_Bird/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/Happy_Bird/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/Happy_Bird/.gradle/buildOutputCleanup/outputFiles.bin b/Happy_Bird/.gradle/buildOutputCleanup/outputFiles.bin index ffa5aeb..a129715 100644 Binary files a/Happy_Bird/.gradle/buildOutputCleanup/outputFiles.bin and b/Happy_Bird/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/Happy_Bird/.gradle/checksums/checksums.lock b/Happy_Bird/.gradle/checksums/checksums.lock index ef1a6a7..3d09054 100644 Binary files a/Happy_Bird/.gradle/checksums/checksums.lock and b/Happy_Bird/.gradle/checksums/checksums.lock differ diff --git a/Happy_Bird/.gradle/checksums/md5-checksums.bin b/Happy_Bird/.gradle/checksums/md5-checksums.bin index ec5a015..9ab4f60 100644 Binary files a/Happy_Bird/.gradle/checksums/md5-checksums.bin and b/Happy_Bird/.gradle/checksums/md5-checksums.bin differ diff --git a/Happy_Bird/.gradle/checksums/sha1-checksums.bin b/Happy_Bird/.gradle/checksums/sha1-checksums.bin index aee32fa..6fd3626 100644 Binary files a/Happy_Bird/.gradle/checksums/sha1-checksums.bin and b/Happy_Bird/.gradle/checksums/sha1-checksums.bin differ diff --git a/Happy_Bird/.idea/Happy_Bird.iml b/Happy_Bird/.idea/Happy_Bird.iml new file mode 100644 index 0000000..78b2cc5 --- /dev/null +++ b/Happy_Bird/.idea/Happy_Bird.iml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Happy_Bird/.idea/misc.xml b/Happy_Bird/.idea/misc.xml index 1700c77..0144f1a 100644 --- a/Happy_Bird/.idea/misc.xml +++ b/Happy_Bird/.idea/misc.xml @@ -1,7 +1,7 @@ - + \ No newline at end of file diff --git a/Happy_Bird/build/classes/java/main/com/example/happy_bird/SpielObjekt.class b/Happy_Bird/build/classes/java/main/com/example/happy_bird/SpielObjekt.class new file mode 100644 index 0000000..a338e4e Binary files /dev/null and b/Happy_Bird/build/classes/java/main/com/example/happy_bird/SpielObjekt.class differ diff --git a/Happy_Bird/build/classes/java/main/module-info.class b/Happy_Bird/build/classes/java/main/module-info.class index a44e585..f727952 100644 Binary files a/Happy_Bird/build/classes/java/main/module-info.class and b/Happy_Bird/build/classes/java/main/module-info.class differ diff --git a/Happy_Bird/build/resources/main/com/example/happy_bird/pics/Background.png b/Happy_Bird/build/resources/main/com/example/happy_bird/pics/Background.png new file mode 100644 index 0000000..aaf4153 Binary files /dev/null and b/Happy_Bird/build/resources/main/com/example/happy_bird/pics/Background.png differ diff --git a/Happy_Bird/build/resources/main/com/example/happy_bird/pics/PipeOben.png b/Happy_Bird/build/resources/main/com/example/happy_bird/pics/PipeOben.png new file mode 100644 index 0000000..cdb545d Binary files /dev/null and b/Happy_Bird/build/resources/main/com/example/happy_bird/pics/PipeOben.png differ diff --git a/Happy_Bird/build/resources/main/com/example/happy_bird/pics/PipeUnten.png b/Happy_Bird/build/resources/main/com/example/happy_bird/pics/PipeUnten.png new file mode 100644 index 0000000..42bb71e Binary files /dev/null and b/Happy_Bird/build/resources/main/com/example/happy_bird/pics/PipeUnten.png differ diff --git a/Happy_Bird/build/resources/main/com/example/happy_bird/pics/Score.png b/Happy_Bird/build/resources/main/com/example/happy_bird/pics/Score.png new file mode 100644 index 0000000..3cef705 Binary files /dev/null and b/Happy_Bird/build/resources/main/com/example/happy_bird/pics/Score.png differ diff --git a/Happy_Bird/build/tmp/compileJava/previous-compilation-data.bin b/Happy_Bird/build/tmp/compileJava/previous-compilation-data.bin index ded3a3f..9360169 100644 Binary files a/Happy_Bird/build/tmp/compileJava/previous-compilation-data.bin and b/Happy_Bird/build/tmp/compileJava/previous-compilation-data.bin differ diff --git a/Happy_Bird/src/main/java/com/example/happy_bird/SpielObjekt.java b/Happy_Bird/src/main/java/com/example/happy_bird/SpielObjekt.java new file mode 100644 index 0000000..c0bdab5 --- /dev/null +++ b/Happy_Bird/src/main/java/com/example/happy_bird/SpielObjekt.java @@ -0,0 +1,80 @@ +package com.example.happy_bird; +import java.awt.Graphics2D; +import java.awt.Image; +import java.awt.image.ImageObserver; + +public abstract class SpielObjekt { + private int xWert; + private int yWert; + private int fxWert; + private int fyWert; + private int breite; + private int hoehe; + private Image bild; + + public SpielObjekt(int xWert, int yWert) { + this.xWert = xWert; + this.yWert = yWert; + } + + public int getyWert() { + return yWert; + } + + public void setyWert(int yWert) { + this.yWert = yWert; + } + + public int getxWert() { + return xWert; + } + + public void setxWert(int xWert) { + this.xWert = xWert; + } + + public int getFxWert() { + return fxWert; + } + + public void setFxWert(int fxWert) { + this.fxWert = fxWert; + } + + public int getFyWert() { + return fyWert; + } + + public void setFyWert(int fyWert) { + this.fyWert = fyWert; + } + + public int getBreite() { + return breite; + } + + public void setBreite(int breite) { + this.breite = breite; + } + + public int getHoehe() { + return hoehe; + } + + public void setHoehe(int hoehe) { + this.hoehe = hoehe; + } + + public Image getBild() { + return bild; + } + + public void setBild(Image bild) { + this.bild = bild; + } + + + public abstract void tick(); + + public abstract void render(Graphics2D g, ImageObserver obs); +} \ No newline at end of file diff --git a/Happy_Bird/src/main/java/module-info.java b/Happy_Bird/src/main/java/module-info.java index 86ac3f8..ca73f7f 100644 --- a/Happy_Bird/src/main/java/module-info.java +++ b/Happy_Bird/src/main/java/module-info.java @@ -1,6 +1,7 @@ module com.example.happy_bird { requires javafx.controls; requires javafx.fxml; + requires java.desktop; opens com.example.happy_bird to javafx.fxml;