diff options
Diffstat (limited to 'Samples/Hello')
-rw-r--r-- | Samples/Hello/entities/player.asr | 5 | ||||
-rw-r--r-- | Samples/Hello/gfx/icon.png | bin | 0 -> 4147 bytes | |||
-rw-r--r-- | Samples/Hello/gfx/icon.png.asr | 3 | ||||
-rw-r--r-- | Samples/Hello/gfx/particles/fire.asr | 4 | ||||
-rw-r--r-- | Samples/Hello/hello.asuraproject | 2 | ||||
-rw-r--r-- | Samples/Hello/scripts/components/fireball.lua | 28 | ||||
-rw-r--r-- | Samples/Hello/scripts/components/fireball.lua.asr | 0 | ||||
-rw-r--r-- | Samples/Hello/scripts/entities/bullet.lua | 0 | ||||
-rw-r--r-- | Samples/Hello/scripts/entities/bullet.lua.asr | 3 | ||||
-rw-r--r-- | Samples/Hello/scripts/entities/spark.lua | 3 | ||||
-rw-r--r-- | Samples/Hello/scripts/entities/spark.lua.asr | 0 | ||||
-rw-r--r-- | Samples/Hello/scripts/hello.lua | 0 | ||||
-rw-r--r-- | Samples/Hello/scripts/hello.lua.asr | 3 | ||||
-rw-r--r-- | Samples/Hello/spr/spr_image.asr | 6 |
14 files changed, 57 insertions, 0 deletions
diff --git a/Samples/Hello/entities/player.asr b/Samples/Hello/entities/player.asr new file mode 100644 index 0000000..fa7550d --- /dev/null +++ b/Samples/Hello/entities/player.asr @@ -0,0 +1,5 @@ +<gameobject> + <components> + <component></component> + </components> +</gameobject>
\ No newline at end of file diff --git a/Samples/Hello/gfx/icon.png b/Samples/Hello/gfx/icon.png Binary files differnew file mode 100644 index 0000000..8074c4c --- /dev/null +++ b/Samples/Hello/gfx/icon.png diff --git a/Samples/Hello/gfx/icon.png.asr b/Samples/Hello/gfx/icon.png.asr new file mode 100644 index 0000000..93d6d58 --- /dev/null +++ b/Samples/Hello/gfx/icon.png.asr @@ -0,0 +1,3 @@ +<image> + <extern>icon.png</extern> +</image>
\ No newline at end of file diff --git a/Samples/Hello/gfx/particles/fire.asr b/Samples/Hello/gfx/particles/fire.asr new file mode 100644 index 0000000..eae2506 --- /dev/null +++ b/Samples/Hello/gfx/particles/fire.asr @@ -0,0 +1,4 @@ +<!--ϵͳ--> +<particlesystem> + +</particlesystem>
\ No newline at end of file diff --git a/Samples/Hello/hello.asuraproject b/Samples/Hello/hello.asuraproject new file mode 100644 index 0000000..fee1eb1 --- /dev/null +++ b/Samples/Hello/hello.asuraproject @@ -0,0 +1,2 @@ +<folders> +</folders>
\ No newline at end of file diff --git a/Samples/Hello/scripts/components/fireball.lua b/Samples/Hello/scripts/components/fireball.lua new file mode 100644 index 0000000..8b31228 --- /dev/null +++ b/Samples/Hello/scripts/components/fireball.lua @@ -0,0 +1,28 @@ +--ӳcomponent +--lua require룬package.load +local Spark = require("scripts/spark.lua") +local Fireball = AsuraEngine.Component.Extend("Fireball") +-- µķǺ֣ͣʾڱ༭УҪʾڱ༭Уһʼֵ +-- жͣnilҪʾڱ༭ +Fireball.name = "" +Fireball.position = 1 +Fireball.image = nil +Fireball.spark = Spark.New() + +function Fireball:OnEnable() + self.image = self.gameobject.GetComponent(AsuraEngine.Image) +end + +function Fireball:OnEvent(e) + +end + +function Fireball:OnUpdate(ms) + +end + +function Fireball:OnDraw() + +end + +return Fireball
\ No newline at end of file diff --git a/Samples/Hello/scripts/components/fireball.lua.asr b/Samples/Hello/scripts/components/fireball.lua.asr new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Samples/Hello/scripts/components/fireball.lua.asr diff --git a/Samples/Hello/scripts/entities/bullet.lua b/Samples/Hello/scripts/entities/bullet.lua new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Samples/Hello/scripts/entities/bullet.lua diff --git a/Samples/Hello/scripts/entities/bullet.lua.asr b/Samples/Hello/scripts/entities/bullet.lua.asr new file mode 100644 index 0000000..bd43c00 --- /dev/null +++ b/Samples/Hello/scripts/entities/bullet.lua.asr @@ -0,0 +1,3 @@ +<script> + <extern>bullet.lua</extern> +</script>
\ No newline at end of file diff --git a/Samples/Hello/scripts/entities/spark.lua b/Samples/Hello/scripts/entities/spark.lua new file mode 100644 index 0000000..c47be06 --- /dev/null +++ b/Samples/Hello/scripts/entities/spark.lua @@ -0,0 +1,3 @@ +local spark + +return spark
\ No newline at end of file diff --git a/Samples/Hello/scripts/entities/spark.lua.asr b/Samples/Hello/scripts/entities/spark.lua.asr new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Samples/Hello/scripts/entities/spark.lua.asr diff --git a/Samples/Hello/scripts/hello.lua b/Samples/Hello/scripts/hello.lua new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Samples/Hello/scripts/hello.lua diff --git a/Samples/Hello/scripts/hello.lua.asr b/Samples/Hello/scripts/hello.lua.asr new file mode 100644 index 0000000..87e3c43 --- /dev/null +++ b/Samples/Hello/scripts/hello.lua.asr @@ -0,0 +1,3 @@ +<script> + <source>hello.lua</source> +</script>
\ No newline at end of file diff --git a/Samples/Hello/spr/spr_image.asr b/Samples/Hello/spr/spr_image.asr new file mode 100644 index 0000000..91be3a3 --- /dev/null +++ b/Samples/Hello/spr/spr_image.asr @@ -0,0 +1,6 @@ +<sprite> + <image>gfx/icon.png</image> + <name>spr_image</name> + <size>12,32</size> + <anchor>10,10</anchor> +</sprite>
\ No newline at end of file |