Browse Source

add screen refresh

lesson02
Constantin Fürst 6 months ago
parent
commit
d4bf1dc9a9
  1. 1
      components/Snack.h
  2. 1
      main.cpp

1
components/Snack.h

@ -1,4 +1,5 @@
#pragma once
#include "Point.h"
static constexpr int SNACK_CHAR = '*';

1
main.cpp

@ -26,6 +26,7 @@ void mainL02() {
Point p(10,10);
generateSnack(&p);
Graphics::get().refreshScreen();
std::this_thread::sleep_for(std::chrono::seconds(10));
Graphics::get().finalize();

Loading…
Cancel
Save