From cc75ef73b6326482c42eec71cb5b867d1bbece15 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Wed, 23 Aug 2023 09:46:34 -0500 Subject: [PATCH] Add 'example.cpp' --- example.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 example.cpp diff --git a/example.cpp b/example.cpp new file mode 100644 index 0000000..e2b03ea --- /dev/null +++ b/example.cpp @@ -0,0 +1,42 @@ +#include "olcPixelGameEngine.h" + +using namespace olc; + +class Example : public olc::PixelGameEngine +{ +public: + Example() + { + sAppName = "Example"; + } + + bool OnUserCreate() override + { + return true; + } + + void OnTextEntryComplete(const std::string& sText)override{ + std::cout<<"Called."<