summaryrefslogtreecommitdiff
path: root/src/states/titleState.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/states/titleState.cpp')
-rw-r--r--src/states/titleState.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/states/titleState.cpp b/src/states/titleState.cpp
new file mode 100644
index 0000000..a0d17c8
--- /dev/null
+++ b/src/states/titleState.cpp
@@ -0,0 +1,25 @@
+#include "titleState.h"
+#include <SFML/Graphics.hpp>
+
+TitleState::TitleState(StateStack &stack, State::Context context)
+ : State(stack, context)
+{
+
+}
+
+void TitleState::update(sf::Time dt){
+
+}
+
+void TitleState::render(){
+ sf::RectangleShape rectangle;
+ rectangle.setSize(sf::Vector2f(100, 50));
+ rectangle.setOutlineColor(sf::Color::Red);
+ rectangle.setOutlineThickness(5);
+ rectangle.setPosition(10, 20);
+ context_.window->draw(rectangle);
+}
+
+void TitleState::handleEvent(const sf::Event &event){
+
+}