Skip to content

Commit 4b710f8

Browse files
committed
Added Plus (#6)
Signed-off-by: Harsh Kumar <harsh19043@iiitd.ac.in>
1 parent da931d1 commit 4b710f8

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

src/obstacles/plus.fxml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<?import java.lang.*?>
4+
<?import java.net.*?>
5+
<?import javafx.scene.layout.*?>
6+
<?import javafx.scene.shape.*?>
7+
8+
<Pane xmlns:fx="http://javafx.com/fxml/1" prefHeight="300.0" prefWidth="300.0" xmlns="http://javafx.com/javafx/11.0.1" fx:controller="obstacles.ObstaclesController">
9+
<Rectangle height="150.0" layoutX="135.0" width="30.0">
10+
<styleClass>
11+
<String fx:value="fill-blue" />
12+
<String fx:value="curve-rect-30" />
13+
</styleClass>
14+
</Rectangle>
15+
16+
<Rectangle rotate="90" height="150.0" layoutX="135.0" width="30.0">
17+
<styleClass>
18+
<String fx:value="fill-yellow" />
19+
<String fx:value="curve-rect-30" />
20+
</styleClass>
21+
</Rectangle>
22+
23+
<Rectangle height="150.0" layoutX="135.0" width="30.0">
24+
<styleClass>
25+
<String fx:value="fill-purple" />
26+
<String fx:value="curve-rect-30" />
27+
</styleClass>
28+
</Rectangle>
29+
30+
<Rectangle rotate="90" height="150.0" layoutX="135.0" width="30.0">
31+
<styleClass>
32+
<String fx:value="fill-pink" />
33+
<String fx:value="curve-rect-30" />
34+
</styleClass>
35+
</Rectangle>
36+
37+
<stylesheets>
38+
<URL value="@../style/style.css" />
39+
</stylesheets>
40+
</Pane>

src/style/style.css

+6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
-fx-scale-x: 1.1;
3838
-fx-scale-y: 1.1;
3939
}
40+
41+
.curve-rect-30 {
42+
-fx-arc-height: 30;
43+
-fx-arc-width: 30;
44+
}
45+
4046
/* End of General Styling */
4147

4248
/* Home Scene */

0 commit comments

Comments
 (0)