From 310669858ec59d470778d5bf55e0d19418ea682e Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 28 Mar 2021 11:17:23 +0200 Subject: [PATCH] txt skeletons. --- 05_sdl_alapok.txt | 12 ++++++++++++ 06_sdl_motor.txt | 7 +++++++ 08_monopoly_sdl.txt | 31 +++++++++++++++++++++++++++++++ 09_sdl_input.txt | 0 10_monopoly_input.txt | 0 12_widget_keszlet.txt | 0 6 files changed, 50 insertions(+) create mode 100644 05_sdl_alapok.txt create mode 100644 06_sdl_motor.txt create mode 100644 08_monopoly_sdl.txt create mode 100644 09_sdl_input.txt create mode 100644 10_monopoly_input.txt create mode 100644 12_widget_keszlet.txt diff --git a/05_sdl_alapok.txt b/05_sdl_alapok.txt new file mode 100644 index 0000000..909d6f9 --- /dev/null +++ b/05_sdl_alapok.txt @@ -0,0 +1,12 @@ + +Most hogy már működik az sdl + +Hogy működik, main etc + +//megj: sima int main() {} ként nem fog működni a program, mert az sdl fogja meghívni a mi main()-ünket! +vagy + +#define SDL_MAIN_HANDLED +#include +#include +#include diff --git a/06_sdl_motor.txt b/06_sdl_motor.txt new file mode 100644 index 0000000..4337096 --- /dev/null +++ b/06_sdl_motor.txt @@ -0,0 +1,7 @@ + + +Textura + +Sprite + + diff --git a/08_monopoly_sdl.txt b/08_monopoly_sdl.txt new file mode 100644 index 0000000..b2fd75e --- /dev/null +++ b/08_monopoly_sdl.txt @@ -0,0 +1,31 @@ + + +Texture + Sprite + +Tile, player is lehet sprite + +Tile: x, y, w, h +Player x, y, w, h + + +tile betolt + +tile-> on player_step -> player set_pos this.center; + + +Először a rendertt ell megcsálni,és input nélkül +utána külön feladat az input visszarakása + player egész ilyen txts + +Fontos, hogy látni lehessen, hogy a render az csak megjelenítés, a mögötte lévő adat majdnem ugyen az. + +Board: +input() -> send to the current player + +step() + +do everything the same. + + +render() + + diff --git a/09_sdl_input.txt b/09_sdl_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/10_monopoly_input.txt b/10_monopoly_input.txt new file mode 100644 index 0000000..e69de29 diff --git a/12_widget_keszlet.txt b/12_widget_keszlet.txt new file mode 100644 index 0000000..e69de29