> For the complete documentation index, see [llms.txt](https://kree.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kree.gitbook.io/documentation/core-components/gameobject.md).

# GameObject

This components is the main building block for your game this lets you create Player, Enemies, Collectibles and more!

> Component Author: [Jabo](https://github.com/jabo-bernardo)\
> Release Date: April 11, 2020

{% tabs %}
{% tab title="Usage" %}

```java
new GameObject(Scene parentScene, String gameObjectName);
```

{% endtab %}

{% tab title="Methods" %}

```java
addComponent(Component c); // Adds component to the GameObject

getComponent(String componentName); // Returns Component

getTransform(); // Returns Transform Object

getID(); // Returns the ID of the Game Object

getName(); // Returns String

getParentScene(); // Returns Scene
```

{% endtab %}
{% endtabs %}
