Commit17-11
This commit is contained in:
parent
2ee1913d11
commit
8a0f115c71
3
.idea/.gitignore
generated
vendored
Normal file
3
.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
9
.idea/HappyBird.iml
generated
Normal file
9
.idea/HappyBird.iml
generated
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
4
.idea/misc.xml
generated
Normal file
4
.idea/misc.xml
generated
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="15" project-jdk-type="JavaSDK" />
|
||||||
|
</project>
|
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/HappyBird.iml" filepath="$PROJECT_DIR$/.idea/HappyBird.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
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.
2
Happy_Bird/.idea/Happy_Bird.iml
generated
Normal file
2
Happy_Bird/.idea/Happy_Bird.iml
generated
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4" />
|
2
Happy_Bird/.idea/misc.xml
generated
2
Happy_Bird/.idea/misc.xml
generated
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_15" default="true" project-jdk-name="15" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_14" default="false" project-jdk-name="15" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 114 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 96 KiB |
Binary file not shown.
@ -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);
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
module com.example.happy_bird {
|
module com.example.happy_bird {
|
||||||
requires javafx.controls;
|
requires javafx.controls;
|
||||||
requires javafx.fxml;
|
requires javafx.fxml;
|
||||||
|
requires java.desktop;
|
||||||
|
|
||||||
|
|
||||||
opens com.example.happy_bird to javafx.fxml;
|
opens com.example.happy_bird to javafx.fxml;
|
||||||
|
Loading…
Reference in New Issue
Block a user