This commit is contained in:
@@ -1,28 +1,18 @@
|
||||
package gui;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Random;
|
||||
|
||||
import gui.ColorGenerator.Color;
|
||||
import gui.menu.MainMenu;
|
||||
import gui.menu.StateMachine;
|
||||
import imgui.ImGui;
|
||||
import imgui.ImVec2;
|
||||
import imgui.ImVec4;
|
||||
import imgui.app.Application;
|
||||
import imgui.app.Configuration;
|
||||
import imgui.flag.ImGuiCol;
|
||||
import sudoku.Block;
|
||||
import sudoku.Cell;
|
||||
import sudoku.MultiDoku;
|
||||
import sudoku.Sudoku;
|
||||
import sudoku.SudokuFactory;
|
||||
|
||||
public class Main extends Application {
|
||||
|
||||
// temp thing
|
||||
private static final int SUDOKU_SIZE = 4;
|
||||
private static final int SUDOKU_SIZE = 3;
|
||||
private final StateMachine stateMachine = new StateMachine();
|
||||
private SudokuRenderer renderer;
|
||||
|
||||
@Override
|
||||
@@ -36,11 +26,13 @@ public class Main extends Application {
|
||||
ImGui.getIO().getFonts().addFontFromFileTTF("comic.ttf", 50.0f);
|
||||
MultiDoku doku = SudokuFactory.createBasicEmptySquareSudoku(SUDOKU_SIZE);
|
||||
renderer = new SudokuRenderer(doku.getSubGrid(0));
|
||||
stateMachine.pushState(new MainMenu(stateMachine));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process() {
|
||||
renderer.render();
|
||||
stateMachine.render();
|
||||
ImGui.showDemoWindow();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user