This commit is contained in:
@@ -5,15 +5,10 @@ import gui.menu.StateMachine;
|
||||
import imgui.ImGui;
|
||||
import imgui.app.Application;
|
||||
import imgui.app.Configuration;
|
||||
import sudoku.MultiDoku;
|
||||
import sudoku.SudokuFactory;
|
||||
|
||||
public class Main extends Application {
|
||||
|
||||
// temp thing
|
||||
private static final int SUDOKU_SIZE = 3;
|
||||
private final StateMachine stateMachine = new StateMachine();
|
||||
private SudokuRenderer renderer;
|
||||
|
||||
@Override
|
||||
protected void configure(Configuration config) {
|
||||
@@ -24,16 +19,13 @@ public class Main extends Application {
|
||||
protected void initImGui(Configuration config) {
|
||||
super.initImGui(config);
|
||||
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();
|
||||
// ImGui.showDemoWindow();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Reference in New Issue
Block a user