aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/los/numeros/ExampleGame/Main.java
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2024-06-03 20:33:38 -0400
committerSquibid <me@zacharyscheiman.com>2024-06-03 20:33:38 -0400
commit32bc1b99866518bda03409dd8c81a2756656f44f (patch)
tree06e47fd489bec72bf53450eeaa8540d016b245d2 /src/main/java/los/numeros/ExampleGame/Main.java
parent6aff7f52908188f42310b8574ef87ef9a720daf2 (diff)
downloadlnm-32bc1b99866518bda03409dd8c81a2756656f44f.tar.gz
lnm-32bc1b99866518bda03409dd8c81a2756656f44f.tar.bz2
lnm-32bc1b99866518bda03409dd8c81a2756656f44f.zip
update game engine and example game
Diffstat (limited to 'src/main/java/los/numeros/ExampleGame/Main.java')
-rw-r--r--src/main/java/los/numeros/ExampleGame/Main.java20
1 files changed, 20 insertions, 0 deletions
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);
+ }
+}