commit 38091651abde03d8979153f1be20f7ffedf12518
Author: Sid <93219711+SindreKjelsrud@users.noreply.github.com>
Date: Thu Oct 27 22:52:03 2022 +0200
first commit, frontend ish done
diff --git a/.classpath b/.classpath
new file mode 100644
index 0000000..7c5ae86
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.project b/.project
new file mode 100644
index 0000000..276bbbc
--- /dev/null
+++ b/.project
@@ -0,0 +1,23 @@
+
+
+ Wordle
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.xtext.ui.shared.xtextBuilder
+
+
+
+
+
+ org.eclipse.xtext.ui.shared.xtextNature
+ org.eclipse.jdt.core.javanature
+
+
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..99f26c0
--- /dev/null
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding/=UTF-8
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..8c9943d
--- /dev/null
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,14 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/bin/Controllers/CreditsSceneController.class b/bin/Controllers/CreditsSceneController.class
new file mode 100644
index 0000000..38e9b3a
Binary files /dev/null and b/bin/Controllers/CreditsSceneController.class differ
diff --git a/bin/Controllers/GameSceneController.class b/bin/Controllers/GameSceneController.class
new file mode 100644
index 0000000..08a909d
Binary files /dev/null and b/bin/Controllers/GameSceneController.class differ
diff --git a/bin/Controllers/MainSceneController.class b/bin/Controllers/MainSceneController.class
new file mode 100644
index 0000000..1657166
Binary files /dev/null and b/bin/Controllers/MainSceneController.class differ
diff --git a/bin/Controllers/RulesSceneController.class b/bin/Controllers/RulesSceneController.class
new file mode 100644
index 0000000..5e3c163
Binary files /dev/null and b/bin/Controllers/RulesSceneController.class differ
diff --git a/bin/FXML/CreditsScene.fxml b/bin/FXML/CreditsScene.fxml
new file mode 100644
index 0000000..680e1c0
--- /dev/null
+++ b/bin/FXML/CreditsScene.fxml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/bin/FXML/GameScene.fxml b/bin/FXML/GameScene.fxml
new file mode 100644
index 0000000..547ac02
--- /dev/null
+++ b/bin/FXML/GameScene.fxml
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/bin/FXML/MainScene.fxml b/bin/FXML/MainScene.fxml
new file mode 100644
index 0000000..c70d87b
--- /dev/null
+++ b/bin/FXML/MainScene.fxml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/bin/FXML/RulesScene.fxml b/bin/FXML/RulesScene.fxml
new file mode 100644
index 0000000..b0bcbf8
--- /dev/null
+++ b/bin/FXML/RulesScene.fxml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/bin/application.css b/bin/application.css
new file mode 100644
index 0000000..d085090
--- /dev/null
+++ b/bin/application.css
@@ -0,0 +1 @@
+/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */
diff --git a/bin/application/Main.class b/bin/application/Main.class
new file mode 100644
index 0000000..6491ac4
Binary files /dev/null and b/bin/application/Main.class differ
diff --git a/bin/logo.jpg b/bin/logo.jpg
new file mode 100644
index 0000000..dc576c8
Binary files /dev/null and b/bin/logo.jpg differ
diff --git a/bin/logo.png b/bin/logo.png
new file mode 100644
index 0000000..0c2b7d8
Binary files /dev/null and b/bin/logo.png differ
diff --git a/bin/logo2.jpg b/bin/logo2.jpg
new file mode 100644
index 0000000..c239718
Binary files /dev/null and b/bin/logo2.jpg differ
diff --git a/bin/logo3.jpg b/bin/logo3.jpg
new file mode 100644
index 0000000..f98f59b
Binary files /dev/null and b/bin/logo3.jpg differ
diff --git a/bin/logo4.jpg b/bin/logo4.jpg
new file mode 100644
index 0000000..42d5374
Binary files /dev/null and b/bin/logo4.jpg differ
diff --git a/build.fxbuild b/build.fxbuild
new file mode 100644
index 0000000..c454826
--- /dev/null
+++ b/build.fxbuild
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
diff --git a/src/Controllers/CreditsSceneController.java b/src/Controllers/CreditsSceneController.java
new file mode 100644
index 0000000..84ea363
--- /dev/null
+++ b/src/Controllers/CreditsSceneController.java
@@ -0,0 +1,26 @@
+package Controllers;
+
+import java.io.IOException;
+
+import javafx.event.ActionEvent;
+import javafx.fxml.FXML;
+import javafx.fxml.FXMLLoader;
+import javafx.scene.Node;
+import javafx.scene.Parent;
+import javafx.scene.Scene;
+import javafx.stage.Stage;
+
+public class CreditsSceneController {
+
+ // Event Listener on Button.onAction
+ @FXML
+ public void btnMenuClicked(ActionEvent event) throws IOException {
+ Parent creditsSceneParent = FXMLLoader.load(getClass().getResource("/FXML/MainScene.fxml"));
+ Scene creditsScene = new Scene(creditsSceneParent);
+
+ Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();
+ window.setTitle("Sids Wordle");
+ window.setScene(creditsScene);
+ window.show();
+ }
+}
diff --git a/src/Controllers/GameSceneController.java b/src/Controllers/GameSceneController.java
new file mode 100644
index 0000000..01ca750
--- /dev/null
+++ b/src/Controllers/GameSceneController.java
@@ -0,0 +1,36 @@
+package Controllers;
+
+import java.io.IOException;
+
+import javafx.event.ActionEvent;
+import javafx.fxml.FXML;
+import javafx.fxml.FXMLLoader;
+import javafx.scene.Node;
+import javafx.scene.Parent;
+import javafx.scene.Scene;
+import javafx.stage.Stage;
+
+public class GameSceneController {
+
+ // Event Listener on Button.onAction
+ @FXML
+ public void btnResetClicked(ActionEvent event) {
+ // TODO Autogenerated
+ }
+ // Event Listener on Button.onAction
+ @FXML
+ public void btnGoClicked(ActionEvent event) {
+ // TODO Autogenerated
+ }
+ // Event Listener on Button.onAction
+ @FXML
+ public void btnMenuClicked(ActionEvent event) throws IOException {
+ Parent gameSceneParent = FXMLLoader.load(getClass().getResource("/FXML/MainScene.fxml"));
+ Scene gameScene = new Scene(gameSceneParent);
+
+ Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();
+ window.setTitle("Sids Wordle");
+ window.setScene(gameScene);
+ window.show();
+ }
+}
diff --git a/src/Controllers/MainSceneController.java b/src/Controllers/MainSceneController.java
new file mode 100644
index 0000000..5d19046
--- /dev/null
+++ b/src/Controllers/MainSceneController.java
@@ -0,0 +1,49 @@
+package Controllers;
+
+import java.io.IOException;
+
+import javafx.event.ActionEvent;
+import javafx.fxml.FXML;
+import javafx.fxml.FXMLLoader;
+import javafx.scene.Node;
+import javafx.scene.Parent;
+import javafx.scene.Scene;
+import javafx.stage.Stage;
+
+public class MainSceneController {
+
+ // Event Listener on Button.onAction
+ @FXML
+ public void btnPlayClicked(ActionEvent event) throws IOException {
+ Parent rulesSceneParent = FXMLLoader.load(getClass().getResource("/FXML/GameScene.fxml"));
+ Scene rulesScene = new Scene(rulesSceneParent);
+
+ Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();
+ window.setTitle("Sids Wordle");
+ window.setScene(rulesScene);
+ window.show();
+ }
+ // Event Listener on Button.onAction
+ @FXML
+ public void btnRulesClicked(ActionEvent event) throws IOException {
+ Parent rulesSceneParent = FXMLLoader.load(getClass().getResource("/FXML/RulesScene.fxml"));
+ Scene rulesScene = new Scene(rulesSceneParent);
+
+ Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();
+ window.setTitle("How to Play");
+ window.setScene(rulesScene);
+ window.show();
+ }
+
+ // Event Listener on Button.onAction
+ @FXML
+ public void btnCreditsClicked(ActionEvent event) throws IOException {
+ Parent rulesSceneParent = FXMLLoader.load(getClass().getResource("/FXML/CreditsScene.fxml"));
+ Scene rulesScene = new Scene(rulesSceneParent);
+
+ Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();
+ window.setTitle("Credits");
+ window.setScene(rulesScene);
+ window.show();
+ }
+}
diff --git a/src/Controllers/RulesSceneController.java b/src/Controllers/RulesSceneController.java
new file mode 100644
index 0000000..f81e884
--- /dev/null
+++ b/src/Controllers/RulesSceneController.java
@@ -0,0 +1,26 @@
+package Controllers;
+
+import java.io.IOException;
+
+import javafx.event.ActionEvent;
+import javafx.fxml.FXML;
+import javafx.fxml.FXMLLoader;
+import javafx.scene.Node;
+import javafx.scene.Parent;
+import javafx.scene.Scene;
+import javafx.stage.Stage;
+
+public class RulesSceneController {
+
+ // Event Listener on Button.onAction
+ @FXML
+ public void btnMenuClicked(ActionEvent event) throws IOException {
+ Parent rulesSceneParent = FXMLLoader.load(getClass().getResource("/FXML/MainScene.fxml"));
+ Scene rulesScene = new Scene(rulesSceneParent);
+
+ Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();
+ window.setTitle("Sids Wordle");
+ window.setScene(rulesScene);
+ window.show();
+ }
+}
diff --git a/src/FXML/CreditsScene.fxml b/src/FXML/CreditsScene.fxml
new file mode 100644
index 0000000..680e1c0
--- /dev/null
+++ b/src/FXML/CreditsScene.fxml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/FXML/GameScene.fxml b/src/FXML/GameScene.fxml
new file mode 100644
index 0000000..547ac02
--- /dev/null
+++ b/src/FXML/GameScene.fxml
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/FXML/MainScene.fxml b/src/FXML/MainScene.fxml
new file mode 100644
index 0000000..c70d87b
--- /dev/null
+++ b/src/FXML/MainScene.fxml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/FXML/RulesScene.fxml b/src/FXML/RulesScene.fxml
new file mode 100644
index 0000000..b0bcbf8
--- /dev/null
+++ b/src/FXML/RulesScene.fxml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/application.css b/src/application.css
new file mode 100644
index 0000000..d085090
--- /dev/null
+++ b/src/application.css
@@ -0,0 +1 @@
+/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */
diff --git a/src/application/Main.java b/src/application/Main.java
new file mode 100644
index 0000000..423f1fb
--- /dev/null
+++ b/src/application/Main.java
@@ -0,0 +1,28 @@
+package application;
+
+import javafx.application.Application;
+import javafx.fxml.FXMLLoader;
+import javafx.scene.Parent;
+import javafx.scene.Scene;
+import javafx.stage.Stage;
+
+
+public class Main extends Application {
+ @Override
+ public void start(Stage primaryStage) {
+ try {
+ Parent root = FXMLLoader.load(getClass().getResource("/FXML/MainScene.fxml"));
+ Scene scene = new Scene(root);
+
+ primaryStage.setTitle("Sids Wordle!");
+ primaryStage.setScene(scene);
+ primaryStage.show();
+ } catch(Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ public static void main(String[] args) {
+ launch(args);
+ }
+}
diff --git a/src/logo.jpg b/src/logo.jpg
new file mode 100644
index 0000000..dc576c8
Binary files /dev/null and b/src/logo.jpg differ
diff --git a/src/logo.png b/src/logo.png
new file mode 100644
index 0000000..0c2b7d8
Binary files /dev/null and b/src/logo.png differ
diff --git a/src/logo2.jpg b/src/logo2.jpg
new file mode 100644
index 0000000..c239718
Binary files /dev/null and b/src/logo2.jpg differ
diff --git a/src/logo3.jpg b/src/logo3.jpg
new file mode 100644
index 0000000..f98f59b
Binary files /dev/null and b/src/logo3.jpg differ
diff --git a/src/logo4.jpg b/src/logo4.jpg
new file mode 100644
index 0000000..42d5374
Binary files /dev/null and b/src/logo4.jpg differ