From 713be595b86e9f913b5403fea793b10f9fa036f6 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Wed, 1 Mar 2023 13:28:29 -0500 Subject: [PATCH] add main --- Assignment 2/src/ca/cosc3p91/a2/Main.java | 13 +++++++++++++ .../src/ca/cosc3p91/a2/game/GameEngine.java | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 Assignment 2/src/ca/cosc3p91/a2/Main.java diff --git a/Assignment 2/src/ca/cosc3p91/a2/Main.java b/Assignment 2/src/ca/cosc3p91/a2/Main.java new file mode 100644 index 0000000..18130b1 --- /dev/null +++ b/Assignment 2/src/ca/cosc3p91/a2/Main.java @@ -0,0 +1,13 @@ +package ca.cosc3p91.a2; + +import ca.cosc3p91.a2.game.GameEngine; + +public class Main { + + public static void main(String[] args) { + GameEngine engine = new GameEngine(); + + engine.run(); + } + +} diff --git a/Assignment 2/src/ca/cosc3p91/a2/game/GameEngine.java b/Assignment 2/src/ca/cosc3p91/a2/game/GameEngine.java index 8f35444..167c740 100644 --- a/Assignment 2/src/ca/cosc3p91/a2/game/GameEngine.java +++ b/Assignment 2/src/ca/cosc3p91/a2/game/GameEngine.java @@ -2,7 +2,7 @@ package ca.cosc3p91.a2.game; import ca.cosc3p91.a2.player.Player; -public class GameEngine { +public class GameEngine implements Runnable { private Player player; @@ -22,4 +22,8 @@ public class GameEngine { public void getScore(Map map) { } + @Override + public void run() { + + } }