From 32bc1b99866518bda03409dd8c81a2756656f44f Mon Sep 17 00:00:00 2001 From: Squibid Date: Mon, 3 Jun 2024 20:33:38 -0400 Subject: update game engine and example game --- src/main/java/los/numeros/ExampleGame/Main.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/java/los/numeros/ExampleGame/Main.java (limited to 'src/main/java/los/numeros/ExampleGame/Main.java') diff --git a/src/main/java/los/numeros/ExampleGame/Main.java b/src/main/java/los/numeros/ExampleGame/Main.java new file mode 100644 index 0000000..eb515c6 --- /dev/null +++ b/src/main/java/los/numeros/ExampleGame/Main.java @@ -0,0 +1,20 @@ +package los.numeros.ExampleGame; + +import java.util.function.BooleanSupplier; + +import los.numeros.ExampleGame.modules.*; +import los.numeros.GameEngine.Engine; +import los.numeros.GameEngine.Module; + +public class Main implements Engine { + BooleanSupplier running = () -> true; + Module modules[]; + + public Main() { + /* put the modules in an array */ + modules[modules.length] = new ExampleModule(); + + /* start the game */ + Engine.StartEngine(running, modules); + } +} -- cgit v1.2.1