From aa350f5e90683b511abc16c51136ac0827281361 Mon Sep 17 00:00:00 2001 From: Srikavin Ramkumar Date: Thu, 9 Jan 2020 14:31:29 -0500 Subject: [PATCH] Remove debug visuals --- core/src/me/srikavin/fbla/game/FBLAGame.kt | 3 +-- .../me/srikavin/fbla/game/dialogue/DialogueManager.kt | 1 - .../fbla/game/minigame/dropcatch/DropcatchMinigame.kt | 1 - technical_readme.md | 9 ++++++++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/core/src/me/srikavin/fbla/game/FBLAGame.kt b/core/src/me/srikavin/fbla/game/FBLAGame.kt index fc0a778..f6b17ed 100644 --- a/core/src/me/srikavin/fbla/game/FBLAGame.kt +++ b/core/src/me/srikavin/fbla/game/FBLAGame.kt @@ -78,7 +78,6 @@ class FBLAGame : ApplicationAdapter() { root.setFillParent(true) root.top().right() - root.debug = true val gameState = GameState(0) @@ -99,7 +98,7 @@ class FBLAGame : ApplicationAdapter() { DialogueSystem(), TriggerSystem(listenerManager), UISystem(), - PhysicsDebugSystem(physicsWorld) + PhysicsDebugSystem(physicsWorld, debug = false) ) .with(TagManager()) .build() diff --git a/core/src/me/srikavin/fbla/game/dialogue/DialogueManager.kt b/core/src/me/srikavin/fbla/game/dialogue/DialogueManager.kt index 847a68a..240fba2 100644 --- a/core/src/me/srikavin/fbla/game/dialogue/DialogueManager.kt +++ b/core/src/me/srikavin/fbla/game/dialogue/DialogueManager.kt @@ -62,7 +62,6 @@ class DialogueManager(private val stage: Stage, skin: Skin) { dialogueRoot = Table(skin) dialogueRoot.setFillParent(true) dialogueRoot.center().bottom() - dialogueRoot.debug = true dialogueRoot.add(dialogueTextContainer) dialogueRoot.row() dialogueRoot.add(dialogueOptionsTable) diff --git a/core/src/me/srikavin/fbla/game/minigame/dropcatch/DropcatchMinigame.kt b/core/src/me/srikavin/fbla/game/minigame/dropcatch/DropcatchMinigame.kt index a121212..4317200 100644 --- a/core/src/me/srikavin/fbla/game/minigame/dropcatch/DropcatchMinigame.kt +++ b/core/src/me/srikavin/fbla/game/minigame/dropcatch/DropcatchMinigame.kt @@ -53,7 +53,6 @@ class DropcatchMinigame : Minigame() { val table = Table(skin).center().bottom() table.setFillParent(true) - table.debug = true stage.addActor(table) itemsLeft = TypingLabel("Items Left: ?", skin) timeLeft = TypingLabel("Time Left: ?", skin) diff --git a/technical_readme.md b/technical_readme.md index 5c768d2..7a3272a 100644 --- a/technical_readme.md +++ b/technical_readme.md @@ -2,4 +2,11 @@ ## Architecture The game uses [libgdx](https://libgdx.badlogicgames.com/) with Artemis-ODB to facilitate a entity-component-system architecture. -This type of game architecture avoids object-oriented composition within entities--rather, it uses a +This type of game architecture avoids object-oriented composition within entities--rather, it uses a composition-oriented +approach to add behavior to entities. This avoids illogical composition hierarchies while keeping entity behavior +separated from entity data. + +Entities only contain data such as position or sprites. Systems operate on groups of entities with specific components. For +example, PhysicsSystem only acts on entities with both components + +## Map System