|
@@ -16,6 +16,9 @@
|
|
|
#include <Logger.h>
|
|
|
#include <ECS.h>
|
|
|
|
|
|
+#include <Components/Transform.h>
|
|
|
+#include <Components/RigidBody.h>
|
|
|
+
|
|
|
Game::Game()
|
|
|
{
|
|
|
this->isRunning = false;
|
|
@@ -94,7 +97,9 @@ void Game::Run()
|
|
|
void Game::Setup()
|
|
|
{
|
|
|
Entity tank = this->registry->createEntity();
|
|
|
- Entity truck = this->registry->createEntity();
|
|
|
+
|
|
|
+ this->registry->addComponent<TransformComponent>(tank, glm::vec2(10, 30), glm::vec2(1, 1), 0);
|
|
|
+ this->registry->addComponent<RigidBodyComponent>(tank, glm::vec2(50, 0));
|
|
|
}
|
|
|
|
|
|
void Game::Update()
|