-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.java
81 lines (61 loc) · 1.44 KB
/
Main.java
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
75
76
77
78
79
80
81
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.*;
import javafx.scene.layout.*;
import javafx.scene.canvas.*;
import javafx.scene.control.*;
import javafx.scene.paint.*;
import javafx.geometry.Insets;
import javafx.scene.text.TextAlignment;
import javafx.scene.shape.*;
import javafx.scene.input.KeyEvent;
import javafx.event.*;
public class Main extends Application
{
//public static int mod = 0;
public void start(Stage stage)
{
//
//
stage.setScene(new MainScene());
//stage.show();
//stage.close();
//MenuPrincipal menuPrincipal = new MenuPrincipal();
/*
VBox vBox = new VBox();
Scene root = new Scene(vBox);
stage.setScene(root);
stage.sizeToScene();
stage.initModality(Modality.APPLICATION_MODAL);
stage.showAndWait();
*/
/*
Game game = new Game(28f, 40, 15f, false);
Scene scene = new Scene(game);
scene.setOnKeyPressed(
new EventHandler<KeyEvent>()
{
public void handle(KeyEvent e)
{
String code = e.getCode().toString();
game.addInput(code);
}
});
scene.setOnKeyReleased(
new EventHandler<KeyEvent>()
{
public void handle(KeyEvent e)
{
String code = e.getCode().toString();
game.removeInput(code);
}
});
stage.setScene(scene);
stage.show();
*/
}
public static void main(String[] args)
{
launch(args);
}
}