The Game Object Debugger is a tool designed to visualize and manipulate game objects in a Game Engine Window using a GUI. This debugger allows developers to view and modify game objects properties dynamically, including their behaviors, transformations, and child objects.
The debugger relies on the following dependencies:
Behavior
: Represents behaviors that can be attached to game objects.GameEngineWindow
: The central window root that contains all game objects.GameObject
: Represents an entity in the game engine.<script type="module" src="@extensions/Debugger/DraggableElement.ts"></script>
const childGameObject1: GameObject = new GameObject();
const childGameObject2: GameObject = new GameObject();
const grandChildGameObject: GameObject = new GameObject();
gameEngineWindow.root.addChild(childGameObject1);
gameEngineWindow.root.addChild(childGameObject2);
childGameObject1.addChild(grandChildGameObject);
childGameObject1.addBehavior(new TestBehavior());