Updating README.md

This commit is contained in:
Alex Yatskov 2017-09-29 17:04:03 -07:00
parent 5e9508e9cd
commit 1374ba664d

View File

@ -20,7 +20,7 @@ core of the engine was the `Actor` class, the functionality of which could be ex
property definitions were specified in XML; for example, below is the definition for the playable character: property definitions were specified in XML; for example, below is the definition for the playable character:
``` ```xml
<Actor alias = "Player.01" dynamic = "1" layer = "4" thumbnail = "Player.01.Idle.S.01"> <Actor alias = "Player.01" dynamic = "1" layer = "4" thumbnail = "Player.01.Idle.S.01">
<Properties> <Properties>
<Animation /> <Animation />
@ -35,7 +35,7 @@ Lua script with the actor. Scripts would get notifications about events such as
processing could take place: processing could take place:
``` ```lua
function OnActorUpdate(elapsed) function OnActorUpdate(elapsed)
if InputIsKeyTriggered(META_KEY_USE) then if InputIsKeyTriggered(META_KEY_USE) then
DoActorUse() DoActorUse()
@ -63,7 +63,7 @@ messaging system. This made it possible to build any game object imaginable by e
simple scripting. simple scripting.
``` ```lua
function DoActorWalk(direction) function DoActorWalk(direction)
if playerAction == ACTION_WALK and playerDirection == direction then if playerAction == ACTION_WALK and playerDirection == direction then
return return