Compare commits
52 Commits
Author | SHA1 | Date |
---|---|---|
![]() |
c9538368b8 | 3 years ago |
![]() |
16d48ef1a0 | 3 years ago |
![]() |
673a5643b3 | 3 years ago |
![]() |
b3d7dc86b0 | 3 years ago |
![]() |
6fed878446 | 3 years ago |
![]() |
55f5876b27 | 3 years ago |
![]() |
e90d1e3cdf | 3 years ago |
![]() |
ed3f109114 | 3 years ago |
![]() |
62ed9b5ba4 | 3 years ago |
![]() |
486dcbda81 | 3 years ago |
![]() |
2db560ed83 | 3 years ago |
![]() |
e9d8bb53c0 | 3 years ago |
![]() |
0ade4680d3 | 3 years ago |
![]() |
061d73a8a9 | 3 years ago |
![]() |
e06e64c60c | 3 years ago |
![]() |
4e1797e679 | 3 years ago |
![]() |
e114a7aa93 | 3 years ago |
![]() |
e2a78a84e7 | 3 years ago |
![]() |
50f209ef03 | 3 years ago |
![]() |
9f4f07dbd0 | 3 years ago |
![]() |
cc8aea9e94 | 3 years ago |
![]() |
9d373a69e5 | 3 years ago |
![]() |
4092e13049 | 3 years ago |
![]() |
f27e5b6be7 | 3 years ago |
![]() |
fe0ee636c0 | 3 years ago |
![]() |
24b465ef91 | 3 years ago |
![]() |
56934d234c | 3 years ago |
![]() |
deee3a6997 | 3 years ago |
![]() |
07b672cf5a | 3 years ago |
![]() |
911793b2fc | 3 years ago |
![]() |
9aabe3a3a3 | 3 years ago |
![]() |
f35e318bb1 | 3 years ago |
![]() |
20e1796d08 | 3 years ago |
![]() |
eb560344ee | 3 years ago |
![]() |
3a9a240e7d | 3 years ago |
![]() |
791c63993f | 3 years ago |
![]() |
1e90037d1f | 3 years ago |
![]() |
059e519da9 | 3 years ago |
![]() |
133a0a8307 | 3 years ago |
![]() |
9522d9edf8 | 3 years ago |
![]() |
ae409399cf | 3 years ago |
![]() |
22ae223909 | 3 years ago |
![]() |
2ce1866e36 | 3 years ago |
![]() |
09be04868e | 3 years ago |
![]() |
f8a86c508d | 3 years ago |
![]() |
2d8056197f | 3 years ago |
![]() |
5a7cdfd3da | 3 years ago |
![]() |
c57ee6190d | 3 years ago |
![]() |
19cfdc3c7f | 3 years ago |
![]() |
7366c07362 | 3 years ago |
![]() |
32f56ed404 | 3 years ago |
![]() |
f995e34e89 | 3 years ago |
@ -1,2 +1,38 @@
|
||||
# projetJavaFX
|
||||
/
|
||||
<h1 align="center">Welcome to 2D Dice Game 👋</h1>
|
||||
<p>
|
||||
<img alt="Version" src="https://img.shields.io/badge/version-1.0-blue.svg?cacheSeconds=2592000" />
|
||||
<img src="https://img.shields.io/badge/Java-11-blue.svg" alt="."/>
|
||||
<img src="https://img.shields.io/badge/JavaFX-11-yellow.svg" alt="."/>
|
||||
<a href="https://github.com/ZartaX0O3/discord-bde-v4#readme" target="_blank">
|
||||
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
|
||||
</a>
|
||||
|
||||
</p>
|
||||
|
||||
> This is a 2D Game in Java & JavaFX
|
||||
|
||||
### 🏠 [Homepage](https://github.com/ZartaX0O3/discord-bde-v4)
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Java 11 & JavaFX 11
|
||||
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
java --module-path ""C:/Program Files/Java/javafx-sdk-11/lib" " --add-modules javafx.fxml,javafx.controls,javafx.media -jar out/artifacts/2DGameJavaFX_jar/2DGameJavaFX.jar
|
||||
```
|
||||
|
||||
|
||||
## Author
|
||||
|
||||
👤 **ZartaX0O3**
|
||||
|
||||
* Github: [@Arthur_VD](https://gitlab.iut-clermont.uca.fr/arvandamme)
|
||||
* Github: [@Julien_T](https://gitlab.iut-clermont.uca.fr/jutheme)
|
||||
|
||||
## Show your support
|
||||
|
||||
Give a ⭐️ if this project helped you!
|
||||
|
||||
|
@ -1,8 +0,0 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import com.jfoenix.controls.JFXButton?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.SplitPane?>
|
||||
<?import javafx.scene.effect.Shadow?>
|
||||
<?import javafx.scene.image.Image?>
|
||||
<?import javafx.scene.image.ImageView?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.shape.Line?>
|
||||
<?import javafx.scene.shape.Rectangle?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<?import javafx.scene.control.Button?>
|
||||
<AnchorPane fx:id="levelRoot" id="1" fx:controller="controller.GamePlayController" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="1300.0" prefWidth="900.0" xmlns="http://javafx.com/javafx/11" xmlns:fx="http://javafx.com/fxml/1" >
|
||||
<children>
|
||||
<AnchorPane minHeight="400.0" minWidth="400.0" prefHeight="608.0" prefWidth="348.0" layoutX="960.0">
|
||||
<children>
|
||||
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#323436" height="900.0" layoutY="0.0" stroke="BLACK" strokeType="INSIDE" width="340" />
|
||||
<ImageView fitHeight="128.0" fitWidth="93.0" layoutX="50.0" layoutY="33.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@../image/personnage/Perso1.2.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
<Label layoutX="144.0" layoutY="59.0" prefHeight="41.0" prefWidth="124.0" text="Pseudonyme" textFill="WHITE">
|
||||
<font>
|
||||
<Font name="Segoe UI Black" size="16.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Rectangle arcHeight="5.0" arcWidth="5.0" height="331.0" layoutX="50.0" layoutY="166.0" opacity="0.3" stroke="BLACK" strokeDashOffset="10.0" strokeLineCap="ROUND" strokeLineJoin="ROUND" strokeMiterLimit="100.0" strokeType="INSIDE" strokeWidth="5.0" width="201.0" />
|
||||
<Line endX="100.0" layoutX="139.0" layoutY="222.0" startX="-77.0" stroke="#f2f0f0" />
|
||||
<Label alignment="CENTER" layoutX="88.0" layoutY="173.0" prefHeight="41.0" prefWidth="124.0" text="Action" textFill="WHITE">
|
||||
<font>
|
||||
<Font name="Segoe UI" size="16.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<JFXButton fx:id="buttonDe" onAction="#lancerDe" layoutX="95.0" layoutY="530.0" prefHeight="30.0" prefWidth="119.0" ripplerFill="#e1e1e1" style="-fx-background-color: #EB9C0A;" text="Lancer le dé" textAlignment="CENTER" textFill="WHITE">
|
||||
<font>
|
||||
<Font name="Segoe UI" size="15.0" />
|
||||
</font>
|
||||
<effect>
|
||||
<Shadow />
|
||||
</effect>
|
||||
</JFXButton>
|
||||
<ImageView fx:id="de" fitWidth="75" fitHeight="75" layoutX="100" layoutY="580.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@../image/dé/icon.png"/>
|
||||
</image>
|
||||
</ImageView>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
</children>
|
||||
</AnchorPane>
|
After Width: | Height: | Size: 314 B |
After Width: | Height: | Size: 437 B |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 561 B |
After Width: | Height: | Size: 677 B |
After Width: | Height: | Size: 592 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 978 B After Width: | Height: | Size: 978 B |
Before Width: | Height: | Size: 970 B After Width: | Height: | Size: 970 B |
Before Width: | Height: | Size: 970 B After Width: | Height: | Size: 970 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1012 B After Width: | Height: | Size: 1012 B |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: launcher.Main
|
||||
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.image.Image?>
|
||||
<?import javafx.scene.image.ImageView?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
|
||||
<AnchorPane fx:id="levelRoot" fx:controller="controller.GamePlayController" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="900.0" xmlns="http://javafx.com/javafx/11" xmlns:fx="http://javafx.com/fxml/1" >
|
||||
<ImageView fx:id="persoImageView" fitHeight="32.0" fitWidth="32.0" layoutX="132.0" layoutY="74.0"
|
||||
pickOnBounds="true"
|
||||
preserveRatio="true">
|
||||
<Image url="@../image/personnage/Perso1.png"/>
|
||||
</ImageView>
|
||||
</AnchorPane>
|
@ -1,47 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import com.jfoenix.controls.JFXButton?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.SplitPane?>
|
||||
<?import javafx.scene.effect.Shadow?>
|
||||
<?import javafx.scene.image.Image?>
|
||||
<?import javafx.scene.image.ImageView?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.shape.Line?>
|
||||
<?import javafx.scene.shape.Rectangle?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<AnchorPane fx:id="FirstAnchor" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="900.0" xmlns="http://javafx.com/javafx/11" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controller.GamePlayController">
|
||||
<children>
|
||||
<AnchorPane minHeight="300.0" minWidth="300.0" prefHeight="608.0" prefWidth="348.0" layoutX="600.0">
|
||||
<children>
|
||||
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#323436" height="608.0" layoutY="0.0" stroke="BLACK" strokeType="INSIDE" width="312.0" />
|
||||
<ImageView fitHeight="128.0" fitWidth="93.0" layoutX="29.0" layoutY="33.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@../image/personnage/Perso1.2.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
<Label layoutX="144.0" layoutY="59.0" prefHeight="41.0" prefWidth="124.0" text="Pseudonyme" textFill="WHITE">
|
||||
<font>
|
||||
<Font name="Segoe UI Black" size="16.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Rectangle arcHeight="5.0" arcWidth="5.0" height="331.0" layoutX="50.0" layoutY="166.0" opacity="0.3" stroke="BLACK" strokeDashOffset="10.0" strokeLineCap="ROUND" strokeLineJoin="ROUND" strokeMiterLimit="100.0" strokeType="INSIDE" strokeWidth="5.0" width="201.0" />
|
||||
<Line endX="100.0" layoutX="139.0" layoutY="222.0" startX="-77.0" stroke="#f2f0f0" />
|
||||
<Label alignment="CENTER" layoutX="88.0" layoutY="173.0" prefHeight="41.0" prefWidth="124.0" text="Action" textFill="WHITE">
|
||||
<font>
|
||||
<Font name="Segoe UI" size="16.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<JFXButton layoutX="95.0" layoutY="530.0" prefHeight="30.0" prefWidth="119.0" ripplerFill="#e1e1e1" style="-fx-background-color: #EB9C0A;" text="Lancer le dé" textAlignment="CENTER" textFill="WHITE">
|
||||
<font>
|
||||
<Font name="Segoe UI" size="15.0" />
|
||||
</font>
|
||||
<effect>
|
||||
<Shadow />
|
||||
</effect>
|
||||
</JFXButton>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
</children>
|
||||
</AnchorPane>
|
@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.image.Image?>
|
||||
<?import javafx.scene.image.ImageView?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.shape.Rectangle?>
|
||||
|
||||
|
||||
<?import com.jfoenix.controls.JFXButton?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
<?import javafx.scene.effect.Shadow?>
|
||||
<?import javafx.scene.shape.Line?>
|
||||
<?import javafx.scene.text.Text?>
|
||||
<AnchorPane fx:id="levelRoot" id="1" fx:controller="controller.GamePlayController" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="900.0" prefWidth="1300.0" xmlns="http://javafx.com/javafx/11" xmlns:fx="http://javafx.com/fxml/1">
|
||||
<children>
|
||||
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#393e43" height="900.0" layoutX="960.0" stroke="BLACK" strokeType="INSIDE" width="340.0" />
|
||||
<ImageView fx:id="playerImagePerso" fitHeight="123.0" fitWidth="110.0" layoutX="1075.0" layoutY="76.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="/image/personnage/Perso1.2.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#090a0a" height="373.0" layoutX="1014.0" layoutY="238.0" opacity="0.48" stroke="BLACK" strokeType="INSIDE" width="232.0" />
|
||||
<ImageView fx:id="de" fitHeight="76.0" fitWidth="150.0" layoutX="1092.0" layoutY="648.0" pickOnBounds="true" preserveRatio="true">
|
||||
<image>
|
||||
<Image url="@../image/dé/icon.png" />
|
||||
</image>
|
||||
</ImageView>
|
||||
<Line endX="100.0" layoutX="1130.0" layoutY="289.0" startX="-100.0" stroke="WHITE" />
|
||||
<Line endX="100.0" layoutX="1130.0" layoutY="600.0" startX="-100.0" stroke="WHITE" />
|
||||
<Text fill="WHITE" layoutX="1102.0" layoutY="270.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Action" textAlignment="CENTER" wrappingWidth="55.4375">
|
||||
<font>
|
||||
<Font name="Segoe UI" size="16.0" />
|
||||
</font>
|
||||
</Text>
|
||||
<JFXButton layoutX="1071.0" layoutY="752.0" onAction="#lancerDe" prefHeight="30.0" prefWidth="119.0" ripplerFill="#e1e1e1" style="-fx-background-color: #EB9C0A;" text="Lancer le dé" textAlignment="CENTER" textFill="WHITE">
|
||||
<font>
|
||||
<Font name="Segoe UI" size="15.0" />
|
||||
</font>
|
||||
<effect>
|
||||
<Shadow />
|
||||
</effect>
|
||||
</JFXButton>
|
||||
</children>
|
||||
</AnchorPane>
|
After Width: | Height: | Size: 895 B |
After Width: | Height: | Size: 863 B |
After Width: | Height: | Size: 871 B |
After Width: | Height: | Size: 870 B |
After Width: | Height: | Size: 909 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 917 B |
After Width: | Height: | Size: 909 B |
After Width: | Height: | Size: 907 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 903 B |
After Width: | Height: | Size: 818 B |
After Width: | Height: | Size: 972 B |
After Width: | Height: | Size: 972 B |
After Width: | Height: | Size: 965 B |
After Width: | Height: | Size: 826 B |
After Width: | Height: | Size: 824 B |
After Width: | Height: | Size: 860 B |
After Width: | Height: | Size: 865 B |
After Width: | Height: | Size: 861 B |
After Width: | Height: | Size: 861 B |
After Width: | Height: | Size: 866 B |
After Width: | Height: | Size: 861 B |
After Width: | Height: | Size: 836 B |
After Width: | Height: | Size: 852 B |
After Width: | Height: | Size: 864 B |
After Width: | Height: | Size: 867 B |
After Width: | Height: | Size: 847 B |
After Width: | Height: | Size: 853 B |
After Width: | Height: | Size: 873 B |
After Width: | Height: | Size: 858 B |
After Width: | Height: | Size: 887 B |
After Width: | Height: | Size: 885 B |
After Width: | Height: | Size: 861 B |
After Width: | Height: | Size: 890 B |
After Width: | Height: | Size: 138 B |
After Width: | Height: | Size: 314 B |
After Width: | Height: | Size: 437 B |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 561 B |
After Width: | Height: | Size: 677 B |