Skip to content

Commit e5a58c2

Browse files
committed
first commit, title created and intro still on work
0 parents  commit e5a58c2

File tree

17 files changed

+410
-0
lines changed

17 files changed

+410
-0
lines changed

.gitignore

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Maven template
3+
target/
4+
pom.xml.tag
5+
pom.xml.releaseBackup
6+
pom.xml.versionsBackup
7+
pom.xml.next
8+
release.properties
9+
dependency-reduced-pom.xml
10+
buildNumber.properties
11+
.mvn/timing.properties
12+
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
13+
.mvn/wrapper/maven-wrapper.jar
14+
15+
### JetBrains template
16+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
17+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
18+
19+
# User-specific stuff
20+
.idea/**/workspace.xml
21+
.idea/**/tasks.xml
22+
.idea/**/usage.statistics.xml
23+
.idea/**/dictionaries
24+
.idea/**/shelf
25+
26+
# Generated files
27+
.idea/**/contentModel.xml
28+
29+
# Sensitive or high-churn files
30+
.idea/**/dataSources/
31+
.idea/**/dataSources.ids
32+
.idea/**/dataSources.local.xml
33+
.idea/**/sqlDataSources.xml
34+
.idea/**/dynamic.xml
35+
.idea/**/uiDesigner.xml
36+
.idea/**/dbnavigator.xml
37+
38+
# Gradle
39+
.idea/**/gradle.xml
40+
.idea/**/libraries
41+
42+
# Gradle and Maven with auto-import
43+
# When using Gradle or Maven with auto-import, you should exclude module files,
44+
# since they will be recreated, and may cause churn. Uncomment if using
45+
# auto-import.
46+
# .idea/artifacts
47+
# .idea/compiler.xml
48+
# .idea/jarRepositories.xml
49+
# .idea/modules.xml
50+
# .idea/*.iml
51+
# .idea/modules
52+
# *.iml
53+
# *.ipr
54+
55+
# CMake
56+
cmake-build-*/
57+
58+
# Mongo Explorer plugin
59+
.idea/**/mongoSettings.xml
60+
61+
# File-based project format
62+
*.iws
63+
64+
# IntelliJ
65+
out/
66+
67+
# mpeltonen/sbt-idea plugin
68+
.idea_modules/
69+
70+
# JIRA plugin
71+
atlassian-ide-plugin.xml
72+
73+
# Cursive Clojure plugin
74+
.idea/replstate.xml
75+
76+
# Crashlytics plugin (for Android Studio and IntelliJ)
77+
com_crashlytics_export_strings.xml
78+
crashlytics.properties
79+
crashlytics-build.properties
80+
fabric.properties
81+
82+
# Editor-based Rest Client
83+
.idea/httpRequests
84+
85+
# Android studio 3.1+ serialized cache file
86+
.idea/caches/build_file_checksums.ser
87+

.idea/compiler.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/cssdialects.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gameGUI.iml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4" />

pom.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.wesleycodingteam</groupId>
5+
<artifactId>gameGUI</artifactId>
6+
<version>1.0-SNAPSHOT</version>
7+
<properties>
8+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
9+
<maven.compiler.source>11</maven.compiler.source>
10+
<maven.compiler.target>11</maven.compiler.target>
11+
</properties>
12+
<dependencies>
13+
<dependency>
14+
<groupId>org.openjfx</groupId>
15+
<artifactId>javafx-controls</artifactId>
16+
<version>15.0.1</version>
17+
</dependency>
18+
<dependency>
19+
<groupId>org.openjfx</groupId>
20+
<artifactId>javafx-fxml</artifactId>
21+
<version>15.0.1</version>
22+
</dependency>
23+
</dependencies>
24+
<build>
25+
<plugins>
26+
<plugin>
27+
<groupId>org.apache.maven.plugins</groupId>
28+
<artifactId>maven-compiler-plugin</artifactId>
29+
<version>3.8.0</version>
30+
<configuration>
31+
<release>11</release>
32+
</configuration>
33+
</plugin>
34+
<plugin>
35+
<groupId>org.openjfx</groupId>
36+
<artifactId>javafx-maven-plugin</artifactId>
37+
<version>0.0.4</version>
38+
<configuration>
39+
<executable>C:/Program Files/Java/jdk-15.0.1/bin/java</executable>
40+
<stripDebug>true</stripDebug>
41+
<compress>2</compress>
42+
<noHeaderFiles>true</noHeaderFiles>
43+
<noManPages>true</noManPages>
44+
<launcher>game</launcher>
45+
<jlinkImageName>wesley</jlinkImageName>
46+
<jlinkZipName>wesley</jlinkZipName>
47+
<mainClass>com.wesleycodingteam.App</mainClass>
48+
</configuration>
49+
</plugin>
50+
</plugins>
51+
</build>
52+
</project>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package com.wesleycodingteam;
2+
3+
import javafx.application.Application;
4+
import javafx.fxml.FXMLLoader;
5+
import javafx.scene.Parent;
6+
import javafx.scene.Scene;
7+
import javafx.stage.Stage;
8+
9+
import java.io.IOException;
10+
11+
/**
12+
* JavaFX App
13+
*/
14+
public class App extends Application {
15+
16+
private static Scene scene;
17+
18+
@Override
19+
public void start(Stage stage) throws IOException {
20+
stage.setTitle("Text RPG");
21+
scene = new Scene(loadFXML("title"), 800, 600);
22+
stage.setScene(scene);
23+
stage.show();
24+
}
25+
26+
static void setRoot(String fxml) throws IOException {
27+
scene.setRoot(loadFXML(fxml));
28+
}
29+
30+
private static Parent loadFXML(String fxml) throws IOException {
31+
FXMLLoader fxmlLoader = new FXMLLoader(App.class.getResource(fxml + ".fxml"));
32+
return fxmlLoader.load();
33+
}
34+
35+
public static void main(String[] args) {
36+
launch();
37+
}
38+
39+
}

0 commit comments

Comments
 (0)