diff options
Diffstat (limited to 'Source/Asura.Framework')
| -rw-r--r-- | Source/Asura.Framework/Filesystem/Impoter.lua | 22 | ||||
| -rw-r--r-- | Source/Asura.Framework/Graphics/Animator.lua | 7 |
2 files changed, 27 insertions, 2 deletions
diff --git a/Source/Asura.Framework/Filesystem/Impoter.lua b/Source/Asura.Framework/Filesystem/Impoter.lua new file mode 100644 index 0000000..fbbd68a --- /dev/null +++ b/Source/Asura.Framework/Filesystem/Impoter.lua @@ -0,0 +1,22 @@ +--[[ +»ùÀ࣬×Ô¶¨ÒåµÄ×ÊÔ´¿ÉÒÔͨ¹ý¼Ì³Ð´ËÀർÈë¡£×Ô¶¨ÒåµÄ×ÊÔ´µÄ±ê¼Ç·½·¨£º +<asset> + <extern>./resource.maptile</extern> +</asset> +ÔÚÖ¸¶¨Á˵¼ÈëimpoterÖ®ºó£¬×Ô¶¨ÒåµÄ×ÊÔ´ÔÊÐíͨ¹ýÏÂÁз½·¨±ê¼Ç: +<maptile> + <extern>./resource.maptile</extern> +</maptile> +ÒýÇæ»áʹÓöÔÓ¦ÄÚ²¿×ÊÔ´ÀàÐ͵Äimporterµ¼Èë×ÊÔ´ + +]] + +local importer = Class() + +function importer:InnerResource( data ) + + + +end + +return importer
\ No newline at end of file diff --git a/Source/Asura.Framework/Graphics/Animator.lua b/Source/Asura.Framework/Graphics/Animator.lua index eb33e49..1dca9f4 100644 --- a/Source/Asura.Framework/Graphics/Animator.lua +++ b/Source/Asura.Framework/Graphics/Animator.lua @@ -1,11 +1,14 @@ -local Animator = Class() +local Animator = Class(function(go) + self.gameobject = go + self.spriteRenderer = go:GetSpriteRenderer() +end) Animator.animation = AsuraEngine.Animation.None local animation = AsuraEngine.Animation.New() function Animator:OnUpdate(dt) - + end function Animator:OnRender() |
