-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathcarGame2.fxml
74 lines (72 loc) · 3.37 KB
/
carGame2.fxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.paint.Color?>
<?import javafx.scene.paint.LinearGradient?>
<?import javafx.scene.paint.Stop?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<AnchorPane fx:id="pane" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.javafxproject.CarGame.Controller2">
<children>
<Text fill="#2e05fb" fontSmoothingType="LCD" layoutX="33.0" layoutY="159.0" strokeType="OUTSIDE" strokeWidth="0.0" text="MAX SCORE:" wrappingWidth="261.47003173828125">
<font>
<Font size="34.0" />
</font>
</Text>
<Text fill="#2e05fb" fontSmoothingType="LCD" layoutX="33.0" layoutY="245.0" strokeType="OUTSIDE" strokeWidth="0.0" text="SCORE:" wrappingWidth="261.47003173828125">
<font>
<Font size="34.0" />
</font>
</Text>
<Button layoutX="49.0" layoutY="322.0" mnemonicParsing="false" onAction="#exit" prefHeight="63.0" prefWidth="134.0" text="Exit" textFill="#2b05f0">
<font>
<Font size="29.0" />
</font>
</Button>
<Button layoutX="251.0" layoutY="322.0" mnemonicParsing="false" onAction="#play" prefHeight="57.0" prefWidth="291.0" text="Continue">
<textFill>
<LinearGradient endX="1.0" endY="0.6561514203104687" proportional="false" startX="1.0" startY="1.0">
<stops>
<Stop>
<color>
<Color red="0.836162805557251" green="0.9399999976158142" blue="0.04699999839067459" />
</color>
</Stop>
<Stop offset="1.0">
<color>
<Color red="0.12776152789592743" green="0.02956465259194374" blue="0.6842105388641357" />
</color>
</Stop>
</stops>
</LinearGradient>
</textFill>
<font>
<Font size="29.0" />
</font>
</Button>
<Label fx:id="maxScore" layoutX="280.0" layoutY="126.0" prefHeight="42.0" prefWidth="305.0" text="Label" textFill="#0de68f">
<font>
<Font size="35.0" />
</font></Label>
<Label fx:id="score" layoutX="286.0" layoutY="205.0" prefHeight="50.0" prefWidth="314.0" text="Label" textFill="#08f46e">
<font>
<Font size="35.0" />
</font></Label>
<Text fill="#07e449" layoutX="7.0" layoutY="94.0" strokeLineJoin="BEVEL" strokeType="OUTSIDE" strokeWidth="0.0" text="------------------------Result-----------------------" wrappingWidth="614.0">
<font>
<Font size="28.0" />
</font>
</Text>
<Text fill="#ef0909" layoutX="190.0" layoutY="46.0" strokeType="OUTSIDE" strokeWidth="2.0" text="Game Over!" wrappingWidth="313.9999999999999">
<font>
<Font size="43.0" />
</font>
</Text>
<Text fx:id="text" fill="#d40404" layoutX="26.0" layoutY="286.0" strokeType="OUTSIDE" strokeWidth="0.0" text=" Click CONTINUE button to Continue" wrappingWidth="560.9999999999999">
<font>
<Font size="20.0" />
</font>
</Text>
</children>
</AnchorPane>