From 2cc5b468cfd4c28bf1ad17ef1b3600c3d42f8b83 Mon Sep 17 00:00:00 2001 From: troido Date: Sat, 4 Apr 2020 14:01:17 +0200 Subject: listen to sounds in the world --- content/encyclopediae/default_encyclopedia.json | 8 ++++++++ content/maps/room.json | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'content') diff --git a/content/encyclopediae/default_encyclopedia.json b/content/encyclopediae/default_encyclopedia.json index 0dc1f80..5fa6ebf 100644 --- a/content/encyclopediae/default_encyclopedia.json +++ b/content/encyclopediae/default_encyclopedia.json @@ -262,6 +262,14 @@ "components": [ ["Interactable", {"action": ["interaction", ["change", {"type": "closeddoor", "save": false}]]}] ] + }, + "sign": { + "sprite": "sign", + "height": 1, + "flags": ["Occupied"], + "components": [ + ["Interactable", {"action": ["interaction", ["say", "Good morning there, World"]]}] + ] } } } diff --git a/content/maps/room.json b/content/maps/room.json index 275100f..e1bf55e 100644 --- a/content/maps/room.json +++ b/content/maps/room.json @@ -19,7 +19,7 @@ "X,**,,.,,,,,,,,,,,,bbb,,,,,,,,,,#++++#,,,X", "X,*,*,.,,,,,V,,V,,,~~~,,,T,,,T,,#++++#,,,X", "X,,*,,.,,,,,,,,,,,,~~~,,,,,,,,,,######,,,X", - "X,oo,,.,,,d,,,,,,,~~~~,,,,,,,,,,f,,,,f,,,X", + "X,oo,,.,s,d,,,,,,,~~~~,,,,,,,,,,f,,,,f,,,X", "X,,*,,.,,,,,,,,,,,~~~''''''''''''''''f'''X", "X*,,,,.,,,d,VVV,,,~~~'''''''''''f''''f'''X", "1,,,,,.,,,,,VVV,,,~~~'''''''''''ffffff'''X", @@ -48,6 +48,7 @@ "V": ["grass", "radishplant"], "/": ["grass", "sword"], "D": ["ground", "closeddoor"], + "s": ["ground", "sign"], " ": [] } } -- cgit