From 0edc5e799a5485f405756695491f1a497c21243c Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 2 Dec 2017 12:25:18 +0300 Subject: Rename yaml text resource file --- dat/texts.yaml | 36 ++++++++++++++++++++++++++++++++++++ dat/ya.yaml | 36 ------------------------------------ src/main.c | 2 +- 3 files changed, 37 insertions(+), 37 deletions(-) create mode 100644 dat/texts.yaml delete mode 100644 dat/ya.yaml diff --git a/dat/texts.yaml b/dat/texts.yaml new file mode 100644 index 0000000..1086999 --- /dev/null +++ b/dat/texts.yaml @@ -0,0 +1,36 @@ +--- +- + type: "score" + scene: "game" + text: "Score: " + font: "Arial" + size: 20 + x: 270 + y: 10 + +- + type: "level" + scene: "game" + text: "Level: " + font: "Arial" + size: 20 + x: 270 + y: 44 + +- + type: + scene: "menu" + text: "TETRIS" + font: "Arial" + size: 36 + x: 290 + y: 100 + +- + type: "" + scene: "menu" + text: "Press \"S\" to start" + font: "Arial" + size: 20 + x: 276 + y: 200 diff --git a/dat/ya.yaml b/dat/ya.yaml deleted file mode 100644 index 1086999..0000000 --- a/dat/ya.yaml +++ /dev/null @@ -1,36 +0,0 @@ ---- -- - type: "score" - scene: "game" - text: "Score: " - font: "Arial" - size: 20 - x: 270 - y: 10 - -- - type: "level" - scene: "game" - text: "Level: " - font: "Arial" - size: 20 - x: 270 - y: 44 - -- - type: - scene: "menu" - text: "TETRIS" - font: "Arial" - size: 36 - x: 290 - y: 100 - -- - type: "" - scene: "menu" - text: "Press \"S\" to start" - font: "Arial" - size: 20 - x: 276 - y: 200 diff --git a/src/main.c b/src/main.c index a4a8863..c429ca9 100644 --- a/src/main.c +++ b/src/main.c @@ -44,7 +44,7 @@ void prepare() { .cSize = {.x = 23, .y = 23}}; initFld(); - texts = ListOfText_getFromListOfKeyMapOfString(ListOfKeyMapOfString_getFromYaml("dat/ya.yaml")); + texts = ListOfText_getFromListOfKeyMapOfString(ListOfKeyMapOfString_getFromYaml("dat/texts.yaml")); w.window = sfRenderWindow_create(w.mode, windowName_conf, sfResize | sfClose, -- cgit v1.2.3