diff --git a/.gitignore b/.gitignore index a1c2a23..e88fff4 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,78 @@ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +.idea/artifacts +.idea/compiler.xml +.idea/jarRepositories.xml +.idea/modules.xml +.idea/*.iml +.idea/modules +*.iml +*.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..73f69e0 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..396a0ba --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +yes \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..e8d124d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,13 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..797acea --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,10 @@ + + + + + + \ 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/README.md b/README.md index fb68228..f162e26 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,22 @@ -# lolidkposding +# Fabrik spiel: -> Cool guy was here +> In diesem spiel geht es darum formen abzubauen +> und in andere formen nach bestimten kriterien +> zu verwandeln + +### Transportiere items von machine zu machine mithilfe von fließbändern + +## Main gameplay loop: + +Main hub (Alle n chuncks kleinere) +Geforderte formen zum hub bringen Freischalten von land und machinen Upgraden von machinen + +- Grid based +- Unlimtierte resourcen +- Base building +- verabeitungs +- logik + +## Preview + +![This is a figma, I don't think it will look like that](/yes.png) diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..c13f8bd --- /dev/null +++ b/pom.xml @@ -0,0 +1,70 @@ + + + 4.0.0 + + com.yes + yes + 1.0-SNAPSHOT + yes + + + UTF-8 + 5.7.1 + + + + + org.openjfx + javafx-controls + 17-ea+11 + + + org.openjfx + javafx-fxml + 17-ea+11 + + + + org.junit.jupiter + junit-jupiter-api + ${junit.version} + test + + + org.junit.jupiter + junit-jupiter-engine + ${junit.version} + test + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 17 + 17 + + + + org.openjfx + javafx-maven-plugin + 0.0.6 + + + + default-cli + + com.yes.yes/com.yes.yes.HelloApplication + + + + + + + \ No newline at end of file diff --git a/src/main/java/com/yes/yes/HelloApplication.java b/src/main/java/com/yes/yes/HelloApplication.java new file mode 100644 index 0000000..2b59c03 --- /dev/null +++ b/src/main/java/com/yes/yes/HelloApplication.java @@ -0,0 +1,23 @@ +package com.yes.yes; + +import javafx.application.Application; +import javafx.fxml.FXMLLoader; +import javafx.scene.Scene; +import javafx.stage.Stage; + +import java.io.IOException; + +public class HelloApplication extends Application { + @Override + public void start(Stage stage) throws IOException { + FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml")); + Scene scene = new Scene(fxmlLoader.load(), 320, 240); + stage.setTitle("Hello!"); + stage.setScene(scene); + stage.show(); + } + + public static void main(String[] args) { + launch(); + } +} \ No newline at end of file diff --git a/src/main/java/com/yes/yes/HelloController.java b/src/main/java/com/yes/yes/HelloController.java new file mode 100644 index 0000000..d08083d --- /dev/null +++ b/src/main/java/com/yes/yes/HelloController.java @@ -0,0 +1,14 @@ +package com.yes.yes; + +import javafx.fxml.FXML; +import javafx.scene.control.Label; + +public class HelloController { + @FXML + private Label welcomeText; + + @FXML + protected void onHelloButtonClick() { + welcomeText.setText("Welcome to JavaFX Application!"); + } +} \ No newline at end of file diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java new file mode 100644 index 0000000..c4aa20f --- /dev/null +++ b/src/main/java/module-info.java @@ -0,0 +1,8 @@ +module com.yes.yes { + requires javafx.controls; + requires javafx.fxml; + + + opens com.yes.yes to javafx.fxml; + exports com.yes.yes; +} \ No newline at end of file diff --git a/src/main/resources/com/yes/yes/hello-view.fxml b/src/main/resources/com/yes/yes/hello-view.fxml new file mode 100644 index 0000000..8f5b21e --- /dev/null +++ b/src/main/resources/com/yes/yes/hello-view.fxml @@ -0,0 +1,16 @@ + + + + + + + + + + + + +