From b2dd4a3fb7ad9eb29c9b6125a5158bdaeb2711af Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 5 Mar 2019 18:07:43 +0100 Subject: Updated test program --- test.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test.cpp') diff --git a/test.cpp b/test.cpp index 7d0c9b9..b09e6ec 100644 --- a/test.cpp +++ b/test.cpp @@ -18,6 +18,7 @@ public: { setSize(10,5); cc = 0; + kc = 0; drawRectangle('#', NULL, {0,0}, {9,4}, _COL_GREEN, _COL_DEFAULT); } @@ -33,13 +34,15 @@ public: } virtual bool onCollisionActive(unsigned int _hit, int _passiveObject){ - drawPoint('K', {0,0}, true, _COL_RED); + kc++; + drawText(std::to_string(kc), {0,0}, _COL_RED); return true; } virtual void onChar(unsigned char _c) { drawPoint(_c, {1,1},true, _COL_BLUE); } private: int cc; + int kc; }; int main(int argc, char* argv[]) -- cgit v1.2.3