diff options
| author | Oxore <oxore@protonmail.com> | 2019-08-03 12:10:09 +0300 | 
|---|---|---|
| committer | Oxore <oxore@protonmail.com> | 2019-08-03 22:14:38 +0300 | 
| commit | 9144dbb427f8f71b1ef146c7fdb42b2570f94cb6 (patch) | |
| tree | 83992871ca9fc3875559b47df9003bdd883e1e79 /dat/texts.json | |
| parent | 6161ec503292d00e83674ee8bba179e5e8ea0b4b (diff) | |
Implement json parser for texts
Diffstat (limited to 'dat/texts.json')
| -rw-r--r-- | dat/texts.json | 90 | 
1 files changed, 90 insertions, 0 deletions
| 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 +  } +] | 
