html
html
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
<?import javafx.scene.control.Button?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.shape.Circle?>
<?import javafx.scene.shape.Rectangle?>
<AnchorPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="Controllers.Bouncecontroller">
<children>
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="DODGERBLUE" height="408.0" layoutX="574.0" stroke="BLACK" strokeType="INSIDE" width="24.0" />
<Circle fx:id="ball" fill="DODGERBLUE" layoutX="84.0" layoutY="189.0" radius="17.0" stroke="BLACK" strokeType="INSIDE" />
<Button fx:id="start" layoutX="274.0" layoutY="147.0" mnemonicParsing="false" onMouseClicked="#startGame" text="Start" />
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="DODGERBLUE" height="410.0" stroke="BLACK" strokeType="INSIDE" width="24.0" />
<ImageView fx:id="spikeTop" fitHeight="50.0" fitWidth="550.0" layoutX="23.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@long%20spikes%20upside%20down.png" />
</image>
</ImageView>
<ImageView fx:id="spikeBottom" fitHeight="50.0" fitWidth="553.0" layoutX="23.0" layoutY="362.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@long%20spikes.png" />
</image>
</ImageView>
<Button fx:id="jumpButton" layoutX="507.0" layoutY="337.0" mnemonicParsing="false" onMousePressed="#jump" text="Jump" />
</children>
</AnchorPane>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run