Breakout Standard Screen

Meaning bricks, ball, pad, walls bounces, things.
May or may not work as intended.
This commit is contained in:
PlatinumSkink
2015-09-11 15:07:00 +02:00
parent ead7c6c754
commit bda864ac11
7 changed files with 67 additions and 23 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
//
// Created by Administrator on 2015-09-10.
// Created by Adniklastrator on 2015-09-10.
//
#ifndef DAYDREAM_CPAD_H
#define DAYDREAM_CPAD_H
#ifndef DAYDREAM_CBALL_H
#define DAYDREAM_CBALL_H
#include "Core/Component.h"
@@ -22,4 +22,4 @@ struct Ball : Component
}
#endif //DAYDREAM_CPAD_H
#endif //DAYDREAM_CBALL_H
+1 -3
View File
@@ -1,5 +1,5 @@
//
// Created by Administrator on 2015-09-10.
// Created by Adniklastrator on 2015-09-10.
//
#ifndef DAYDREAM_CPAD_H
@@ -17,8 +17,6 @@ namespace Components
struct Pad : Component
{
//std::shared_ptr<dd::EventBroker> eventBroker;
//EVENT_SUBSCRIBE_MEMBER(m_EKeyDown, CPad::OnKeyDown);
int Lives;
int Points;
};
+5 -3
View File
@@ -11,13 +11,15 @@
#include "Core/EKeyDown.h"
#include "Core/EKeyUp.h"
#include "Input/EBindKey.h"
//#include "Core/EContact.h"
#include "Physics/EContact.h"
#include "Core/CTransform.h"
#include "Physics/CBoxShape.h"
#include "Physics/CPhysics.h"
#include "Rendering/CSprite.h"
#include "Game/CBall.h"
#include "Core/Component.h"
#include "Physics/ESetImpulse.h"
#include "Physics/CCircleShape.h"
namespace dd
@@ -39,13 +41,13 @@ public:
private:
dd::EventRelay<PadSystem, dd::Events::KeyDown> m_EKeyDown;
dd::EventRelay<PadSystem, dd::Events::KeyUp> m_EKeyUp;
//dd::EventRelay<LevelSystem, dd::Events::Contact> m_EContact;
dd::EventRelay<PadSystem, dd::Events::Contact> m_EContact;
bool OnKeyDown(const dd::Events::KeyDown &event);
bool OnKeyUp(const dd::Events::KeyUp &event);
bool OnContact(/*const dd::Events::Contact &event*/);
bool OnContact(const dd::Events::Contact &event);