diff options
Diffstat (limited to 'demos/2d/platformer/enemy.xml')
-rw-r--r-- | demos/2d/platformer/enemy.xml | 98 |
1 files changed, 53 insertions, 45 deletions
diff --git a/demos/2d/platformer/enemy.xml b/demos/2d/platformer/enemy.xml index ad3a70931d..72d2ff068e 100644 --- a/demos/2d/platformer/enemy.xml +++ b/demos/2d/platformer/enemy.xml @@ -2,9 +2,9 @@ <resource_file type="PackedScene" subresource_count="12" version="2.0" version_name="Godot Engine v2.0.alpha.custom_build"> <ext_resource path="res://bullet.png" type="Texture" index="2"></ext_resource> <ext_resource path="res://enemy.gd" type="Script" index="0"></ext_resource> - <ext_resource path="res://enemy.png" type="Texture" index="1"></ext_resource> - <ext_resource path="res://sound_hit.wav" type="Sample" index="4"></ext_resource> <ext_resource path="res://sound_explode.wav" type="Sample" index="3"></ext_resource> + <ext_resource path="res://sound_hit.wav" type="Sample" index="4"></ext_resource> + <ext_resource path="res://enemy.png" type="Texture" index="1"></ext_resource> <resource type="CircleShape2D" path="local://1"> <real name="custom_solver_bias"> 0 </real> <real name="radius"> 14 </real> @@ -41,33 +41,6 @@ </dictionary> </resource> - <resource type="Animation" path="local://4"> - <string name="resource/name"> "walk" </string> - <real name="length"> 1.25 </real> - <bool name="loop"> True </bool> - <real name="step"> 0.25 </real> - <string name="tracks/0/type"> "value" </string> - <node_path name="tracks/0/path"> "sprite:frame" </node_path> - <int name="tracks/0/interp"> 1 </int> - <dictionary name="tracks/0/keys" shared="false"> - <string> "cont" </string> - <bool> False </bool> - <string> "times" </string> - <real_array len="6"> 0, 0.25, 0.5, 0.75, 1, 1.25 </real_array> - <string> "transitions" </string> - <real_array len="6"> 1, 1, 1, 1, 1, 1 </real_array> - <string> "values" </string> - <array len="6" shared="false"> - <int> 0 </int> - <int> 1 </int> - <int> 2 </int> - <int> 3 </int> - <int> 4 </int> - <int> 0 </int> - </array> - </dictionary> - - </resource> <resource type="Animation" path="local://3"> <string name="resource/name"> "explode" </string> <real name="length"> 6 </real> @@ -147,27 +120,54 @@ </dictionary> </resource> + <resource type="Animation" path="local://4"> + <string name="resource/name"> "walk" </string> + <real name="length"> 1.25 </real> + <bool name="loop"> True </bool> + <real name="step"> 0.25 </real> + <string name="tracks/0/type"> "value" </string> + <node_path name="tracks/0/path"> "sprite:frame" </node_path> + <int name="tracks/0/interp"> 1 </int> + <dictionary name="tracks/0/keys" shared="false"> + <string> "cont" </string> + <bool> False </bool> + <string> "times" </string> + <real_array len="6"> 0, 0.25, 0.5, 0.75, 1, 1.25 </real_array> + <string> "transitions" </string> + <real_array len="6"> 1, 1, 1, 1, 1, 1 </real_array> + <string> "values" </string> + <array len="6" shared="false"> + <int> 0 </int> + <int> 1 </int> + <int> 2 </int> + <int> 3 </int> + <int> 4 </int> + <int> 0 </int> + </array> + </dictionary> + + </resource> <resource type="ColorRamp" path="local://6"> <real_array name="offsets" len="2"> 0, 1 </real_array> <color_array name="colors" len="2"> 1, 0.884956, 0.823009, 1, 0.768627, 0.389381, 0, 0 </color_array> </resource> <resource type="SampleLibrary" path="local://5"> - <dictionary name="samples/explode" shared="false"> + <dictionary name="samples/hit" shared="false"> <string> "db" </string> <real> 0 </real> <string> "pitch" </string> <real> 1 </real> <string> "sample" </string> - <resource external="3"> </resource> + <resource external="4"> </resource> </dictionary> - <dictionary name="samples/hit" shared="false"> + <dictionary name="samples/explode" shared="false"> <string> "db" </string> <real> 0 </real> <string> "pitch" </string> <real> 1 </real> <string> "sample" </string> - <resource external="4"> </resource> + <resource external="3"> </resource> </dictionary> </resource> @@ -177,10 +177,12 @@ <int> 0 </int> <string> "conns" </string> <int_array len="0"> </int_array> + <string> "editable_instances" </string> + <array len="0" shared="false"> + </array> <string> "names" </string> - <string_array len="107"> + <string_array len="108"> <string> "enemy" </string> - <string> "RigidBody2D" </string> <string> "input/pickable" </string> <string> "shapes/0/shape" </string> <string> "shapes/0/transform" </string> @@ -210,8 +212,8 @@ <string> "damp_override/angular" </string> <string> "script/script" </string> <string> "__meta__" </string> + <string> "RigidBody2D" </string> <string> "enabler" </string> - <string> "VisibilityEnabler2D" </string> <string> "transform/pos" </string> <string> "transform/scale" </string> <string> "rect" </string> @@ -220,23 +222,24 @@ <string> "enabler/pause_particles" </string> <string> "enabler/process_parent" </string> <string> "enabler/fixed_process_parent" </string> + <string> "VisibilityEnabler2D" </string> <string> "anim" </string> - <string> "AnimationPlayer" </string> <string> "playback/process_mode" </string> <string> "playback/default_blend_time" </string> <string> "root/root" </string> <string> "anims/idle" </string> - <string> "anims/walk" </string> <string> "anims/explode" </string> + <string> "anims/walk" </string> <string> "playback/active" </string> <string> "playback/speed" </string> <string> "blend_times" </string> <string> "autoplay" </string> + <string> "AnimationPlayer" </string> <string> "sprite" </string> - <string> "Sprite" </string> <string> "texture" </string> <string> "hframes" </string> <string> "frame" </string> + <string> "Sprite" </string> <string> "CollisionShape2D" </string> <string> "shape" </string> <string> "trigger" </string> @@ -244,10 +247,11 @@ <string> "CollisionShape2D 2" </string> <string> "CollisionShape2D 3" </string> <string> "raycast_left" </string> - <string> "RayCast2D" </string> <string> "enabled" </string> <string> "cast_to" </string> <string> "layer_mask" </string> + <string> "type_mask" </string> + <string> "RayCast2D" </string> <string> "raycast_right" </string> <string> "Particles2D" </string> <string> "visibility/self_opacity" </string> @@ -277,7 +281,6 @@ <string> "randomness/spin_velocity" </string> <string> "color/color_ramp" </string> <string> "sound" </string> - <string> "SamplePlayer2D" </string> <string> "params/volume_db" </string> <string> "params/pitch_scale" </string> <string> "params/attenuation/min_distance" </string> @@ -286,13 +289,17 @@ <string> "config/polyphony" </string> <string> "config/samples" </string> <string> "config/pitch_random" </string> + <string> "SamplePlayer2D" </string> </string_array> <string> "node_count" </string> <int> 11 </int> + <string> "node_paths" </string> + <array len="0" shared="false"> + </array> <string> "nodes" </string> - <int_array len="285"> -1, -1, 1, 0, -1, 29, 2, 0, 3, 1, 4, 2, 5, 0, 6, 1, 7, 3, 8, 0, 9, 1, 10, 4, 11, 0, 12, 5, 13, 5, 14, 6, 15, 7, 16, 8, 17, 8, 18, 7, 19, 0, 20, 9, 21, 10, 22, 0, 23, 0, 24, 11, 25, 12, 26, 8, 27, 13, 28, 13, 29, 14, 30, 15, 0, 0, 0, 32, 31, -1, 8, 33, 16, 34, 17, 35, 18, 36, 11, 37, 11, 38, 11, 39, 0, 40, 0, 0, 0, 0, 42, 41, -1, 10, 43, 5, 44, 8, 45, 19, 46, 20, 47, 21, 48, 22, 49, 11, 50, 23, 51, 24, 52, 25, 0, 0, 0, 54, 53, -1, 3, 55, 26, 56, 27, 57, 10, 0, 0, 0, 58, 58, -1, 4, 33, 28, 59, 1, 60, 0, 61, 29, 0, 0, 0, 58, 62, -1, 4, 33, 30, 59, 1, 60, 0, 61, 29, 0, 0, 0, 58, 63, -1, 4, 33, 31, 59, 1, 60, 0, 61, 29, 0, 0, 0, 65, 64, -1, 4, 33, 32, 66, 11, 67, 33, 68, 5, 0, 0, 0, 65, 69, -1, 4, 33, 34, 66, 11, 67, 33, 68, 5, 0, 0, 0, 70, 70, -1, 26, 71, 35, 72, 5, 73, 36, 74, 37, 75, 37, 76, 0, 77, 38, 78, 39, 79, 8, 80, 40, 81, 41, 82, 42, 83, 8, 84, 8, 85, 43, 86, 8, 87, 8, 88, 8, 89, 8, 90, 42, 91, 23, 92, 8, 93, 7, 94, 8, 95, 7, 96, 44, 0, 0, 0, 98, 97, -1, 8, 99, 8, 100, 7, 101, 7, 102, 45, 103, 7, 104, 46, 105, 47, 106, 8, 0 </int_array> + <int_array len="289"> -1, -1, 30, 0, -1, 29, 1, 0, 2, 1, 3, 2, 4, 0, 5, 1, 6, 3, 7, 0, 8, 1, 9, 4, 10, 0, 11, 5, 12, 5, 13, 6, 14, 7, 15, 8, 16, 8, 17, 7, 18, 0, 19, 9, 20, 10, 21, 0, 22, 0, 23, 11, 24, 12, 25, 8, 26, 13, 27, 13, 28, 14, 29, 15, 0, 0, 0, 40, 31, -1, 8, 32, 16, 33, 17, 34, 18, 35, 11, 36, 11, 37, 11, 38, 0, 39, 0, 0, 0, 0, 52, 41, -1, 10, 42, 5, 43, 8, 44, 19, 45, 20, 46, 21, 47, 22, 48, 11, 49, 23, 50, 24, 51, 25, 0, 0, 0, 57, 53, -1, 3, 54, 26, 55, 27, 56, 10, 0, 0, 0, 58, 58, -1, 4, 32, 28, 59, 1, 60, 0, 61, 29, 0, 0, 0, 58, 62, -1, 4, 32, 30, 59, 1, 60, 0, 61, 29, 0, 0, 0, 58, 63, -1, 4, 32, 31, 59, 1, 60, 0, 61, 29, 0, 0, 0, 69, 64, -1, 5, 32, 32, 65, 11, 66, 33, 67, 5, 68, 34, 0, 0, 0, 69, 70, -1, 5, 32, 35, 65, 11, 66, 33, 67, 5, 68, 34, 0, 0, 0, 71, 71, -1, 26, 72, 36, 73, 5, 74, 37, 75, 38, 76, 38, 77, 0, 78, 39, 79, 40, 80, 8, 81, 41, 82, 42, 83, 43, 84, 8, 85, 8, 86, 44, 87, 8, 88, 8, 89, 8, 90, 8, 91, 43, 92, 23, 93, 8, 94, 7, 95, 8, 96, 7, 97, 45, 0, 0, 0, 107, 98, -1, 8, 99, 8, 100, 7, 101, 7, 102, 46, 103, 7, 104, 47, 105, 48, 106, 8, 0 </int_array> <string> "variants" </string> - <array len="48" shared="false"> + <array len="49" shared="false"> <bool> False </bool> <resource resource_type="Shape2D" path="local://1"> </resource> <matrix32> 1, -0, 0, 1, -1.08072, -2.16144 </matrix32> @@ -449,8 +456,8 @@ <rect2> -10, -10, 20, 20 </rect2> <node_path> ".." </node_path> <resource resource_type="Animation" path="local://2"> </resource> - <resource resource_type="Animation" path="local://4"> </resource> <resource resource_type="Animation" path="local://3"> </resource> + <resource resource_type="Animation" path="local://4"> </resource> <real> 3 </real> <array len="0" shared="false"> </array> @@ -463,6 +470,7 @@ <vector2> -12.495, 3.53415 </vector2> <vector2> -33.2868, -9.34363 </vector2> <vector2> 0, 45 </vector2> + <int> 15 </int> <vector2> 29.1987, -9.34363 </vector2> <real> 0.121212 </real> <int> 32 </int> @@ -479,7 +487,7 @@ <resource resource_type="SampleLibrary" path="local://5"> </resource> </array> <string> "version" </string> - <int> 1 </int> + <int> 2 </int> </dictionary> </main_resource> |