/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package net.kirauks.minigames.brickbreaker;

import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import net.kirauks.minigames.engine.GameApplication;

/**
 *
 * @author Karl
 */
public class Game extends GameApplication{

    @Override
    public String createStageTitle() {
        return "Casse Briques";
    }

    @Override
    public Scene createScene() {
        return new Scene(new StackPane());
    }

    @Override
    public void onCloseStage() {
        
    }

    @Override
    public void onPauseGame() {
        
    }

    @Override
    public void onResumeGame() {
        
    }

    @Override
    public void onActionKeyPressed() {
        
    }

    @Override
    public void onActionKeyReleased() {
        
    }

    @Override
    public void onUpKeyPressed() {
        
    }

    @Override
    public void onDownKeyPressed() {
        
    }

    @Override
    public void onLeftKeyPressed() {
        
    }

    @Override
    public void onRightKeyPressed() {
        
    }
    
}

@@ -224,16 +224,43 @@
 eaker;%0A%0A
+import javafx.scene.Group;%0A
 import j
@@ -305,25 +305,59 @@
 .layout.
-StackPane
+AnchorPane;%0Aimport javafx.scene.paint.Color
 ;%0Aimport
@@ -474,17 +474,118 @@
 cation%7B%0A
+    private static final Color COLOR_BACKGROUND = Color.BLACK;%0A    %0A    private Group root;%0A    %0A    
 %0A
-
     @Ove
@@ -727,41 +727,315 @@
     
-return new Scene(new StackPane())
+this.root = new Group();%0A        %0A        AnchorPane anchor = new AnchorPane();%0A        anchor.getChildren().add(this.root);%0A        anchor.setPrefHeight(600d);%0A        anchor.setPrefWidth(400d);%0A        %0A        Scene scene = new Scene(anchor);%0A        scene.setFill(COLOR_BACKGROUND);%0A        return scene
 ;%0A  

Set background bases