From 6322712259d46fc7af82ae6271852a236f66ba6e Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Wed, 2 Mar 2022 03:36:05 +0530 Subject: * Test Enemy Added * Basic Hacky Enemy AI --- assets/maps/level1.lua | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'assets/maps') diff --git a/assets/maps/level1.lua b/assets/maps/level1.lua index 423becc..3681b3e 100644 --- a/assets/maps/level1.lua +++ b/assets/maps/level1.lua @@ -9,7 +9,7 @@ return { tilewidth = 16, tileheight = 16, nextlayerid = 7, - nextobjectid = 32, + nextobjectid = 33, properties = {}, tilesets = { { @@ -300,8 +300,8 @@ return { rotation = 0, visible = true, properties = { - ["data"] = "Beware of the Alien Monster", - ["interactive_type"] = "message_notification" + ["interactive_type"] = "message_notification", + ["talker_data"] = "Beware of the Alien Monster" } }, { @@ -316,8 +316,8 @@ return { rotation = 0, visible = true, properties = { - ["data"] = "Acquired Potion", - ["interactive_type"] = "pickable" + ["interactive_type"] = "pickable", + ["message"] = "Acquired Potion" } }, { @@ -332,8 +332,8 @@ return { rotation = 0, visible = true, properties = { - ["data"] = "Acquired Potion", - ["interactive_type"] = "pickable" + ["interactive_type"] = "pickable", + ["message"] = "Acquired Potion" } }, { @@ -348,9 +348,22 @@ return { rotation = 0, visible = true, properties = { - ["data"] = "Acquired Potion", - ["interactive_type"] = "pickable" + ["interactive_type"] = "pickable", + ["message"] = "Acquired Potion" } + }, + { + id = 32, + name = "", + type = "enemy", + shape = "rectangle", + x = 128, + y = 48, + width = 16, + height = 16, + rotation = 0, + visible = true, + properties = {} } } }, -- cgit v1.2.3