aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-05 18:07:43 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-05 18:07:43 +0100
commitb2dd4a3fb7ad9eb29c9b6125a5158bdaeb2711af (patch)
tree8aaf48a8c9cfbda3dabbf6f01b381389b3fd7262
parentd855a4198d67eac8bdb7a180c0a25d747d5e8bfa (diff)
downloadtermgl-b2dd4a3fb7ad9eb29c9b6125a5158bdaeb2711af.tar.gz
Updated test program
-rw-r--r--test.cpp5
1 files changed, 4 insertions, 1 deletions
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[])