Added CBall

This commit is contained in:
PlatinumSkink
2015-09-10 21:46:03 +02:00
parent a047e46fe9
commit 1d94338214
6 changed files with 28 additions and 5 deletions
+1 -4
View File
@@ -11,8 +11,6 @@ void dd::Systems::LevelSystem::Initialize()
{
CreateBasicLevel(tRows, tLines, tSpaceBetweenBricks, tSpaceToEdge);
return;
}
@@ -81,13 +79,12 @@ bool dd::Systems::LevelSystem::OnContact(/*const dd::Events::Contact &event,*/)
EntityID entityBall;
EntityID entity1;
EntityID entity2;
EntityID ball;
auto brick = m_World->GetComponent<Components::Brick>(entity1);
auto ball = m_World->GetComponent<Components::Ball>(entity2);
if (brick != NULL)
{
entityBrick = entity1;
ball = m_World->GetComponent<Components::Ball>(entity2);
if (ball != NULL)
{
entityBall = entity2;