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() |