From 9144dbb427f8f71b1ef146c7fdb42b2570f94cb6 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 3 Aug 2019 12:10:09 +0300 Subject: Implement json parser for texts --- dat/texts.json | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 dat/texts.json (limited to 'dat/texts.json') diff --git a/dat/texts.json b/dat/texts.json new file mode 100644 index 0000000..1266aee --- /dev/null +++ b/dat/texts.json @@ -0,0 +1,90 @@ +[ + { + "type" : "score.value", + "scene" : "game", + "font" : "Arial", + "size" : 20, + "x" : 350, + "y" : 10 + }, + { + "type" : "score", + "scene" : "game", + "text" : "Score: ", + "font" : "Arial", + "size" : 20, + "x" : 270, + "y" : 10 + }, + { + "type" : "level.value", + "scene" : "game", + "font" : "Arial", + "size" : 20, + "x" : 350, + "y" : 44 + }, + { + "type" : "level", + "scene" : "game", + "text" : "Level: ", + "font" : "Arial", + "size" : 20, + "x" : 270, + "y" : 44 + }, + { + "type" : "", + "scene" : "game", + "text" : "Next Shape: ", + "font" : "Arial", + "size" : 20, + "x" : 270, + "y" : 80 + }, + { + "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 + }, + { + "type" : "pause", + "scene" : "game", + "text" : "PAUSED", + "font" : "Arial", + "size" : 36, + "x" : 60, + "y" : 188 + }, + { + "type" : "title", + "scene" : "game_over", + "text" : "Game Over", + "font" : "Arial", + "size" : 36, + "x" : 42, + "y" : 188 + }, + { + "type" : "press_key", + "scene" : "game_over", + "text" : "press any key", + "font" : "Arial", + "size" : 24, + "x" : 57, + "y" : 240 + } +] -- cgit v1.2.3