package game;

import game.menu.Menu;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.image.Image;
import javafx.stage.Stage;

public class Main extends Application {

    private static final int width = 1240;  //800
    private static final int high = 826;    //width / 12 * 9;
    private static Menu menu;

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void init() throws Exception {
        super.init();
        //init res
    }

    @Override
    public void start(Stage primaryStage) throws Exception{
        primaryStage.setTitle("Game Nozdormu");

        Group root = new Group();
        Scene theScene = new Scene(root, width, high);
        Canvas canvas = new Canvas(width, high);
        GraphicsContext gc = canvas.getGraphicsContext2D();
        Image background = new Image("universe.jpg");
        Image map = new Image("map.png");

        gc.drawImage(background, 0, 0);
        gc.drawImage(map, 100, 100);

        root.getChildren().add(canvas);
        menu = new Menu(root);

        primaryStage.setScene(theScene);
        primaryStage.show();

        Thread gameLoop = new Thread(new Runnable() {
            @Override
            public void run() {

            }
        });

        gameLoop.start();
    }

    @Override
    public void stop() throws Exception {
        super.stop();
        //release res
    }
}

@@ -31,16 +31,45 @@
 u.Menu;%0A
+import game.menu.StatusMenu;%0A
 import j
@@ -99,16 +99,47 @@
 cation;%0A
+import javafx.geometry.Insets;%0A
 import j
@@ -287,19 +287,124 @@
 ene.
-image.Image
+control.Label;%0Aimport javafx.scene.image.Image;%0Aimport javafx.scene.layout.GridPane;%0Aimport javafx.scene.paint.Color
 ;%0Aim
@@ -499,21 +499,21 @@
 nal int 
-width
+WIDTH
  = 1240;
@@ -549,20 +549,20 @@
 nal int 
-high
+HIGH
  = 826; 
@@ -605,372 +605,547 @@
 tic 
-Menu menu;%0A%0A    public static void main(String%5B%5D args) %7B%0A        launch(args);%0A    %7D%0A%0A    @Override%0A    public void init() throws Exception %7B%0A        super.init();%0A        //init res%0A    %7D%0A%0A    @Override%0A    public void start(Stage primaryStage) throws Exception%7B%0A        primaryStage.setTitle(%22Game Nozdormu%22);%0A%0A        Group root = new Group();%0A        Scene the
+final String BACKGROUND = %22universe.jpg%22;%0A    private static final String MAP = %22map.png%22;%0A%0A    private static Menu menu;%0A    private StatusMenu status;%0A    private Group root;%0A    private Scene rootScene;%0A    private Canvas canvas;%0A    private GraphicsContext graphicsContext;%0A%0A    public static void main(String%5B%5D args) %7B%0A        launch(args);%0A    %7D%0A%0A    @Override%0A    public void init() throws Exception %7B%0A        super.init();%0A        this.root = new Group();                                        //create root node%0A        this.root
 Scen
@@ -1162,25 +1162,30 @@
 ene(
+this.
 root, 
-width, high
+WIDTH, HIGH
 );%0A 
@@ -1191,23 +1191,21 @@
         
-Canvas 
+this.
 canvas =
@@ -1220,19 +1220,19 @@
 vas(
-width, high
+WIDTH, HIGH
 );%0A 
@@ -1238,17 +1238,22 @@
         
-G
+this.g
 raphicsC
@@ -1263,13 +1263,15 @@
 ext 
-gc = 
+= this.
 canv
@@ -1309,137 +1309,453 @@
     
-Image background = new Image(%22universe.jpg%22
+this.graphicsContext.drawImage(new Image(BACKGROUND), 0, 0);    //draw background%0A        this.graphicsContext.drawImage(new Image(MAP), 100, 100
 );
-%0A
        
- Image map = new Image(%22map.png%22);%0A
+//draw map%0A        this.root.getChildren().add(canvas);%0A%0A        this.status = new StatusMenu();%0A        //init res
 %0A    
+%7D%0A%0A
     
-gc.drawImage(background, 0, 0
+@Override%0A    public void start(Stage primaryStage) throws Exception%7B%0A        primaryStage.setTitle(%22Game Nozdormu%22);%0A%0A%0A//        GridPane grid = new GridPane(
 );%0A
+//
     
@@ -1763,45 +1763,90 @@
    g
-c.drawImage(map, 100, 100);%0A%0A
+rid.setPadding(new Insets(5));%0A//        Label name = new Label(%22Ime%22);%0A//
         
 root
@@ -1845,40 +1845,85 @@
     
-root.getChildren().add(canvas);%0A
+name.setTextFill(Color.web(%22#FFFFFF%22));%0A//        grid.add(name, 0, 0);%0A//%0A//
     
@@ -1982,17 +1982,23 @@
 Scene(th
-e
+is.root
 Scene);%0A

update main - load res in init method