diff options
Diffstat (limited to 'demos/2d/platformer')
45 files changed, 0 insertions, 4077 deletions
diff --git a/demos/2d/platformer/bullet.gd b/demos/2d/platformer/bullet.gd deleted file mode 100644 index 3aee69714e..0000000000 --- a/demos/2d/platformer/bullet.gd +++ /dev/null @@ -1,16 +0,0 @@ - -extends RigidBody2D - -# Member variables -var disabled = false - - -func disable(): - if (disabled): - return - get_node("anim").play("shutdown") - disabled = true - - -func _ready(): - get_node("Timer").start() diff --git a/demos/2d/platformer/bullet.png b/demos/2d/platformer/bullet.png Binary files differdeleted file mode 100644 index 5c722219ec..0000000000 --- a/demos/2d/platformer/bullet.png +++ /dev/null diff --git a/demos/2d/platformer/bullet.xml b/demos/2d/platformer/bullet.xml deleted file mode 100644 index 63938581ad..0000000000 --- a/demos/2d/platformer/bullet.xml +++ /dev/null @@ -1,333 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<resource_file type="PackedScene" subresource_count="6" version="2.0" version_name="Godot Engine v2.0.alpha.custom_build"> - <ext_resource path="res://bullet.png" type="Texture" index="1"></ext_resource> - <ext_resource path="res://bullet.gd" type="Script" index="0"></ext_resource> - <resource type="CircleShape2D" path="local://1"> - <real name="custom_solver_bias"> 0 </real> - <real name="radius"> 10 </real> - - </resource> - <resource type="ColorRamp" path="local://3"> - <real_array name="offsets" len="2"> 0, 1 </real_array> - <color_array name="colors" len="2"> 1, 1, 1, 1, 1, 0, 0, 0 </color_array> - - </resource> - <resource type="Animation" path="local://2"> - <string name="resource/name"> "shutdown" </string> - <real name="length"> 1.5 </real> - <bool name="loop"> False </bool> - <real name="step"> 0 </real> - <string name="tracks/0/type"> "value" </string> - <node_path name="tracks/0/path"> "particles:config/emitting" </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="1"> 0 </real_array> - <string> "transitions" </string> - <real_array len="1"> 1 </real_array> - <string> "values" </string> - <array len="1" shared="false"> - <bool> False </bool> - </array> - </dictionary> - <string name="tracks/1/type"> "value" </string> - <node_path name="tracks/1/path"> "sprite:visibility/self_opacity" </node_path> - <int name="tracks/1/interp"> 1 </int> - <dictionary name="tracks/1/keys" shared="false"> - <string> "cont" </string> - <bool> True </bool> - <string> "times" </string> - <real_array len="2"> 0, 1.00394 </real_array> - <string> "transitions" </string> - <real_array len="2"> 1, 1 </real_array> - <string> "values" </string> - <array len="2" shared="false"> - <real> 1 </real> - <real> 0 </real> - </array> - </dictionary> - <string name="tracks/2/type"> "method" </string> - <node_path name="tracks/2/path"> "." </node_path> - <int name="tracks/2/interp"> 1 </int> - <dictionary name="tracks/2/keys" shared="false"> - <string> "times" </string> - <real_array len="1"> 1.31 </real_array> - <string> "transitions" </string> - <real_array len="1"> 1 </real_array> - <string> "values" </string> - <array len="1" shared="false"> - <dictionary shared="false"> - <string> "args" </string> - <array len="0" shared="false"> - </array> - <string> "method" </string> - <string> "queue_free" </string> - </dictionary> - </array> - </dictionary> - - </resource> - <main_resource> - <dictionary name="_bundled" shared="false"> - <string> "conn_count" </string> - <int> 1 </int> - <string> "conns" </string> - <int_array len="6"> 4, 0, 73, 72, 2, 0 </int_array> - <string> "editable_instances" </string> - <array len="0" shared="false"> - </array> - <string> "names" </string> - <string_array len="74"> - <string> "bullet" </string> - <string> "input/pickable" </string> - <string> "shapes/0/shape" </string> - <string> "shapes/0/transform" </string> - <string> "shapes/0/trigger" </string> - <string> "collision/layers" </string> - <string> "collision/mask" </string> - <string> "mode" </string> - <string> "mass" </string> - <string> "friction" </string> - <string> "bounce" </string> - <string> "gravity_scale" </string> - <string> "custom_integrator" </string> - <string> "continuous_cd" </string> - <string> "contacts_reported" </string> - <string> "contact_monitor" </string> - <string> "sleeping" </string> - <string> "can_sleep" </string> - <string> "velocity/linear" </string> - <string> "velocity/angular" </string> - <string> "damp_override/linear" </string> - <string> "damp_override/angular" </string> - <string> "script/script" </string> - <string> "__meta__" </string> - <string> "RigidBody2D" </string> - <string> "particles" </string> - <string> "visibility/opacity" </string> - <string> "visibility/blend_mode" </string> - <string> "config/amount" </string> - <string> "config/lifetime" </string> - <string> "config/local_space" </string> - <string> "config/texture" </string> - <string> "params/direction" </string> - <string> "params/spread" </string> - <string> "params/linear_velocity" </string> - <string> "params/spin_velocity" </string> - <string> "params/orbit_velocity" </string> - <string> "params/gravity_direction" </string> - <string> "params/gravity_strength" </string> - <string> "params/radial_accel" </string> - <string> "params/tangential_accel" </string> - <string> "params/damping" </string> - <string> "params/initial_angle" </string> - <string> "params/initial_size" </string> - <string> "params/final_size" </string> - <string> "params/hue_variation" </string> - <string> "params/anim_speed_scale" </string> - <string> "params/anim_initial_pos" </string> - <string> "color/color_ramp" </string> - <string> "Particles2D" </string> - <string> "sprite" </string> - <string> "texture" </string> - <string> "Sprite" </string> - <string> "CollisionShape2D" </string> - <string> "shape" </string> - <string> "trigger" </string> - <string> "_update_shape_index" </string> - <string> "Timer" </string> - <string> "process_mode" </string> - <string> "wait_time" </string> - <string> "one_shot" </string> - <string> "autostart" </string> - <string> "anim" </string> - <string> "playback/process_mode" </string> - <string> "playback/default_blend_time" </string> - <string> "root/root" </string> - <string> "anims/shutdown" </string> - <string> "playback/active" </string> - <string> "playback/speed" </string> - <string> "blend_times" </string> - <string> "autoplay" </string> - <string> "AnimationPlayer" </string> - <string> "disable" </string> - <string> "timeout" </string> - </string_array> - <string> "node_count" </string> - <int> 6 </int> - <string> "node_paths" </string> - <array len="0" shared="false"> - </array> - <string> "nodes" </string> - <int_array len="166"> -1, -1, 24, 0, -1, 23, 1, 0, 2, 1, 3, 2, 4, 0, 5, 3, 6, 3, 7, 4, 8, 5, 9, 5, 10, 6, 11, 5, 12, 0, 13, 7, 14, 4, 15, 0, 16, 0, 17, 8, 18, 9, 19, 6, 20, 10, 21, 10, 22, 11, 23, 12, 0, 0, 0, 49, 25, -1, 23, 26, 13, 27, 3, 28, 14, 29, 15, 30, 0, 31, 16, 32, 6, 33, 17, 34, 6, 35, 6, 36, 6, 37, 6, 38, 6, 39, 6, 40, 6, 41, 6, 42, 6, 43, 5, 44, 6, 45, 6, 46, 5, 47, 6, 48, 18, 0, 0, 0, 52, 50, -1, 1, 51, 16, 0, 0, 0, 53, 53, -1, 3, 54, 1, 55, 0, 56, 19, 0, 0, 0, 57, 57, -1, 4, 58, 3, 59, 5, 60, 8, 61, 0, 0, 0, 0, 71, 62, -1, 8, 63, 3, 64, 6, 65, 20, 66, 21, 67, 8, 68, 5, 69, 22, 70, 23, 0 </int_array> - <string> "variants" </string> - <array len="24" shared="false"> - <bool> False </bool> - <resource resource_type="Shape2D" path="local://1"> </resource> - <matrix32> 1, 0, 0, 1, 0, 0 </matrix32> - <int> 1 </int> - <int> 0 </int> - <real> 1 </real> - <real> 0 </real> - <int> 2 </int> - <bool> True </bool> - <vector2> 0, 0 </vector2> - <real> -1 </real> - <resource external="0"> </resource> - <dictionary shared="false"> - <string> "__editor_plugin_screen__" </string> - <string> "2D" </string> - <string> "__editor_plugin_states__" </string> - <dictionary shared="false"> - <string> "2D" </string> - <dictionary shared="false"> - <string> "ofs" </string> - <vector2> -74.7573, -35.9676 </vector2> - <string> "snap_grid" </string> - <bool> False </bool> - <string> "snap_offset" </string> - <vector2> 0, 0 </vector2> - <string> "snap_pixel" </string> - <bool> False </bool> - <string> "snap_relative" </string> - <bool> False </bool> - <string> "snap_rotation" </string> - <bool> False </bool> - <string> "snap_rotation_offset" </string> - <real> 0 </real> - <string> "snap_rotation_step" </string> - <real> 0.261799 </real> - <string> "snap_show_grid" </string> - <bool> False </bool> - <string> "snap_step" </string> - <vector2> 10, 10 </vector2> - <string> "zoom" </string> - <real> 3.424785 </real> - </dictionary> - <string> "3D" </string> - <dictionary shared="false"> - <string> "ambient_light_color" </string> - <color> 0.15, 0.15, 0.15, 1 </color> - <string> "default_light" </string> - <bool> True </bool> - <string> "default_srgb" </string> - <bool> False </bool> - <string> "deflight_rot_x" </string> - <real> 0.942478 </real> - <string> "deflight_rot_y" </string> - <real> 0.628319 </real> - <string> "fov" </string> - <real> 45 </real> - <string> "show_grid" </string> - <bool> True </bool> - <string> "show_origin" </string> - <bool> True </bool> - <string> "viewport_mode" </string> - <int> 1 </int> - <string> "viewports" </string> - <array len="4" shared="false"> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> True </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - </array> - <string> "zfar" </string> - <real> 500 </real> - <string> "znear" </string> - <real> 0.1 </real> - </dictionary> - <string> "Anim" </string> - <dictionary shared="false"> - <string> "visible" </string> - <bool> False </bool> - </dictionary> - </dictionary> - <string> "__editor_run_settings__" </string> - <dictionary shared="false"> - <string> "custom_args" </string> - <string> "-l $scene" </string> - <string> "run_mode" </string> - <int> 0 </int> - </dictionary> - </dictionary> - <real> 0.559322 </real> - <int> 24 </int> - <real> 0.1 </real> - <resource external="1"> </resource> - <real> 10 </real> - <resource resource_type="ColorRamp" path="local://3"> </resource> - <int> -1 </int> - <node_path> ".." </node_path> - <resource resource_type="Animation" path="local://2"> </resource> - <array len="0" shared="false"> - </array> - <string> "" </string> - </array> - <string> "version" </string> - <int> 2 </int> - </dictionary> - - </main_resource> -</resource_file>
\ No newline at end of file diff --git a/demos/2d/platformer/coin.gd b/demos/2d/platformer/coin.gd deleted file mode 100644 index 1118732707..0000000000 --- a/demos/2d/platformer/coin.gd +++ /dev/null @@ -1,19 +0,0 @@ - -extends Area2D - -# Member variables -var taken = false - - -func _on_body_enter( body ): - if (not taken and body extends preload("res://player.gd")): - get_node("anim").play("taken") - taken = true - - -func _on_coin_area_enter(area): - pass # replace with function body - - -func _on_coin_area_enter_shape(area_id, area, area_shape, area_shape): - pass # replace with function body diff --git a/demos/2d/platformer/coin.png b/demos/2d/platformer/coin.png Binary files differdeleted file mode 100644 index c35c5ebf28..0000000000 --- a/demos/2d/platformer/coin.png +++ /dev/null diff --git a/demos/2d/platformer/coin.xml b/demos/2d/platformer/coin.xml deleted file mode 100644 index f33a63bd57..0000000000 --- a/demos/2d/platformer/coin.xml +++ /dev/null @@ -1,430 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<resource_file type="PackedScene" subresource_count="10" version="2.0" version_name="Godot Engine v2.0.alpha.custom_build"> - <ext_resource path="res://bullet.png" type="Texture" index="3"></ext_resource> - <ext_resource path="res://coin.png" type="Texture" index="1"></ext_resource> - <ext_resource path="res://sound_coin.wav" type="Sample" index="2"></ext_resource> - <ext_resource path="res://coin.gd" type="Script" index="0"></ext_resource> - <resource type="CircleShape2D" path="local://1"> - <real name="custom_solver_bias"> 0 </real> - <real name="radius"> 10 </real> - - </resource> - <resource type="Animation" path="local://2"> - <string name="resource/name"> "taken" </string> - <real name="length"> 8 </real> - <bool name="loop"> False </bool> - <real name="step"> 0 </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> True </bool> - <string> "times" </string> - <real_array len="1"> 0 </real_array> - <string> "transitions" </string> - <real_array len="1"> 1 </real_array> - <string> "values" </string> - <array len="1" shared="false"> - <int> 0 </int> - </array> - </dictionary> - <string name="tracks/1/type"> "value" </string> - <node_path name="tracks/1/path"> "sound:play/play" </node_path> - <int name="tracks/1/interp"> 1 </int> - <dictionary name="tracks/1/keys" shared="false"> - <string> "cont" </string> - <bool> False </bool> - <string> "times" </string> - <real_array len="1"> 0 </real_array> - <string> "transitions" </string> - <real_array len="1"> 1 </real_array> - <string> "values" </string> - <array len="1" shared="false"> - <string> "coin" </string> - </array> - </dictionary> - <string name="tracks/2/type"> "value" </string> - <node_path name="tracks/2/path"> "particles:visibility/self_opacity" </node_path> - <int name="tracks/2/interp"> 1 </int> - <dictionary name="tracks/2/keys" shared="false"> - <string> "cont" </string> - <bool> True </bool> - <string> "times" </string> - <real_array len="2"> 0, 1.66 </real_array> - <string> "transitions" </string> - <real_array len="2"> 1, 1 </real_array> - <string> "values" </string> - <array len="2" shared="false"> - <real> 1 </real> - <real> 0 </real> - </array> - </dictionary> - <string name="tracks/3/type"> "value" </string> - <node_path name="tracks/3/path"> "sprite:visibility/self_opacity" </node_path> - <int name="tracks/3/interp"> 1 </int> - <dictionary name="tracks/3/keys" shared="false"> - <string> "cont" </string> - <bool> True </bool> - <string> "times" </string> - <real_array len="2"> 0, 0.4 </real_array> - <string> "transitions" </string> - <real_array len="2"> 1, 1 </real_array> - <string> "values" </string> - <array len="2" shared="false"> - <real> 1 </real> - <real> 0 </real> - </array> - </dictionary> - <string name="tracks/4/type"> "value" </string> - <node_path name="tracks/4/path"> "particles:config/emitting" </node_path> - <int name="tracks/4/interp"> 1 </int> - <dictionary name="tracks/4/keys" shared="false"> - <string> "cont" </string> - <bool> False </bool> - <string> "times" </string> - <real_array len="1"> 0 </real_array> - <string> "transitions" </string> - <real_array len="1"> 1 </real_array> - <string> "values" </string> - <array len="1" shared="false"> - <bool> True </bool> - </array> - </dictionary> - <string name="tracks/5/type"> "method" </string> - <node_path name="tracks/5/path"> "." </node_path> - <int name="tracks/5/interp"> 1 </int> - <dictionary name="tracks/5/keys" shared="false"> - <string> "times" </string> - <real_array len="1"> 2.7 </real_array> - <string> "transitions" </string> - <real_array len="1"> 1 </real_array> - <string> "values" </string> - <array len="1" shared="false"> - <dictionary shared="false"> - <string> "args" </string> - <array len="0" shared="false"> - </array> - <string> "method" </string> - <string> "queue_free" </string> - </dictionary> - </array> - </dictionary> - - </resource> - <resource type="Animation" path="local://3"> - <string name="resource/name"> "spin" </string> - <real name="length"> 1.5 </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="7"> 0, 0.25, 0.5, 0.75, 1, 1.25, 1.5 </real_array> - <string> "transitions" </string> - <real_array len="7"> 1, 1, 1, 1, 1, 1, 1 </real_array> - <string> "values" </string> - <array len="7" shared="false"> - <int> 0 </int> - <int> 1 </int> - <int> 2 </int> - <int> 3 </int> - <int> 2 </int> - <int> 1 </int> - <int> 0 </int> - </array> - </dictionary> - - </resource> - <resource type="SampleLibrary" path="local://4"> - <dictionary name="samples/coin" shared="false"> - <string> "db" </string> - <real> 0 </real> - <string> "pitch" </string> - <real> 1 </real> - <string> "sample" </string> - <resource external="2"> </resource> - </dictionary> - - </resource> - <resource type="ColorRamp" path="local://5"> - <real_array name="offsets" len="2"> 0, 1 </real_array> - <color_array name="colors" len="2"> 1, 1, 1, 1, 0, 0, 0, 1 </color_array> - - </resource> - <main_resource> - <dictionary name="_bundled" shared="false"> - <string> "conn_count" </string> - <int> 1 </int> - <string> "conns" </string> - <int_array len="6"> 0, 0, 76, 75, 2, 0 </int_array> - <string> "editable_instances" </string> - <array len="0" shared="false"> - </array> - <string> "names" </string> - <string_array len="77"> - <string> "coin" </string> - <string> "input/pickable" </string> - <string> "shapes/0/shape" </string> - <string> "shapes/0/transform" </string> - <string> "shapes/0/trigger" </string> - <string> "gravity_vec" </string> - <string> "gravity" </string> - <string> "linear_damp" </string> - <string> "angular_damp" </string> - <string> "script/script" </string> - <string> "__meta__" </string> - <string> "Area2D" </string> - <string> "sprite" </string> - <string> "texture" </string> - <string> "hframes" </string> - <string> "Sprite" </string> - <string> "anim" </string> - <string> "playback/process_mode" </string> - <string> "playback/default_blend_time" </string> - <string> "root/root" </string> - <string> "anims/taken" </string> - <string> "anims/spin" </string> - <string> "playback/active" </string> - <string> "playback/speed" </string> - <string> "blend_times" </string> - <string> "autoplay" </string> - <string> "AnimationPlayer" </string> - <string> "collision" </string> - <string> "shape" </string> - <string> "trigger" </string> - <string> "_update_shape_index" </string> - <string> "CollisionShape2D" </string> - <string> "sound" </string> - <string> "params/volume_db" </string> - <string> "params/pitch_scale" </string> - <string> "params/attenuation/min_distance" </string> - <string> "params/attenuation/max_distance" </string> - <string> "params/attenuation/distance_exp" </string> - <string> "config/polyphony" </string> - <string> "config/samples" </string> - <string> "config/pitch_random" </string> - <string> "SamplePlayer2D" </string> - <string> "particles" </string> - <string> "visibility/blend_mode" </string> - <string> "config/amount" </string> - <string> "config/lifetime" </string> - <string> "config/emitting" </string> - <string> "config/half_extents" </string> - <string> "config/texture" </string> - <string> "params/direction" </string> - <string> "params/spread" </string> - <string> "params/linear_velocity" </string> - <string> "params/spin_velocity" </string> - <string> "params/orbit_velocity" </string> - <string> "params/gravity_direction" </string> - <string> "params/gravity_strength" </string> - <string> "params/radial_accel" </string> - <string> "params/tangential_accel" </string> - <string> "params/damping" </string> - <string> "params/initial_angle" </string> - <string> "params/initial_size" </string> - <string> "params/final_size" </string> - <string> "params/hue_variation" </string> - <string> "params/anim_speed_scale" </string> - <string> "params/anim_initial_pos" </string> - <string> "color/color_ramp" </string> - <string> "Particles2D" </string> - <string> "enabler" </string> - <string> "rect" </string> - <string> "enabler/pause_animations" </string> - <string> "enabler/freeze_bodies" </string> - <string> "enabler/pause_particles" </string> - <string> "enabler/process_parent" </string> - <string> "enabler/fixed_process_parent" </string> - <string> "VisibilityEnabler2D" </string> - <string> "_on_body_enter" </string> - <string> "body_enter" </string> - </string_array> - <string> "node_count" </string> - <int> 7 </int> - <string> "node_paths" </string> - <array len="0" shared="false"> - </array> - <string> "nodes" </string> - <int_array len="171"> -1, -1, 11, 0, -1, 10, 1, 0, 2, 1, 3, 2, 4, 3, 5, 4, 6, 5, 7, 6, 8, 7, 9, 8, 10, 9, 0, 0, 0, 15, 12, -1, 2, 13, 10, 14, 11, 0, 0, 0, 26, 16, -1, 9, 17, 12, 18, 13, 19, 14, 20, 15, 21, 16, 22, 0, 23, 17, 24, 18, 25, 19, 0, 0, 0, 31, 27, -1, 3, 28, 1, 29, 3, 30, 20, 0, 0, 0, 41, 32, -1, 8, 33, 13, 34, 7, 35, 7, 36, 21, 37, 7, 38, 12, 39, 22, 40, 13, 0, 0, 0, 66, 42, -1, 23, 43, 12, 44, 23, 45, 24, 46, 3, 47, 25, 48, 26, 49, 13, 50, 27, 51, 13, 52, 13, 53, 13, 54, 13, 55, 13, 56, 13, 57, 13, 58, 13, 59, 13, 60, 28, 61, 28, 62, 13, 63, 7, 64, 13, 65, 29, 0, 0, 0, 74, 67, -1, 6, 68, 30, 69, 0, 70, 0, 71, 0, 72, 3, 73, 3, 0 </int_array> - <string> "variants" </string> - <array len="31" shared="false"> - <bool> True </bool> - <resource resource_type="Shape2D" path="local://1"> </resource> - <matrix32> 1, 0, 0, 1, 0, 0 </matrix32> - <bool> False </bool> - <vector2> 0, 1 </vector2> - <real> 98 </real> - <real> 0.1 </real> - <real> 1 </real> - <resource external="0"> </resource> - <dictionary shared="false"> - <string> "__editor_plugin_screen__" </string> - <string> "2D" </string> - <string> "__editor_plugin_states__" </string> - <dictionary shared="false"> - <string> "2D" </string> - <dictionary shared="false"> - <string> "ofs" </string> - <vector2> -34.3697, -21.6562 </vector2> - <string> "snap_grid" </string> - <bool> False </bool> - <string> "snap_offset" </string> - <vector2> 0, 0 </vector2> - <string> "snap_pixel" </string> - <bool> False </bool> - <string> "snap_relative" </string> - <bool> False </bool> - <string> "snap_rotation" </string> - <bool> False </bool> - <string> "snap_rotation_offset" </string> - <real> 0 </real> - <string> "snap_rotation_step" </string> - <real> 0.261799 </real> - <string> "snap_show_grid" </string> - <bool> False </bool> - <string> "snap_step" </string> - <vector2> 10, 10 </vector2> - <string> "zoom" </string> - <real> 3.794776 </real> - </dictionary> - <string> "3D" </string> - <dictionary shared="false"> - <string> "ambient_light_color" </string> - <color> 0.15, 0.15, 0.15, 1 </color> - <string> "default_light" </string> - <bool> True </bool> - <string> "default_srgb" </string> - <bool> False </bool> - <string> "deflight_rot_x" </string> - <real> 0.942478 </real> - <string> "deflight_rot_y" </string> - <real> 0.628319 </real> - <string> "fov" </string> - <real> 45 </real> - <string> "show_grid" </string> - <bool> True </bool> - <string> "show_origin" </string> - <bool> True </bool> - <string> "viewport_mode" </string> - <int> 1 </int> - <string> "viewports" </string> - <array len="4" shared="false"> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> True </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - </array> - <string> "zfar" </string> - <real> 500 </real> - <string> "znear" </string> - <real> 0.1 </real> - </dictionary> - <string> "Anim" </string> - <dictionary shared="false"> - <string> "visible" </string> - <bool> False </bool> - </dictionary> - </dictionary> - <string> "__editor_run_settings__" </string> - <dictionary shared="false"> - <string> "custom_args" </string> - <string> "-l $scene" </string> - <string> "run_mode" </string> - <int> 0 </int> - </dictionary> - </dictionary> - <resource external="1"> </resource> - <int> 4 </int> - <int> 1 </int> - <real> 0 </real> - <node_path> ".." </node_path> - <resource resource_type="Animation" path="local://2"> </resource> - <resource resource_type="Animation" path="local://3"> </resource> - <real> 3 </real> - <array len="0" shared="false"> - </array> - <string> "spin" </string> - <int> -1 </int> - <real> 2048 </real> - <resource resource_type="SampleLibrary" path="local://4"> </resource> - <int> 8 </int> - <real> 0.4 </real> - <vector2> 5, 5 </vector2> - <resource external="3"> </resource> - <real> 10 </real> - <real> 0.2 </real> - <resource resource_type="ColorRamp" path="local://5"> </resource> - <rect2> -10, -10, 20, 20 </rect2> - </array> - <string> "version" </string> - <int> 2 </int> - </dictionary> - - </main_resource> -</resource_file>
\ No newline at end of file diff --git a/demos/2d/platformer/enemy.gd b/demos/2d/platformer/enemy.gd deleted file mode 100644 index 5a4d8af579..0000000000 --- a/demos/2d/platformer/enemy.gd +++ /dev/null @@ -1,83 +0,0 @@ - -extends RigidBody2D - -# Member variables -const STATE_WALKING = 0 -const STATE_DYING = 1 - -var state = STATE_WALKING - -var direction = -1 -var anim = "" - -var rc_left = null -var rc_right = null -var WALK_SPEED = 50 - -var bullet_class = preload("res://bullet.gd") - - -func _die(): - queue_free() - - -func _pre_explode(): - # Stay there - clear_shapes() - set_mode(MODE_STATIC) - get_node("sound").play("explode") - - -func _integrate_forces(s): - var lv = s.get_linear_velocity() - var new_anim = anim - - if (state == STATE_DYING): - new_anim = "explode" - elif (state == STATE_WALKING): - new_anim = "walk" - - var wall_side = 0.0 - - for i in range(s.get_contact_count()): - var cc = s.get_contact_collider_object(i) - var dp = s.get_contact_local_normal(i) - - if (cc): - if (cc extends bullet_class and not cc.disabled): - set_mode(MODE_RIGID) - state = STATE_DYING - #lv = s.get_contact_local_normal(i)*400 - s.set_angular_velocity(sign(dp.x)*33.0) - set_friction(1) - cc.disable() - get_node("sound").play("hit") - break - - if (dp.x > 0.9): - wall_side = 1.0 - elif (dp.x < -0.9): - wall_side = -1.0 - - if (wall_side != 0 and wall_side != direction): - direction = -direction - get_node("sprite").set_scale(Vector2(-direction, 1)) - if (direction < 0 and not rc_left.is_colliding() and rc_right.is_colliding()): - direction = -direction - get_node("sprite").set_scale(Vector2(-direction, 1)) - elif (direction > 0 and not rc_right.is_colliding() and rc_left.is_colliding()): - direction = -direction - get_node("sprite").set_scale(Vector2(-direction, 1)) - - lv.x = direction*WALK_SPEED - - if(anim != new_anim): - anim = new_anim - get_node("anim").play(anim) - - s.set_linear_velocity(lv) - - -func _ready(): - rc_left = get_node("raycast_left") - rc_right = get_node("raycast_right") diff --git a/demos/2d/platformer/enemy.png b/demos/2d/platformer/enemy.png Binary files differdeleted file mode 100644 index 37fe468b0f..0000000000 --- a/demos/2d/platformer/enemy.png +++ /dev/null diff --git a/demos/2d/platformer/enemy.xml b/demos/2d/platformer/enemy.xml deleted file mode 100644 index 72d2ff068e..0000000000 --- a/demos/2d/platformer/enemy.xml +++ /dev/null @@ -1,494 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<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://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> - - </resource> - <resource type="Animation" path="local://2"> - <string name="resource/name"> "idle" </string> - <real name="length"> 6.75 </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="10"> 0, 0.75, 1.5, 2.25, 3, 3.75, 4.5, 5.25, 6, 6.75 </real_array> - <string> "transitions" </string> - <real_array len="10"> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 </real_array> - <string> "values" </string> - <array len="10" shared="false"> - <int> 5 </int> - <int> 6 </int> - <int> 5 </int> - <int> 6 </int> - <int> 5 </int> - <int> 6 </int> - <int> 7 </int> - <int> 6 </int> - <int> 7 </int> - <int> 5 </int> - </array> - </dictionary> - - </resource> - <resource type="Animation" path="local://3"> - <string name="resource/name"> "explode" </string> - <real name="length"> 6 </real> - <bool name="loop"> False </bool> - <real name="step"> 0 </real> - <string name="tracks/0/type"> "value" </string> - <node_path name="tracks/0/path"> "sprite:visibility/self_opacity" </node_path> - <int name="tracks/0/interp"> 1 </int> - <dictionary name="tracks/0/keys" shared="false"> - <string> "cont" </string> - <bool> True </bool> - <string> "times" </string> - <real_array len="2"> 3.58422, 4.33851 </real_array> - <string> "transitions" </string> - <real_array len="2"> 1, 1 </real_array> - <string> "values" </string> - <array len="2" shared="false"> - <real> 1 </real> - <real> 0 </real> - </array> - </dictionary> - <string name="tracks/1/type"> "value" </string> - <node_path name="tracks/1/path"> "sprite:frame" </node_path> - <int name="tracks/1/interp"> 1 </int> - <dictionary name="tracks/1/keys" shared="false"> - <string> "cont" </string> - <bool> True </bool> - <string> "times" </string> - <real_array len="1"> 0 </real_array> - <string> "transitions" </string> - <real_array len="1"> 1 </real_array> - <string> "values" </string> - <array len="1" shared="false"> - <int> 4 </int> - </array> - </dictionary> - <string name="tracks/2/type"> "value" </string> - <node_path name="tracks/2/path"> "Particles2D:config/emitting" </node_path> - <int name="tracks/2/interp"> 1 </int> - <dictionary name="tracks/2/keys" shared="false"> - <string> "cont" </string> - <bool> False </bool> - <string> "times" </string> - <real_array len="1"> 3.47394 </real_array> - <string> "transitions" </string> - <real_array len="1"> 1 </real_array> - <string> "values" </string> - <array len="1" shared="false"> - <bool> True </bool> - </array> - </dictionary> - <string name="tracks/3/type"> "method" </string> - <node_path name="tracks/3/path"> "." </node_path> - <int name="tracks/3/interp"> 1 </int> - <dictionary name="tracks/3/keys" shared="false"> - <string> "times" </string> - <real_array len="2"> 3.20357, 5.07305 </real_array> - <string> "transitions" </string> - <real_array len="2"> 1, 1 </real_array> - <string> "values" </string> - <array len="2" shared="false"> - <dictionary shared="false"> - <string> "args" </string> - <array len="0" shared="false"> - </array> - <string> "method" </string> - <string> "_pre_explode" </string> - </dictionary> - <dictionary shared="false"> - <string> "args" </string> - <array len="0" shared="false"> - </array> - <string> "method" </string> - <string> "_die" </string> - </dictionary> - </array> - </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/hit" shared="false"> - <string> "db" </string> - <real> 0 </real> - <string> "pitch" </string> - <real> 1 </real> - <string> "sample" </string> - <resource external="4"> </resource> - </dictionary> - <dictionary name="samples/explode" shared="false"> - <string> "db" </string> - <real> 0 </real> - <string> "pitch" </string> - <real> 1 </real> - <string> "sample" </string> - <resource external="3"> </resource> - </dictionary> - - </resource> - <main_resource> - <dictionary name="_bundled" shared="false"> - <string> "conn_count" </string> - <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="108"> - <string> "enemy" </string> - <string> "input/pickable" </string> - <string> "shapes/0/shape" </string> - <string> "shapes/0/transform" </string> - <string> "shapes/0/trigger" </string> - <string> "shapes/1/shape" </string> - <string> "shapes/1/transform" </string> - <string> "shapes/1/trigger" </string> - <string> "shapes/2/shape" </string> - <string> "shapes/2/transform" </string> - <string> "shapes/2/trigger" </string> - <string> "collision/layers" </string> - <string> "collision/mask" </string> - <string> "mode" </string> - <string> "mass" </string> - <string> "friction" </string> - <string> "bounce" </string> - <string> "gravity_scale" </string> - <string> "custom_integrator" </string> - <string> "continuous_cd" </string> - <string> "contacts_reported" </string> - <string> "contact_monitor" </string> - <string> "sleeping" </string> - <string> "can_sleep" </string> - <string> "velocity/linear" </string> - <string> "velocity/angular" </string> - <string> "damp_override/linear" </string> - <string> "damp_override/angular" </string> - <string> "script/script" </string> - <string> "__meta__" </string> - <string> "RigidBody2D" </string> - <string> "enabler" </string> - <string> "transform/pos" </string> - <string> "transform/scale" </string> - <string> "rect" </string> - <string> "enabler/pause_animations" </string> - <string> "enabler/freeze_bodies" </string> - <string> "enabler/pause_particles" </string> - <string> "enabler/process_parent" </string> - <string> "enabler/fixed_process_parent" </string> - <string> "VisibilityEnabler2D" </string> - <string> "anim" </string> - <string> "playback/process_mode" </string> - <string> "playback/default_blend_time" </string> - <string> "root/root" </string> - <string> "anims/idle" </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> "texture" </string> - <string> "hframes" </string> - <string> "frame" </string> - <string> "Sprite" </string> - <string> "CollisionShape2D" </string> - <string> "shape" </string> - <string> "trigger" </string> - <string> "_update_shape_index" </string> - <string> "CollisionShape2D 2" </string> - <string> "CollisionShape2D 3" </string> - <string> "raycast_left" </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> - <string> "visibility/blend_mode" </string> - <string> "config/amount" </string> - <string> "config/lifetime" </string> - <string> "config/emit_timeout" </string> - <string> "config/emitting" </string> - <string> "config/explosiveness" </string> - <string> "config/texture" </string> - <string> "params/direction" </string> - <string> "params/spread" </string> - <string> "params/linear_velocity" </string> - <string> "params/spin_velocity" </string> - <string> "params/orbit_velocity" </string> - <string> "params/gravity_direction" </string> - <string> "params/gravity_strength" </string> - <string> "params/radial_accel" </string> - <string> "params/tangential_accel" </string> - <string> "params/damping" </string> - <string> "params/initial_angle" </string> - <string> "params/initial_size" </string> - <string> "params/final_size" </string> - <string> "params/hue_variation" </string> - <string> "params/anim_speed_scale" </string> - <string> "params/anim_initial_pos" </string> - <string> "randomness/spin_velocity" </string> - <string> "color/color_ramp" </string> - <string> "sound" </string> - <string> "params/volume_db" </string> - <string> "params/pitch_scale" </string> - <string> "params/attenuation/min_distance" </string> - <string> "params/attenuation/max_distance" </string> - <string> "params/attenuation/distance_exp" </string> - <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="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="49" shared="false"> - <bool> False </bool> - <resource resource_type="Shape2D" path="local://1"> </resource> - <matrix32> 1, -0, 0, 1, -1.08072, -2.16144 </matrix32> - <matrix32> 1, -0, 0, 1, 6.48431, 3.24216 </matrix32> - <matrix32> 1, -0, 0, 1, -12.495, 3.53415 </matrix32> - <int> 1 </int> - <int> 2 </int> - <real> 1 </real> - <real> 0 </real> - <int> 0 </int> - <int> 4 </int> - <bool> True </bool> - <vector2> 0, 0 </vector2> - <real> -1 </real> - <resource external="0"> </resource> - <dictionary shared="false"> - <string> "__editor_plugin_screen__" </string> - <string> "2D" </string> - <string> "__editor_plugin_states__" </string> - <dictionary shared="false"> - <string> "2D" </string> - <dictionary shared="false"> - <string> "ofs" </string> - <vector2> -227.625, -197.9 </vector2> - <string> "snap_grid" </string> - <bool> False </bool> - <string> "snap_offset" </string> - <vector2> 0, 0 </vector2> - <string> "snap_pixel" </string> - <bool> False </bool> - <string> "snap_relative" </string> - <bool> False </bool> - <string> "snap_rotation" </string> - <bool> False </bool> - <string> "snap_rotation_offset" </string> - <real> 0 </real> - <string> "snap_rotation_step" </string> - <real> 0.261799 </real> - <string> "snap_show_grid" </string> - <bool> False </bool> - <string> "snap_step" </string> - <vector2> 10, 10 </vector2> - <string> "zoom" </string> - <real> 1.108033 </real> - </dictionary> - <string> "3D" </string> - <dictionary shared="false"> - <string> "ambient_light_color" </string> - <color> 0.15, 0.15, 0.15, 1 </color> - <string> "default_light" </string> - <bool> True </bool> - <string> "default_srgb" </string> - <bool> False </bool> - <string> "deflight_rot_x" </string> - <real> 0.942478 </real> - <string> "deflight_rot_y" </string> - <real> 0.628319 </real> - <string> "fov" </string> - <real> 45 </real> - <string> "show_grid" </string> - <bool> True </bool> - <string> "show_origin" </string> - <bool> True </bool> - <string> "viewport_mode" </string> - <int> 1 </int> - <string> "viewports" </string> - <array len="4" shared="false"> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> True </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - </array> - <string> "zfar" </string> - <real> 500 </real> - <string> "znear" </string> - <real> 0.1 </real> - </dictionary> - <string> "Anim" </string> - <dictionary shared="false"> - <string> "visible" </string> - <bool> False </bool> - </dictionary> - </dictionary> - <string> "__editor_run_settings__" </string> - <dictionary shared="false"> - <string> "custom_args" </string> - <string> "-l $scene" </string> - <string> "run_mode" </string> - <int> 0 </int> - </dictionary> - </dictionary> - <vector2> 16.2569, 11.0034 </vector2> - <vector2> 23.5056, 10.8629 </vector2> - <rect2> -10, -10, 20, 20 </rect2> - <node_path> ".." </node_path> - <resource resource_type="Animation" path="local://2"> </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> - <string> "" </string> - <resource external="1"> </resource> - <int> 8 </int> - <vector2> -1.08072, -2.16144 </vector2> - <int> -1 </int> - <vector2> 6.48431, 3.24216 </vector2> - <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> - <real> 0.5 </real> - <real> 0.1 </real> - <resource external="2"> </resource> - <real> 180 </real> - <real> 90 </real> - <real> 2 </real> - <real> 9.8 </real> - <resource resource_type="ColorRamp" path="local://6"> </resource> - <real> 2048 </real> - <int> 3 </int> - <resource resource_type="SampleLibrary" path="local://5"> </resource> - </array> - <string> "version" </string> - <int> 2 </int> - </dictionary> - - </main_resource> -</resource_file>
\ No newline at end of file diff --git a/demos/2d/platformer/engine.cfg b/demos/2d/platformer/engine.cfg deleted file mode 100644 index 044d661e3e..0000000000 --- a/demos/2d/platformer/engine.cfg +++ /dev/null @@ -1,42 +0,0 @@ -[application] - -name="Platformer" -main_scene="res://stage.xml" -icon="res://icon.png" -name_es="Plataformero" -target_fps="60" - -[display] - -width=800 -height=480 -stretch_mode="2d" -stretch_aspect="keep_height" - -[image_loader] - -repeat=false - -[input] - -move_left=[key(Left), jbutton(0, 14)] -move_right=[key(Right), jbutton(0, 15)] -jump=[key(Up), jbutton(0, 0)] -shoot=[key(Space), jbutton(0, 2)] -spawn=[key(F1), jbutton(0, 11)] - -[physics_2d] - -default_gravity=700 - -[rasterizer] - -use_pixel_snap=true - -[render] - -mipmap_policy=1 - -[texture_import] - -filter=false diff --git a/demos/2d/platformer/icon.png b/demos/2d/platformer/icon.png Binary files differdeleted file mode 100644 index da2c08eb53..0000000000 --- a/demos/2d/platformer/icon.png +++ /dev/null diff --git a/demos/2d/platformer/moving_platform.gd b/demos/2d/platformer/moving_platform.gd deleted file mode 100644 index 21c312d5c3..0000000000 --- a/demos/2d/platformer/moving_platform.gd +++ /dev/null @@ -1,20 +0,0 @@ - -extends Node2D - -# Member variables -export var motion = Vector2() -export var cycle = 1.0 -var accum = 0.0 - - -func _fixed_process(delta): - accum += delta*(1.0/cycle)*PI*2.0 - accum = fmod(accum, PI*2.0) - var d = sin(accum) - var xf = Matrix32() - xf[2]= motion*d - get_node("platform").set_transform(xf) - - -func _ready(): - set_fixed_process(true) diff --git a/demos/2d/platformer/moving_platform.png b/demos/2d/platformer/moving_platform.png Binary files differdeleted file mode 100644 index f01c6ea37f..0000000000 --- a/demos/2d/platformer/moving_platform.png +++ /dev/null diff --git a/demos/2d/platformer/moving_platform.xml b/demos/2d/platformer/moving_platform.xml deleted file mode 100644 index 4b94a7af48..0000000000 --- a/demos/2d/platformer/moving_platform.xml +++ /dev/null @@ -1,224 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<resource_file type="PackedScene" subresource_count="4" version="2.0" version_name="Godot Engine v2.0.alpha.custom_build"> - <ext_resource path="res://moving_platform.png" type="Texture" index="1"></ext_resource> - <ext_resource path="res://moving_platform.gd" type="Script" index="0"></ext_resource> - <resource type="ConvexPolygonShape2D" path="local://1"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -88, 24, -88, -24, 88, -24, 88, 24 </vector2_array> - - </resource> - <main_resource> - <dictionary name="_bundled" shared="false"> - <string> "conn_count" </string> - <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="36"> - <string> "moving_platform" </string> - <string> "script/script" </string> - <string> "__meta__" </string> - <string> "motion" </string> - <string> "cycle" </string> - <string> "Node2D" </string> - <string> "platform" </string> - <string> "input/pickable" </string> - <string> "shapes/0/shape" </string> - <string> "shapes/0/transform" </string> - <string> "shapes/0/trigger" </string> - <string> "collision/layers" </string> - <string> "collision/mask" </string> - <string> "mode" </string> - <string> "mass" </string> - <string> "friction" </string> - <string> "bounce" </string> - <string> "gravity_scale" </string> - <string> "custom_integrator" </string> - <string> "continuous_cd" </string> - <string> "contacts_reported" </string> - <string> "contact_monitor" </string> - <string> "sleeping" </string> - <string> "can_sleep" </string> - <string> "velocity/linear" </string> - <string> "velocity/angular" </string> - <string> "damp_override/linear" </string> - <string> "damp_override/angular" </string> - <string> "RigidBody2D" </string> - <string> "Sprite" </string> - <string> "texture" </string> - <string> "CollisionPolygon2D" </string> - <string> "build_mode" </string> - <string> "polygon" </string> - <string> "shape_range" </string> - <string> "trigger" </string> - </string_array> - <string> "node_count" </string> - <int> 4 </int> - <string> "node_paths" </string> - <array len="0" shared="false"> - </array> - <string> "nodes" </string> - <int_array len="88"> -1, -1, 5, 0, -1, 4, 1, 0, 2, 1, 3, 2, 4, 3, 0, 0, 0, 28, 6, -1, 21, 7, 4, 8, 5, 9, 6, 10, 4, 11, 7, 12, 7, 13, 8, 14, 3, 15, 3, 16, 9, 17, 3, 18, 4, 19, 10, 20, 10, 21, 4, 22, 4, 23, 11, 24, 2, 25, 9, 26, 12, 27, 12, 0, 1, 0, 29, 29, -1, 1, 30, 13, 0, 1, 0, 31, 31, -1, 4, 32, 10, 33, 14, 34, 15, 35, 4, 0 </int_array> - <string> "variants" </string> - <array len="16" shared="false"> - <resource external="0"> </resource> - <dictionary shared="false"> - <string> "__editor_plugin_screen__" </string> - <string> "2D" </string> - <string> "__editor_plugin_states__" </string> - <dictionary shared="false"> - <string> "2D" </string> - <dictionary shared="false"> - <string> "ofs" </string> - <vector2> -210.652, -172.81 </vector2> - <string> "snap_grid" </string> - <bool> False </bool> - <string> "snap_offset" </string> - <vector2> 0, 0 </vector2> - <string> "snap_pixel" </string> - <bool> False </bool> - <string> "snap_relative" </string> - <bool> False </bool> - <string> "snap_rotation" </string> - <bool> False </bool> - <string> "snap_rotation_offset" </string> - <real> 0 </real> - <string> "snap_rotation_step" </string> - <real> 0.261799 </real> - <string> "snap_show_grid" </string> - <bool> False </bool> - <string> "snap_step" </string> - <vector2> 10, 10 </vector2> - <string> "zoom" </string> - <real> 1.360373 </real> - </dictionary> - <string> "3D" </string> - <dictionary shared="false"> - <string> "ambient_light_color" </string> - <color> 0.15, 0.15, 0.15, 1 </color> - <string> "default_light" </string> - <bool> True </bool> - <string> "default_srgb" </string> - <bool> False </bool> - <string> "deflight_rot_x" </string> - <real> 0.942478 </real> - <string> "deflight_rot_y" </string> - <real> 0.628319 </real> - <string> "fov" </string> - <real> 179 </real> - <string> "show_grid" </string> - <bool> True </bool> - <string> "show_origin" </string> - <bool> True </bool> - <string> "viewport_mode" </string> - <int> 1 </int> - <string> "viewports" </string> - <array len="4" shared="false"> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> True </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - </array> - <string> "zfar" </string> - <real> 500 </real> - <string> "znear" </string> - <real> 0.1 </real> - </dictionary> - <string> "Anim" </string> - <dictionary shared="false"> - <string> "visible" </string> - <bool> False </bool> - </dictionary> - </dictionary> - <string> "__editor_run_settings__" </string> - <dictionary shared="false"> - <string> "custom_args" </string> - <string> "-l $scene" </string> - <string> "run_mode" </string> - <int> 0 </int> - </dictionary> - </dictionary> - <vector2> 0, 0 </vector2> - <real> 1 </real> - <bool> False </bool> - <resource resource_type="Shape2D" path="local://1"> </resource> - <matrix32> 1, -0, 0, 1, 0, 0 </matrix32> - <int> 1 </int> - <int> 3 </int> - <real> 0 </real> - <int> 0 </int> - <bool> True </bool> - <real> -1 </real> - <resource external="1"> </resource> - <vector2_array len="4"> -88, -24, 88, -24, 88, 24, -88, 24 </vector2_array> - <vector2> -1, -1 </vector2> - </array> - <string> "version" </string> - <int> 2 </int> - </dictionary> - - </main_resource> -</resource_file>
\ No newline at end of file diff --git a/demos/2d/platformer/music.ogg b/demos/2d/platformer/music.ogg Binary files differdeleted file mode 100644 index ed3e9f0a01..0000000000 --- a/demos/2d/platformer/music.ogg +++ /dev/null diff --git a/demos/2d/platformer/one_way_platform.png b/demos/2d/platformer/one_way_platform.png Binary files differdeleted file mode 100644 index b5eca877a6..0000000000 --- a/demos/2d/platformer/one_way_platform.png +++ /dev/null diff --git a/demos/2d/platformer/one_way_platform.xml b/demos/2d/platformer/one_way_platform.xml deleted file mode 100644 index 85b2322711..0000000000 --- a/demos/2d/platformer/one_way_platform.xml +++ /dev/null @@ -1,207 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<resource_file type="PackedScene" subresource_count="3" version="2.0" version_name="Godot Engine v2.0.alpha.custom_build"> - <ext_resource path="res://one_way_platform.png" type="Texture" index="0"></ext_resource> - <resource type="RectangleShape2D" path="local://1"> - <real name="custom_solver_bias"> 0 </real> - <vector2 name="extents"> 100, 10 </vector2> - - </resource> - <main_resource> - <dictionary name="_bundled" shared="false"> - <string> "conn_count" </string> - <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="23"> - <string> "one_way_platform" </string> - <string> "input/pickable" </string> - <string> "shapes/0/shape" </string> - <string> "shapes/0/transform" </string> - <string> "shapes/0/trigger" </string> - <string> "collision/layers" </string> - <string> "collision/mask" </string> - <string> "one_way_collision/direction" </string> - <string> "one_way_collision/max_depth" </string> - <string> "constant_linear_velocity" </string> - <string> "constant_angular_velocity" </string> - <string> "friction" </string> - <string> "bounce" </string> - <string> "__meta__" </string> - <string> "StaticBody2D" </string> - <string> "sprite" </string> - <string> "texture" </string> - <string> "Sprite" </string> - <string> "CollisionShape2D" </string> - <string> "transform/pos" </string> - <string> "shape" </string> - <string> "trigger" </string> - <string> "_update_shape_index" </string> - </string_array> - <string> "node_count" </string> - <int> 3 </int> - <string> "node_paths" </string> - <array len="0" shared="false"> - </array> - <string> "nodes" </string> - <int_array len="57"> -1, -1, 14, 0, -1, 13, 1, 0, 2, 1, 3, 2, 4, 0, 5, 3, 6, 3, 7, 4, 8, 5, 9, 6, 10, 7, 11, 8, 12, 7, 13, 9, 0, 0, 0, 17, 15, -1, 1, 16, 10, 0, 0, 0, 18, 18, -1, 4, 19, 11, 20, 1, 21, 0, 22, 12, 0 </int_array> - <string> "variants" </string> - <array len="13" shared="false"> - <bool> False </bool> - <resource resource_type="Shape2D" path="local://1"> </resource> - <matrix32> 1, -0, 0, 1, 1.46304, -13.1672 </matrix32> - <int> 1 </int> - <vector2> 0, 1 </vector2> - <real> 20 </real> - <vector2> 0, 0 </vector2> - <real> 0 </real> - <real> 1 </real> - <dictionary shared="false"> - <string> "__editor_plugin_screen__" </string> - <string> "2D" </string> - <string> "__editor_plugin_states__" </string> - <dictionary shared="false"> - <string> "2D" </string> - <dictionary shared="false"> - <string> "ofs" </string> - <vector2> -133.699, -110.553 </vector2> - <string> "snap_grid" </string> - <bool> False </bool> - <string> "snap_offset" </string> - <vector2> 0, 0 </vector2> - <string> "snap_pixel" </string> - <bool> False </bool> - <string> "snap_relative" </string> - <bool> False </bool> - <string> "snap_rotation" </string> - <bool> False </bool> - <string> "snap_rotation_offset" </string> - <real> 0 </real> - <string> "snap_rotation_step" </string> - <real> 0.261799 </real> - <string> "snap_show_grid" </string> - <bool> False </bool> - <string> "snap_step" </string> - <vector2> 10, 10 </vector2> - <string> "zoom" </string> - <real> 2.050546 </real> - </dictionary> - <string> "3D" </string> - <dictionary shared="false"> - <string> "ambient_light_color" </string> - <color> 0.15, 0.15, 0.15, 1 </color> - <string> "default_light" </string> - <bool> True </bool> - <string> "default_srgb" </string> - <bool> False </bool> - <string> "deflight_rot_x" </string> - <real> 0.942478 </real> - <string> "deflight_rot_y" </string> - <real> 0.628319 </real> - <string> "fov" </string> - <real> 45 </real> - <string> "show_grid" </string> - <bool> True </bool> - <string> "show_origin" </string> - <bool> True </bool> - <string> "viewport_mode" </string> - <int> 1 </int> - <string> "viewports" </string> - <array len="4" shared="false"> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> True </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - </array> - <string> "zfar" </string> - <real> 500 </real> - <string> "znear" </string> - <real> 0.1 </real> - </dictionary> - <string> "Anim" </string> - <dictionary shared="false"> - <string> "visible" </string> - <bool> False </bool> - </dictionary> - </dictionary> - <string> "__editor_run_settings__" </string> - <dictionary shared="false"> - <string> "custom_args" </string> - <string> "-l $scene" </string> - <string> "run_mode" </string> - <int> 0 </int> - </dictionary> - </dictionary> - <resource external="0"> </resource> - <vector2> 1.46304, -13.1672 </vector2> - <int> -1 </int> - </array> - <string> "version" </string> - <int> 2 </int> - </dictionary> - - </main_resource> -</resource_file>
\ No newline at end of file diff --git a/demos/2d/platformer/osb_fire.png b/demos/2d/platformer/osb_fire.png Binary files differdeleted file mode 100644 index 6f914cfe49..0000000000 --- a/demos/2d/platformer/osb_fire.png +++ /dev/null diff --git a/demos/2d/platformer/osb_jump.png b/demos/2d/platformer/osb_jump.png Binary files differdeleted file mode 100644 index 72ba032daa..0000000000 --- a/demos/2d/platformer/osb_jump.png +++ /dev/null diff --git a/demos/2d/platformer/osb_left.png b/demos/2d/platformer/osb_left.png Binary files differdeleted file mode 100644 index b8e08c2ce7..0000000000 --- a/demos/2d/platformer/osb_left.png +++ /dev/null diff --git a/demos/2d/platformer/osb_right.png b/demos/2d/platformer/osb_right.png Binary files differdeleted file mode 100644 index 0e5cbb0d54..0000000000 --- a/demos/2d/platformer/osb_right.png +++ /dev/null diff --git a/demos/2d/platformer/parallax_bg.xml b/demos/2d/platformer/parallax_bg.xml deleted file mode 100644 index 3b306aecab..0000000000 --- a/demos/2d/platformer/parallax_bg.xml +++ /dev/null @@ -1,230 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<resource_file type="PackedScene" subresource_count="7" version="2.0" version_name="Godot Engine v2.0.alpha.custom_build"> - <ext_resource path="res://scroll_bg_cloud_1.png" type="Texture" index="1"></ext_resource> - <ext_resource path="res://scroll_bg_sky.png" type="Texture" index="0"></ext_resource> - <ext_resource path="res://scroll_bg_fg_2.png" type="Texture" index="4"></ext_resource> - <ext_resource path="res://scroll_bg_cloud_3.png" type="Texture" index="3"></ext_resource> - <ext_resource path="res://scroll_bg_cloud_2.png" type="Texture" index="2"></ext_resource> - <ext_resource path="res://scroll_bg_fg_1.png" type="Texture" index="5"></ext_resource> - <main_resource> - <dictionary name="_bundled" shared="false"> - <string> "conn_count" </string> - <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="32"> - <string> "parallax_bg" </string> - <string> "layer" </string> - <string> "offset" </string> - <string> "rotation" </string> - <string> "scale" </string> - <string> "scroll/offset" </string> - <string> "scroll/base_offset" </string> - <string> "scroll/base_scale" </string> - <string> "scroll/limit_begin" </string> - <string> "scroll/limit_end" </string> - <string> "scroll/ignore_camera_zoom" </string> - <string> "__meta__" </string> - <string> "ParallaxBackground" </string> - <string> "sky" </string> - <string> "motion/scale" </string> - <string> "motion/mirroring" </string> - <string> "ParallaxLayer" </string> - <string> "Sprite" </string> - <string> "transform/scale" </string> - <string> "texture" </string> - <string> "centered" </string> - <string> "clouds" </string> - <string> "transform/pos" </string> - <string> "Sprite 2" </string> - <string> "Sprite 3" </string> - <string> "Sprite 4" </string> - <string> "Sprite 5" </string> - <string> "Sprite 6" </string> - <string> "mount_ 2" </string> - <string> "region" </string> - <string> "region_rect" </string> - <string> "mount_1" </string> - </string_array> - <string> "node_count" </string> - <int> 14 </int> - <string> "node_paths" </string> - <array len="0" shared="false"> - </array> - <string> "nodes" </string> - <int_array len="198"> -1, -1, 12, 0, -1, 11, 1, 0, 2, 1, 3, 2, 4, 3, 5, 1, 6, 1, 7, 4, 8, 1, 9, 1, 10, 5, 11, 6, 0, 0, 0, 16, 13, -1, 2, 14, 3, 15, 7, 0, 1, 0, 17, 17, -1, 3, 18, 8, 19, 9, 20, 5, 0, 0, 0, 16, 21, -1, 2, 14, 10, 15, 7, 0, 3, 0, 17, 17, -1, 3, 22, 11, 19, 12, 20, 5, 0, 3, 0, 17, 23, -1, 3, 22, 13, 19, 12, 20, 5, 0, 3, 0, 17, 24, -1, 3, 22, 14, 19, 15, 20, 5, 0, 3, 0, 17, 25, -1, 3, 22, 16, 19, 15, 20, 5, 0, 3, 0, 17, 26, -1, 3, 22, 17, 19, 18, 20, 5, 0, 3, 0, 17, 27, -1, 3, 22, 19, 19, 18, 20, 5, 0, 0, 0, 16, 28, -1, 2, 14, 20, 15, 7, 0, 10, 0, 17, 17, -1, 5, 22, 21, 19, 22, 20, 5, 29, 23, 30, 24, 0, 0, 0, 16, 31, -1, 2, 14, 25, 15, 7, 0, 12, 0, 17, 17, -1, 5, 22, 21, 19, 26, 20, 5, 29, 23, 30, 24, 0 </int_array> - <string> "variants" </string> - <array len="27" shared="false"> - <int> -1 </int> - <vector2> 0, 0 </vector2> - <real> 0 </real> - <vector2> 1, 1 </vector2> - <vector2> 0.7, 0 </vector2> - <bool> False </bool> - <dictionary shared="false"> - <string> "__editor_plugin_screen__" </string> - <string> "2D" </string> - <string> "__editor_plugin_states__" </string> - <dictionary shared="false"> - <string> "2D" </string> - <dictionary shared="false"> - <string> "ofs" </string> - <vector2> -5, -25 </vector2> - <string> "snap_grid" </string> - <bool> False </bool> - <string> "snap_offset" </string> - <vector2> 0, 0 </vector2> - <string> "snap_pixel" </string> - <bool> False </bool> - <string> "snap_relative" </string> - <bool> False </bool> - <string> "snap_rotation" </string> - <bool> False </bool> - <string> "snap_rotation_offset" </string> - <real> 0 </real> - <string> "snap_rotation_step" </string> - <real> 0.261799 </real> - <string> "snap_show_grid" </string> - <bool> False </bool> - <string> "snap_step" </string> - <vector2> 10, 10 </vector2> - <string> "zoom" </string> - <real> 1 </real> - </dictionary> - <string> "3D" </string> - <dictionary shared="false"> - <string> "ambient_light_color" </string> - <color> 0.15, 0.15, 0.15, 1 </color> - <string> "default_light" </string> - <bool> True </bool> - <string> "default_srgb" </string> - <bool> False </bool> - <string> "deflight_rot_x" </string> - <real> 0.942478 </real> - <string> "deflight_rot_y" </string> - <real> 0.628319 </real> - <string> "fov" </string> - <real> 45 </real> - <string> "show_grid" </string> - <bool> True </bool> - <string> "show_origin" </string> - <bool> True </bool> - <string> "viewport_mode" </string> - <int> 1 </int> - <string> "viewports" </string> - <array len="4" shared="false"> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> True </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - </array> - <string> "zfar" </string> - <real> 500 </real> - <string> "znear" </string> - <real> 0.1 </real> - </dictionary> - <string> "Anim" </string> - <dictionary shared="false"> - <string> "visible" </string> - <bool> False </bool> - </dictionary> - </dictionary> - <string> "__editor_run_settings__" </string> - <dictionary shared="false"> - <string> "custom_args" </string> - <string> "-l $scene" </string> - <string> "run_mode" </string> - <int> 0 </int> - </dictionary> - </dictionary> - <vector2> 800, 0 </vector2> - <vector2> 32, 0.94 </vector2> - <resource external="0"> </resource> - <vector2> 0.1, 1 </vector2> - <vector2> 28, 127 </vector2> - <resource external="1"> </resource> - <vector2> 404, 24 </vector2> - <vector2> 154, 46 </vector2> - <resource external="2"> </resource> - <vector2> 525, 130 </vector2> - <vector2> 255, 158 </vector2> - <resource external="3"> </resource> - <vector2> 674, 70 </vector2> - <vector2> 0.2, 1 </vector2> - <vector2> 0, 225 </vector2> - <resource external="4"> </resource> - <bool> True </bool> - <rect2> 0, 0, 800, 256 </rect2> - <vector2> 0.4, 1 </vector2> - <resource external="5"> </resource> - </array> - <string> "version" </string> - <int> 2 </int> - </dictionary> - - </main_resource> -</resource_file>
\ No newline at end of file diff --git a/demos/2d/platformer/plank.png b/demos/2d/platformer/plank.png Binary files differdeleted file mode 100644 index b4f6addee5..0000000000 --- a/demos/2d/platformer/plank.png +++ /dev/null diff --git a/demos/2d/platformer/plankpin.png b/demos/2d/platformer/plankpin.png Binary files differdeleted file mode 100644 index 46e104a3fe..0000000000 --- a/demos/2d/platformer/plankpin.png +++ /dev/null diff --git a/demos/2d/platformer/player.gd b/demos/2d/platformer/player.gd deleted file mode 100644 index 7ed99df9bd..0000000000 --- a/demos/2d/platformer/player.gd +++ /dev/null @@ -1,232 +0,0 @@ - -extends RigidBody2D - -# Character Demo, written by Juan Linietsky. -# -# Implementation of a 2D Character controller. -# This implementation uses the physics engine for -# controlling a character, in a very similar way -# than a 3D character controller would be implemented. -# -# Using the physics engine for this has the main -# advantages: -# -Easy to write. -# -Interaction with other physics-based objects is free -# -Only have to deal with the object linear velocity, not position -# -All collision/area framework available -# -# But also has the following disadvantages: -# -# -Objects may bounce a little bit sometimes -# -Going up ramps sends the chracter flying up, small hack is needed. -# -A ray collider is needed to avoid sliding down on ramps and -# undesiderd bumps, small steps and rare numerical precision errors. -# (another alternative may be to turn on friction when the character is not moving). -# -Friction cant be used, so floor velocity must be considered -# for moving platforms. - -# Member variables -var anim = "" -var siding_left = false -var jumping = false -var stopping_jump = false -var shooting = false - -var WALK_ACCEL = 800.0 -var WALK_DEACCEL = 800.0 -var WALK_MAX_VELOCITY = 200.0 -var AIR_ACCEL = 200.0 -var AIR_DEACCEL = 200.0 -var JUMP_VELOCITY = 460 -var STOP_JUMP_FORCE = 900.0 - -var MAX_FLOOR_AIRBORNE_TIME = 0.15 - -var airborne_time = 1e20 -var shoot_time = 1e20 - -var MAX_SHOOT_POSE_TIME = 0.3 - -var bullet = preload("res://bullet.xml") - -var floor_h_velocity = 0.0 -var enemy - - -func _integrate_forces(s): - var lv = s.get_linear_velocity() - var step = s.get_step() - - var new_anim = anim - var new_siding_left = siding_left - - # Get the controls - var move_left = Input.is_action_pressed("move_left") - var move_right = Input.is_action_pressed("move_right") - var jump = Input.is_action_pressed("jump") - var shoot = Input.is_action_pressed("shoot") - var spawn = Input.is_action_pressed("spawn") - - if spawn: - var e = enemy.instance() - var p = get_pos() - p.y = p.y - 100 - e.set_pos(p) - get_parent().add_child(e) - - # Deapply prev floor velocity - lv.x -= floor_h_velocity - floor_h_velocity = 0.0 - - # Find the floor (a contact with upwards facing collision normal) - var found_floor = false - var floor_index = -1 - - for x in range(s.get_contact_count()): - var ci = s.get_contact_local_normal(x) - if (ci.dot(Vector2(0, -1)) > 0.6): - found_floor = true - floor_index = x - - # A good idea when impementing characters of all kinds, - # compensates for physics imprecission, as well as human reaction delay. - if (shoot and not shooting): - shoot_time = 0 - var bi = bullet.instance() - var ss - if (siding_left): - ss = -1.0 - else: - ss = 1.0 - var pos = get_pos() + get_node("bullet_shoot").get_pos()*Vector2(ss, 1.0) - - bi.set_pos(pos) - get_parent().add_child(bi) - - bi.set_linear_velocity(Vector2(800.0*ss, -80)) - get_node("sprite/smoke").set_emitting(true) - get_node("sound").play("shoot") - PS2D.body_add_collision_exception(bi.get_rid(), get_rid()) # Make bullet and this not collide - else: - shoot_time += step - - if (found_floor): - airborne_time = 0.0 - else: - airborne_time += step # Time it spent in the air - - var on_floor = airborne_time < MAX_FLOOR_AIRBORNE_TIME - - # Process jump - if (jumping): - if (lv.y > 0): - # Set off the jumping flag if going down - jumping = false - elif (not jump): - stopping_jump = true - - if (stopping_jump): - lv.y += STOP_JUMP_FORCE*step - - if (on_floor): - # Process logic when character is on floor - if (move_left and not move_right): - if (lv.x > -WALK_MAX_VELOCITY): - lv.x -= WALK_ACCEL*step - elif (move_right and not move_left): - if (lv.x < WALK_MAX_VELOCITY): - lv.x += WALK_ACCEL*step - else: - var xv = abs(lv.x) - xv -= WALK_DEACCEL*step - if (xv < 0): - xv = 0 - lv.x = sign(lv.x)*xv - - # Check jump - if (not jumping and jump): - lv.y = -JUMP_VELOCITY - jumping = true - stopping_jump = false - get_node("sound").play("jump") - - # Check siding - if (lv.x < 0 and move_left): - new_siding_left = true - elif (lv.x > 0 and move_right): - new_siding_left = false - if (jumping): - new_anim = "jumping" - elif (abs(lv.x) < 0.1): - if (shoot_time < MAX_SHOOT_POSE_TIME): - new_anim = "idle_weapon" - else: - new_anim = "idle" - else: - if (shoot_time < MAX_SHOOT_POSE_TIME): - new_anim = "run_weapon" - else: - new_anim = "run" - else: - # Process logic when the character is in the air - if (move_left and not move_right): - if (lv.x > -WALK_MAX_VELOCITY): - lv.x -= AIR_ACCEL*step - elif (move_right and not move_left): - if (lv.x < WALK_MAX_VELOCITY): - lv.x += AIR_ACCEL*step - else: - var xv = abs(lv.x) - xv -= AIR_DEACCEL*step - if (xv < 0): - xv = 0 - lv.x = sign(lv.x)*xv - - if (lv.y < 0): - if (shoot_time < MAX_SHOOT_POSE_TIME): - new_anim = "jumping_weapon" - else: - new_anim = "jumping" - else: - if (shoot_time < MAX_SHOOT_POSE_TIME): - new_anim = "falling_weapon" - else: - new_anim = "falling" - - # Update siding - if (new_siding_left != siding_left): - if (new_siding_left): - get_node("sprite").set_scale(Vector2(-1, 1)) - else: - get_node("sprite").set_scale(Vector2(1, 1)) - - siding_left = new_siding_left - - # Change animation - if (new_anim != anim): - anim = new_anim - get_node("anim").play(anim) - - shooting = shoot - - # Apply floor velocity - if (found_floor): - floor_h_velocity = s.get_contact_collider_velocity_at_pos(floor_index).x - lv.x += floor_h_velocity - - # Finally, apply gravity and set back the linear velocity - lv += s.get_total_gravity()*step - s.set_linear_velocity(lv) - - -func _ready(): - enemy = ResourceLoader.load("res://enemy.xml") - -# if !Globals.has_singleton("Facebook"): -# return -# var Facebook = Globals.get_singleton("Facebook") -# var link = Globals.get("facebook/link") -# var icon = Globals.get("facebook/icon") -# var msg = "I just sneezed on your wall! Beat my score and Stop the Running nose!" -# var title = "I just sneezed on your wall!" -# Facebook.post("feed", msg, title, link, icon) diff --git a/demos/2d/platformer/player.xml b/demos/2d/platformer/player.xml deleted file mode 100644 index 493279672f..0000000000 --- a/demos/2d/platformer/player.xml +++ /dev/null @@ -1,669 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<resource_file type="PackedScene" subresource_count="25" 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://sound_coin.wav" type="Sample" index="3"></ext_resource> - <ext_resource path="res://player.gd" type="Script" index="0"></ext_resource> - <ext_resource path="res://robot_demo.png" type="Texture" index="1"></ext_resource> - <ext_resource path="res://sound_shoot.wav" type="Sample" index="5"></ext_resource> - <ext_resource path="res://sound_jump.wav" type="Sample" index="4"></ext_resource> - <ext_resource path="res://osb_left.png" type="Texture" index="6"></ext_resource> - <ext_resource path="res://osb_right.png" type="Texture" index="7"></ext_resource> - <ext_resource path="res://osb_jump.png" type="Texture" index="8"></ext_resource> - <ext_resource path="res://osb_fire.png" type="Texture" index="9"></ext_resource> - <resource type="RayShape2D" path="local://1"> - <real name="custom_solver_bias"> 0.5 </real> - <real name="length"> 20 </real> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://2"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="3"> -19.902, -24.8691, 19.3625, -24.6056, -0.138023, 16.5036 </vector2_array> - - </resource> - <resource type="ColorRamp" path="local://14"> - <real_array name="offsets" len="2"> 0, 1 </real_array> - <color_array name="colors" len="2"> 1, 1, 1, 1, 0, 0, 0, 0.0442478 </color_array> - - </resource> - <resource type="Animation" path="local://3"> - <string name="resource/name"> "idle" </string> - <real name="length"> 7 </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="8"> 0, 1.25, 1.5, 2, 4.5, 4.75, 5, 5.25 </real_array> - <string> "transitions" </string> - <real_array len="8"> 1, 1, 1, 1, 1, 1, 1, 1 </real_array> - <string> "values" </string> - <array len="8" shared="false"> - <int> 16 </int> - <int> 17 </int> - <int> 18 </int> - <int> 16 </int> - <int> 19 </int> - <int> 20 </int> - <int> 19 </int> - <int> 16 </int> - </array> - </dictionary> - - </resource> - <resource type="Animation" path="local://4"> - <string name="resource/name"> "jumping" </string> - <real name="length"> 0.5 </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="3"> 0, 0.25, 0.5 </real_array> - <string> "transitions" </string> - <real_array len="3"> 1, 1, 1 </real_array> - <string> "values" </string> - <array len="3" shared="false"> - <int> 23 </int> - <int> 24 </int> - <int> 23 </int> - </array> - </dictionary> - - </resource> - <resource type="Animation" path="local://10"> - <string name="resource/name"> "falling_weapon" </string> - <real name="length"> 0.5 </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="1"> 0 </real_array> - <string> "transitions" </string> - <real_array len="1"> 1 </real_array> - <string> "values" </string> - <array len="1" shared="false"> - <int> 26 </int> - </array> - </dictionary> - - </resource> - <resource type="Animation" path="local://5"> - <string name="resource/name"> "idle_weapon" </string> - <real name="length"> 0.5 </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="1"> 0 </real_array> - <string> "transitions" </string> - <real_array len="1"> 1 </real_array> - <string> "values" </string> - <array len="1" shared="false"> - <int> 25 </int> - </array> - </dictionary> - - </resource> - <resource type="Animation" path="local://7"> - <string name="resource/name"> "crouch" </string> - <real name="length"> 0.01 </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="1"> 0 </real_array> - <string> "transitions" </string> - <real_array len="1"> 1 </real_array> - <string> "values" </string> - <array len="1" shared="false"> - <int> 22 </int> - </array> - </dictionary> - - </resource> - <resource type="Animation" path="local://8"> - <string name="resource/name"> "falling" </string> - <real name="length"> 0.01 </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="1"> 0 </real_array> - <string> "transitions" </string> - <real_array len="1"> 1 </real_array> - <string> "values" </string> - <array len="1" shared="false"> - <int> 21 </int> - </array> - </dictionary> - - </resource> - <resource type="Animation" path="local://9"> - <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> 10 </int> - <int> 11 </int> - <int> 12 </int> - <int> 13 </int> - <int> 14 </int> - <int> 5 </int> - </array> - </dictionary> - - </resource> - <resource type="Animation" path="local://12"> - <real name="length"> 0.5 </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="1"> 0 </real_array> - <string> "transitions" </string> - <real_array len="1"> 1 </real_array> - <string> "values" </string> - <array len="1" shared="false"> - <int> 26 </int> - </array> - </dictionary> - - </resource> - <resource type="Animation" path="local://6"> - <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://11"> - <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> 5 </int> - <int> 6 </int> - <int> 7 </int> - <int> 8 </int> - <int> 9 </int> - <int> 5 </int> - </array> - </dictionary> - - </resource> - <resource type="SampleLibrary" path="local://13"> - <dictionary name="samples/jump" shared="false"> - <string> "db" </string> - <real> 0 </real> - <string> "pitch" </string> - <real> 1 </real> - <string> "sample" </string> - <resource external="4"> </resource> - </dictionary> - <dictionary name="samples/shoot" shared="false"> - <string> "db" </string> - <real> 0 </real> - <string> "pitch" </string> - <real> 1 </real> - <string> "sample" </string> - <resource external="5"> </resource> - </dictionary> - <dictionary name="samples/coin" shared="false"> - <string> "db" </string> - <real> 0 </real> - <string> "pitch" </string> - <real> 1 </real> - <string> "sample" </string> - <resource external="3"> </resource> - </dictionary> - - </resource> - <main_resource> - <dictionary name="_bundled" shared="false"> - <string> "conn_count" </string> - <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="144"> - <string> "player" </string> - <string> "input/pickable" </string> - <string> "shapes/0/shape" </string> - <string> "shapes/0/transform" </string> - <string> "shapes/0/trigger" </string> - <string> "shapes/1/shape" </string> - <string> "shapes/1/transform" </string> - <string> "shapes/1/trigger" </string> - <string> "collision/layers" </string> - <string> "collision/mask" </string> - <string> "mode" </string> - <string> "mass" </string> - <string> "friction" </string> - <string> "bounce" </string> - <string> "gravity_scale" </string> - <string> "custom_integrator" </string> - <string> "continuous_cd" </string> - <string> "contacts_reported" </string> - <string> "contact_monitor" </string> - <string> "sleeping" </string> - <string> "can_sleep" </string> - <string> "velocity/linear" </string> - <string> "velocity/angular" </string> - <string> "damp_override/linear" </string> - <string> "damp_override/angular" </string> - <string> "script/script" </string> - <string> "__meta__" </string> - <string> "RigidBody2D" </string> - <string> "sprite" </string> - <string> "texture" </string> - <string> "vframes" </string> - <string> "hframes" </string> - <string> "Sprite" </string> - <string> "smoke" </string> - <string> "visibility/self_opacity" </string> - <string> "visibility/blend_mode" </string> - <string> "transform/pos" </string> - <string> "transform/rot" </string> - <string> "config/amount" </string> - <string> "config/lifetime" </string> - <string> "config/emit_timeout" </string> - <string> "config/emitting" </string> - <string> "config/local_space" </string> - <string> "config/explosiveness" </string> - <string> "config/texture" </string> - <string> "params/direction" </string> - <string> "params/spread" </string> - <string> "params/linear_velocity" </string> - <string> "params/spin_velocity" </string> - <string> "params/orbit_velocity" </string> - <string> "params/gravity_direction" </string> - <string> "params/gravity_strength" </string> - <string> "params/radial_accel" </string> - <string> "params/tangential_accel" </string> - <string> "params/damping" </string> - <string> "params/initial_angle" </string> - <string> "params/initial_size" </string> - <string> "params/final_size" </string> - <string> "params/hue_variation" </string> - <string> "params/anim_speed_scale" </string> - <string> "params/anim_initial_pos" </string> - <string> "randomness/spin_velocity" </string> - <string> "color/color_ramp" </string> - <string> "Particles2D" </string> - <string> "anim" </string> - <string> "playback/process_mode" </string> - <string> "playback/default_blend_time" </string> - <string> "root/root" </string> - <string> "anims/idle" </string> - <string> "anims/jumping" </string> - <string> "anims/falling_weapon" </string> - <string> "anims/idle_weapon" </string> - <string> "anims/crouch" </string> - <string> "anims/falling" </string> - <string> "anims/standing_weapon_ready" </string> - <string> "anims/jumping_weapon" </string> - <string> "anims/run" </string> - <string> "anims/run_weapon" </string> - <string> "playback/active" </string> - <string> "playback/speed" </string> - <string> "blend_times" </string> - <string> "autoplay" </string> - <string> "AnimationPlayer" </string> - <string> "camera" </string> - <string> "anchor_mode" </string> - <string> "rotating" </string> - <string> "current" </string> - <string> "smoothing" </string> - <string> "zoom" </string> - <string> "limit/left" </string> - <string> "limit/top" </string> - <string> "limit/right" </string> - <string> "limit/bottom" </string> - <string> "drag_margin/h_enabled" </string> - <string> "drag_margin/v_enabled" </string> - <string> "drag_margin/left" </string> - <string> "drag_margin/top" </string> - <string> "drag_margin/right" </string> - <string> "drag_margin/bottom" </string> - <string> "Camera2D" </string> - <string> "bullet_shoot" </string> - <string> "Position2D" </string> - <string> "CollisionShape2D" </string> - <string> "transform/scale" </string> - <string> "shape" </string> - <string> "trigger" </string> - <string> "_update_shape_index" </string> - <string> "sound" </string> - <string> "config/polyphony" </string> - <string> "config/samples" </string> - <string> "default/volume_db" </string> - <string> "default/pitch_scale" </string> - <string> "default/pan" </string> - <string> "default/depth" </string> - <string> "default/height" </string> - <string> "default/filter/type" </string> - <string> "default/filter/cutoff" </string> - <string> "default/filter/resonance" </string> - <string> "default/filter/gain" </string> - <string> "default/reverb_room" </string> - <string> "default/reverb_send" </string> - <string> "default/chorus_send" </string> - <string> "SamplePlayer" </string> - <string> "CollisionPolygon2D" </string> - <string> "build_mode" </string> - <string> "polygon" </string> - <string> "shape_range" </string> - <string> "ui" </string> - <string> "layer" </string> - <string> "offset" </string> - <string> "rotation" </string> - <string> "scale" </string> - <string> "CanvasLayer" </string> - <string> "left" </string> - <string> "normal" </string> - <string> "pressed" </string> - <string> "bitmask" </string> - <string> "passby_press" </string> - <string> "action" </string> - <string> "visibility_mode" </string> - <string> "TouchScreenButton" </string> - <string> "right" </string> - <string> "jump" </string> - <string> "fire" </string> - </string_array> - <string> "node_count" </string> - <int> 14 </int> - <string> "node_paths" </string> - <array len="0" shared="false"> - </array> - <string> "nodes" </string> - <int_array len="398"> -1, -1, 27, 0, -1, 26, 1, 0, 2, 1, 3, 2, 4, 0, 5, 3, 6, 4, 7, 0, 8, 5, 9, 5, 10, 6, 11, 7, 12, 8, 13, 8, 14, 9, 15, 10, 16, 11, 17, 12, 18, 0, 19, 0, 20, 10, 21, 13, 22, 8, 23, 14, 24, 14, 25, 15, 26, 16, 0, 0, 0, 32, 28, -1, 3, 29, 17, 30, 6, 31, 18, 0, 1, 0, 63, 33, -1, 29, 34, 19, 35, 5, 36, 20, 37, 21, 38, 22, 39, 23, 40, 23, 41, 0, 42, 0, 43, 24, 44, 25, 45, 8, 46, 26, 47, 27, 48, 9, 49, 8, 50, 8, 51, 28, 52, 8, 53, 8, 54, 8, 55, 8, 56, 29, 57, 29, 58, 8, 59, 9, 60, 8, 61, 29, 62, 30, 0, 0, 0, 82, 64, -1, 17, 65, 5, 66, 8, 67, 31, 68, 32, 69, 33, 70, 34, 71, 35, 72, 36, 73, 37, 74, 38, 75, 39, 76, 40, 77, 41, 78, 10, 79, 29, 80, 42, 81, 43, 0, 0, 0, 99, 83, -1, 15, 84, 5, 85, 0, 86, 10, 87, 8, 88, 44, 89, 11, 90, 11, 91, 45, 92, 45, 93, 10, 94, 10, 95, 46, 96, 46, 97, 46, 98, 46, 0, 0, 0, 101, 100, -1, 1, 36, 47, 0, 0, 0, 102, 102, -1, 5, 36, 48, 103, 49, 104, 1, 105, 0, 106, 50, 0, 0, 0, 122, 107, -1, 14, 108, 5, 109, 51, 110, 8, 111, 9, 112, 8, 113, 8, 114, 8, 115, 11, 116, 8, 117, 8, 118, 8, 119, 6, 120, 8, 121, 8, 0, 0, 0, 123, 123, -1, 4, 124, 11, 125, 52, 126, 53, 105, 0, 0, 0, 0, 132, 127, -1, 4, 128, 11, 129, 13, 130, 8, 131, 44, 0, 9, 0, 140, 133, -1, 8, 36, 54, 103, 55, 134, 56, 135, 57, 136, 57, 137, 10, 138, 58, 139, 5, 0, 9, 0, 140, 141, -1, 8, 36, 59, 103, 55, 134, 60, 135, 57, 136, 57, 137, 10, 138, 61, 139, 5, 0, 9, 0, 140, 142, -1, 8, 36, 62, 103, 55, 134, 63, 135, 57, 136, 57, 137, 0, 138, 64, 139, 5, 0, 9, 0, 140, 143, -1, 8, 36, 65, 103, 55, 134, 66, 135, 57, 136, 57, 137, 0, 138, 67, 139, 5, 0 </int_array> - <string> "variants" </string> - <array len="68" shared="false"> - <bool> False </bool> - <resource resource_type="Shape2D" path="local://1"> </resource> - <matrix32> 1, -0, 0, 1.76469, 0.291992, -12.1587 </matrix32> - <resource resource_type="Shape2D" path="local://2"> </resource> - <matrix32> 1, -0, 0, 1, 0, 0 </matrix32> - <int> 1 </int> - <int> 2 </int> - <real> 3 </real> - <real> 0 </real> - <real> 1 </real> - <bool> True </bool> - <int> 0 </int> - <int> 3 </int> - <vector2> 0, 0 </vector2> - <real> -1 </real> - <resource external="0"> </resource> - <dictionary shared="false"> - <string> "__editor_plugin_screen__" </string> - <string> "2D" </string> - <string> "__editor_plugin_states__" </string> - <dictionary shared="false"> - <string> "2D" </string> - <dictionary shared="false"> - <string> "ofs" </string> - <vector2> -110.795, -101.2 </vector2> - <string> "snap_grid" </string> - <bool> False </bool> - <string> "snap_offset" </string> - <vector2> 0, 0 </vector2> - <string> "snap_pixel" </string> - <bool> False </bool> - <string> "snap_relative" </string> - <bool> False </bool> - <string> "snap_rotation" </string> - <bool> False </bool> - <string> "snap_rotation_offset" </string> - <real> 0 </real> - <string> "snap_rotation_step" </string> - <real> 0.261799 </real> - <string> "snap_show_grid" </string> - <bool> False </bool> - <string> "snap_step" </string> - <vector2> 10, 10 </vector2> - <string> "zoom" </string> - <real> 2.050546 </real> - </dictionary> - <string> "3D" </string> - <dictionary shared="false"> - <string> "ambient_light_color" </string> - <color> 0.15, 0.15, 0.15, 1 </color> - <string> "default_light" </string> - <bool> True </bool> - <string> "default_srgb" </string> - <bool> False </bool> - <string> "deflight_rot_x" </string> - <real> 0.942478 </real> - <string> "deflight_rot_y" </string> - <real> 0.628319 </real> - <string> "fov" </string> - <real> 45 </real> - <string> "show_grid" </string> - <bool> True </bool> - <string> "show_origin" </string> - <bool> True </bool> - <string> "viewport_mode" </string> - <int> 1 </int> - <string> "viewports" </string> - <array len="4" shared="false"> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> True </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - </array> - <string> "zfar" </string> - <real> 500 </real> - <string> "znear" </string> - <real> 0.1 </real> - </dictionary> - <string> "Anim" </string> - <dictionary shared="false"> - <string> "visible" </string> - <bool> False </bool> - </dictionary> - </dictionary> - <string> "__editor_run_settings__" </string> - <dictionary shared="false"> - <string> "custom_args" </string> - <string> "-l $scene" </string> - <string> "run_mode" </string> - <int> 0 </int> - </dictionary> - </dictionary> - <resource external="1"> </resource> - <int> 16 </int> - <real> 0.363636 </real> - <vector2> 20.7312, 3.21187 </vector2> - <real> 83.450417 </real> - <int> 4 </int> - <real> 0.3 </real> - <real> 0.1 </real> - <resource external="2"> </resource> - <real> 180 </real> - <real> 20 </real> - <real> 9.8 </real> - <real> 2 </real> - <resource resource_type="ColorRamp" path="local://14"> </resource> - <node_path> ".." </node_path> - <resource resource_type="Animation" path="local://3"> </resource> - <resource resource_type="Animation" path="local://4"> </resource> - <resource resource_type="Animation" path="local://10"> </resource> - <resource resource_type="Animation" path="local://5"> </resource> - <resource resource_type="Animation" path="local://7"> </resource> - <resource resource_type="Animation" path="local://8"> </resource> - <resource resource_type="Animation" path="local://9"> </resource> - <resource resource_type="Animation" path="local://12"> </resource> - <resource resource_type="Animation" path="local://6"> </resource> - <resource resource_type="Animation" path="local://11"> </resource> - <array len="0" shared="false"> - </array> - <string> "" </string> - <vector2> 1, 1 </vector2> - <int> 10000000 </int> - <real> 0.2 </real> - <vector2> 31.2428, 4.08784 </vector2> - <vector2> 0.291992, -12.1587 </vector2> - <vector2> 1, 1.76469 </vector2> - <int> -1 </int> - <resource resource_type="SampleLibrary" path="local://13"> </resource> - <vector2_array len="3"> -0.138023, 16.5036, -19.902, -24.8691, 19.3625, -24.6056 </vector2_array> - <vector2> -1, -1 </vector2> - <vector2> 27.7593, 360.87 </vector2> - <vector2> 1.49157, 1.46265 </vector2> - <resource external="6"> </resource> - <resource name=""></resource> <string> "move_left" </string> - <vector2> 121.542, 361.415 </vector2> - <resource external="7"> </resource> - <string> "move_right" </string> - <vector2> 666.224, 359.02 </vector2> - <resource external="8"> </resource> - <string> "jump" </string> - <vector2> 668.073, 262.788 </vector2> - <resource external="9"> </resource> - <string> "shoot" </string> - </array> - <string> "version" </string> - <int> 2 </int> - </dictionary> - - </main_resource> -</resource_file>
\ No newline at end of file diff --git a/demos/2d/platformer/robot_demo.png b/demos/2d/platformer/robot_demo.png Binary files differdeleted file mode 100644 index bba8c63874..0000000000 --- a/demos/2d/platformer/robot_demo.png +++ /dev/null diff --git a/demos/2d/platformer/scroll_bg_cloud_1.png b/demos/2d/platformer/scroll_bg_cloud_1.png Binary files differdeleted file mode 100644 index 728d454b5c..0000000000 --- a/demos/2d/platformer/scroll_bg_cloud_1.png +++ /dev/null diff --git a/demos/2d/platformer/scroll_bg_cloud_2.png b/demos/2d/platformer/scroll_bg_cloud_2.png Binary files differdeleted file mode 100644 index 66e0cf2fb5..0000000000 --- a/demos/2d/platformer/scroll_bg_cloud_2.png +++ /dev/null diff --git a/demos/2d/platformer/scroll_bg_cloud_3.png b/demos/2d/platformer/scroll_bg_cloud_3.png Binary files differdeleted file mode 100644 index 3586bb4072..0000000000 --- a/demos/2d/platformer/scroll_bg_cloud_3.png +++ /dev/null diff --git a/demos/2d/platformer/scroll_bg_fg_1.png b/demos/2d/platformer/scroll_bg_fg_1.png Binary files differdeleted file mode 100644 index e64c446f65..0000000000 --- a/demos/2d/platformer/scroll_bg_fg_1.png +++ /dev/null diff --git a/demos/2d/platformer/scroll_bg_fg_2.png b/demos/2d/platformer/scroll_bg_fg_2.png Binary files differdeleted file mode 100644 index ef9601183b..0000000000 --- a/demos/2d/platformer/scroll_bg_fg_2.png +++ /dev/null diff --git a/demos/2d/platformer/scroll_bg_sky.png b/demos/2d/platformer/scroll_bg_sky.png Binary files differdeleted file mode 100644 index 04c196510f..0000000000 --- a/demos/2d/platformer/scroll_bg_sky.png +++ /dev/null diff --git a/demos/2d/platformer/seesaw.xml b/demos/2d/platformer/seesaw.xml deleted file mode 100644 index 760423167f..0000000000 --- a/demos/2d/platformer/seesaw.xml +++ /dev/null @@ -1,230 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<resource_file type="PackedScene" subresource_count="4" version="2.0" version_name="Godot Engine v2.0.alpha.custom_build"> - <ext_resource path="res://plank.png" type="Texture" index="0"></ext_resource> - <ext_resource path="res://plankpin.png" type="Texture" index="1"></ext_resource> - <resource type="RectangleShape2D" path="local://1"> - <real name="custom_solver_bias"> 0 </real> - <vector2 name="extents"> 128, 8 </vector2> - - </resource> - <main_resource> - <dictionary name="_bundled" shared="false"> - <string> "conn_count" </string> - <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="40"> - <string> "seesaw" </string> - <string> "__meta__" </string> - <string> "Node2D" </string> - <string> "plank" </string> - <string> "input/pickable" </string> - <string> "shapes/0/shape" </string> - <string> "shapes/0/transform" </string> - <string> "shapes/0/trigger" </string> - <string> "collision/layers" </string> - <string> "collision/mask" </string> - <string> "mode" </string> - <string> "mass" </string> - <string> "friction" </string> - <string> "bounce" </string> - <string> "gravity_scale" </string> - <string> "custom_integrator" </string> - <string> "continuous_cd" </string> - <string> "contacts_reported" </string> - <string> "contact_monitor" </string> - <string> "sleeping" </string> - <string> "can_sleep" </string> - <string> "velocity/linear" </string> - <string> "velocity/angular" </string> - <string> "damp_override/linear" </string> - <string> "damp_override/angular" </string> - <string> "RigidBody2D" </string> - <string> "sprite" </string> - <string> "texture" </string> - <string> "Sprite" </string> - <string> "CollisionShape2D" </string> - <string> "shape" </string> - <string> "trigger" </string> - <string> "_update_shape_index" </string> - <string> "pin" </string> - <string> "node_a" </string> - <string> "node_b" </string> - <string> "bias/bias" </string> - <string> "softness" </string> - <string> "PinJoint2D" </string> - <string> "transform/pos" </string> - </string_array> - <string> "node_count" </string> - <int> 6 </int> - <string> "node_paths" </string> - <array len="0" shared="false"> - </array> - <string> "nodes" </string> - <int_array len="106"> -1, -1, 2, 0, -1, 1, 1, 0, 0, 0, 0, 25, 3, -1, 21, 4, 1, 5, 2, 6, 3, 7, 1, 8, 4, 9, 4, 10, 5, 11, 6, 12, 7, 13, 8, 14, 7, 15, 1, 16, 5, 17, 5, 18, 1, 19, 1, 20, 9, 21, 10, 22, 8, 23, 11, 24, 11, 0, 1, 0, 28, 26, -1, 1, 27, 12, 0, 1, 0, 29, 29, -1, 3, 30, 2, 31, 1, 32, 13, 0, 0, 0, 38, 33, -1, 4, 34, 14, 35, 15, 36, 8, 37, 8, 0, 0, 0, 28, 28, -1, 2, 39, 16, 27, 17, 0 </int_array> - <string> "variants" </string> - <array len="18" shared="false"> - <dictionary shared="false"> - <string> "__editor_plugin_screen__" </string> - <string> "2D" </string> - <string> "__editor_plugin_states__" </string> - <dictionary shared="false"> - <string> "2D" </string> - <dictionary shared="false"> - <string> "ofs" </string> - <vector2> -116.979, -109.897 </vector2> - <string> "snap_grid" </string> - <bool> False </bool> - <string> "snap_offset" </string> - <vector2> 0, 0 </vector2> - <string> "snap_pixel" </string> - <bool> False </bool> - <string> "snap_relative" </string> - <bool> False </bool> - <string> "snap_rotation" </string> - <bool> False </bool> - <string> "snap_rotation_offset" </string> - <real> 0 </real> - <string> "snap_rotation_step" </string> - <real> 0.261799 </real> - <string> "snap_show_grid" </string> - <bool> False </bool> - <string> "snap_step" </string> - <vector2> 10, 10 </vector2> - <string> "zoom" </string> - <real> 2.050547 </real> - </dictionary> - <string> "3D" </string> - <dictionary shared="false"> - <string> "ambient_light_color" </string> - <color> 0.15, 0.15, 0.15, 1 </color> - <string> "default_light" </string> - <bool> True </bool> - <string> "default_srgb" </string> - <bool> False </bool> - <string> "deflight_rot_x" </string> - <real> 0.942478 </real> - <string> "deflight_rot_y" </string> - <real> 0.628319 </real> - <string> "fov" </string> - <real> 179 </real> - <string> "show_grid" </string> - <bool> True </bool> - <string> "show_origin" </string> - <bool> True </bool> - <string> "viewport_mode" </string> - <int> 1 </int> - <string> "viewports" </string> - <array len="4" shared="false"> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> True </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - </array> - <string> "zfar" </string> - <real> 500 </real> - <string> "znear" </string> - <real> 0.1 </real> - </dictionary> - <string> "Anim" </string> - <dictionary shared="false"> - <string> "visible" </string> - <bool> False </bool> - </dictionary> - </dictionary> - <string> "__editor_run_settings__" </string> - <dictionary shared="false"> - <string> "custom_args" </string> - <string> "-l $scene" </string> - <string> "run_mode" </string> - <int> 0 </int> - </dictionary> - </dictionary> - <bool> False </bool> - <resource resource_type="Shape2D" path="local://1"> </resource> - <matrix32> 1, 0, 0, 1, 0, 0 </matrix32> - <int> 1 </int> - <int> 0 </int> - <real> 5.102041 </real> - <real> 1 </real> - <real> 0 </real> - <bool> True </bool> - <vector2> 0, 0 </vector2> - <real> -1 </real> - <resource external="0"> </resource> - <int> -1 </int> - <node_path> "../plank" </node_path> - <node_path> "" </node_path> - <vector2> -0.290825, 20.2425 </vector2> - <resource external="1"> </resource> - </array> - <string> "version" </string> - <int> 2 </int> - </dictionary> - - </main_resource> -</resource_file>
\ No newline at end of file diff --git a/demos/2d/platformer/sound_coin.wav b/demos/2d/platformer/sound_coin.wav Binary files differdeleted file mode 100644 index e78579f461..0000000000 --- a/demos/2d/platformer/sound_coin.wav +++ /dev/null diff --git a/demos/2d/platformer/sound_explode.wav b/demos/2d/platformer/sound_explode.wav Binary files differdeleted file mode 100644 index 229c85399c..0000000000 --- a/demos/2d/platformer/sound_explode.wav +++ /dev/null diff --git a/demos/2d/platformer/sound_hit.wav b/demos/2d/platformer/sound_hit.wav Binary files differdeleted file mode 100644 index 4fb3b13812..0000000000 --- a/demos/2d/platformer/sound_hit.wav +++ /dev/null diff --git a/demos/2d/platformer/sound_jump.wav b/demos/2d/platformer/sound_jump.wav Binary files differdeleted file mode 100644 index e9942e65e6..0000000000 --- a/demos/2d/platformer/sound_jump.wav +++ /dev/null diff --git a/demos/2d/platformer/sound_shoot.wav b/demos/2d/platformer/sound_shoot.wav Binary files differdeleted file mode 100644 index ad74f328cb..0000000000 --- a/demos/2d/platformer/sound_shoot.wav +++ /dev/null diff --git a/demos/2d/platformer/stage.xml b/demos/2d/platformer/stage.xml deleted file mode 100644 index ea0daf3ff8..0000000000 --- a/demos/2d/platformer/stage.xml +++ /dev/null @@ -1,250 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<resource_file type="PackedScene" subresource_count="10" version="2.0" version_name="Godot Engine v2.0.beta.custom_build"> - <ext_resource path="res://music.ogg" type="AudioStream" index="6"></ext_resource> - <ext_resource path="res://tileset.xml" type="TileSet" index="0"></ext_resource> - <ext_resource path="res://coin.xml" type="PackedScene" index="1"></ext_resource> - <ext_resource path="res://moving_platform.xml" type="PackedScene" index="2"></ext_resource> - <ext_resource path="res://one_way_platform.xml" type="PackedScene" index="4"></ext_resource> - <ext_resource path="res://player.xml" type="PackedScene" index="5"></ext_resource> - <ext_resource path="res://seesaw.xml" type="PackedScene" index="3"></ext_resource> - <ext_resource path="res://enemy.xml" type="PackedScene" index="7"></ext_resource> - <ext_resource path="res://parallax_bg.xml" type="PackedScene" index="8"></ext_resource> - <main_resource> - <dictionary name="_bundled" shared="false"> - <string> "conn_count" </string> - <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="110"> - <string> "stage" </string> - <string> "__meta__" </string> - <string> "Node" </string> - <string> "tile_map" </string> - <string> "mode" </string> - <string> "tile_set" </string> - <string> "cell/size" </string> - <string> "cell/quadrant_size" </string> - <string> "cell/custom_transform" </string> - <string> "cell/half_offset" </string> - <string> "cell/tile_origin" </string> - <string> "cell/y_sort" </string> - <string> "collision/use_kinematic" </string> - <string> "collision/friction" </string> - <string> "collision/bounce" </string> - <string> "collision/layers" </string> - <string> "collision/mask" </string> - <string> "occluder/light_mask" </string> - <string> "tile_data" </string> - <string> "TileMap" </string> - <string> "coins" </string> - <string> "coin" </string> - <string> "transform/pos" </string> - <string> "linear_damp" </string> - <string> "coin 2" </string> - <string> "coin 3" </string> - <string> "coin 4" </string> - <string> "coin 5" </string> - <string> "coin 6" </string> - <string> "coin 7" </string> - <string> "coin 8" </string> - <string> "coin 9" </string> - <string> "coin 10" </string> - <string> "coin 11" </string> - <string> "coin 12" </string> - <string> "coin 13" </string> - <string> "coin 14" </string> - <string> "coin 15" </string> - <string> "coin 16" </string> - <string> "coin 17" </string> - <string> "coin 18" </string> - <string> "coin 19" </string> - <string> "coin 20" </string> - <string> "coin 21" </string> - <string> "coin 22" </string> - <string> "coin 23" </string> - <string> "coin 24" </string> - <string> "coin 25" </string> - <string> "coin 26" </string> - <string> "coin 27" </string> - <string> "coin 28" </string> - <string> "coin 29" </string> - <string> "coin 30" </string> - <string> "coin 31" </string> - <string> "coin 31 2" </string> - <string> "coin 31 3" </string> - <string> "coin 31 4" </string> - <string> "coin 31 5" </string> - <string> "coin 31 6" </string> - <string> "coin 32" </string> - <string> "coin 31 7" </string> - <string> "coin 31 7 2" </string> - <string> "coin 31 7 3" </string> - <string> "coin 31 7 4" </string> - <string> "coin 31 7 5" </string> - <string> "props" </string> - <string> "moving_platform" </string> - <string> "motion" </string> - <string> "cycle" </string> - <string> "moving_platform 2" </string> - <string> "moving_platform 3" </string> - <string> "seesaw" </string> - <string> "one_way_platform" </string> - <string> "player" </string> - <string> "music" </string> - <string> "stream/stream" </string> - <string> "stream/play" </string> - <string> "stream/loop" </string> - <string> "stream/volume_db" </string> - <string> "stream/autoplay" </string> - <string> "stream/paused" </string> - <string> "stream/loop_restart_time" </string> - <string> "stream/buffering_ms" </string> - <string> "StreamPlayer" </string> - <string> "enemies" </string> - <string> "enemy 5" </string> - <string> "enemy 6" </string> - <string> "enemy 7" </string> - <string> "enemy 8" </string> - <string> "enemy 9" </string> - <string> "enemy 10" </string> - <string> "enemy 11" </string> - <string> "enemy 12" </string> - <string> "enemy 13" </string> - <string> "enemy 14" </string> - <string> "enemy 15" </string> - <string> "parallax_bg" </string> - <string> "Label" </string> - <string> "margin/left" </string> - <string> "margin/top" </string> - <string> "margin/right" </string> - <string> "margin/bottom" </string> - <string> "focus/ignore_mouse" </string> - <string> "focus/stop_mouse" </string> - <string> "size_flags/horizontal" </string> - <string> "text" </string> - <string> "autowrap" </string> - <string> "percent_visible" </string> - <string> "lines_skipped" </string> - <string> "max_lines_visible" </string> - </string_array> - <string> "node_count" </string> - <int> 67 </int> - <string> "node_paths" </string> - <array len="0" shared="false"> - </array> - <string> "nodes" </string> - <int_array len="757"> -1, -1, 2, 0, -1, 1, 1, 0, 0, 0, 0, 19, 3, -1, 16, 4, 1, 5, 2, 6, 3, 7, 4, 8, 5, 9, 6, 10, 1, 11, 7, 12, 7, 13, 8, 14, 9, 15, 10, 16, 10, 17, 10, 18, 11, 1, 12, 0, 0, 0, 2, 20, -1, 0, 0, 2, 0, 2147483647, 21, 13, 2, 22, 14, 23, 15, 0, 2, 0, 2147483647, 24, 13, 2, 22, 16, 23, 15, 0, 2, 0, 2147483647, 25, 13, 2, 22, 17, 23, 15, 0, 2, 0, 2147483647, 26, 13, 2, 22, 18, 23, 15, 0, 2, 0, 2147483647, 27, 13, 2, 22, 19, 23, 15, 0, 2, 0, 2147483647, 28, 13, 2, 22, 20, 23, 15, 0, 2, 0, 2147483647, 29, 13, 2, 22, 21, 23, 15, 0, 2, 0, 2147483647, 30, 13, 2, 22, 22, 23, 15, 0, 2, 0, 2147483647, 31, 13, 2, 22, 23, 23, 15, 0, 2, 0, 2147483647, 32, 13, 2, 22, 24, 23, 15, 0, 2, 0, 2147483647, 33, 13, 2, 22, 25, 23, 15, 0, 2, 0, 2147483647, 34, 13, 2, 22, 26, 23, 15, 0, 2, 0, 2147483647, 35, 13, 2, 22, 27, 23, 15, 0, 2, 0, 2147483647, 36, 13, 2, 22, 28, 23, 15, 0, 2, 0, 2147483647, 37, 13, 2, 22, 29, 23, 15, 0, 2, 0, 2147483647, 38, 13, 2, 22, 30, 23, 15, 0, 2, 0, 2147483647, 39, 13, 2, 22, 31, 23, 15, 0, 2, 0, 2147483647, 40, 13, 2, 22, 32, 23, 15, 0, 2, 0, 2147483647, 41, 13, 2, 22, 33, 23, 15, 0, 2, 0, 2147483647, 42, 13, 2, 22, 34, 23, 15, 0, 2, 0, 2147483647, 43, 13, 2, 22, 35, 23, 15, 0, 2, 0, 2147483647, 44, 13, 2, 22, 36, 23, 15, 0, 2, 0, 2147483647, 45, 13, 2, 22, 37, 23, 15, 0, 2, 0, 2147483647, 46, 13, 2, 22, 38, 23, 15, 0, 2, 0, 2147483647, 47, 13, 2, 22, 39, 23, 15, 0, 2, 0, 2147483647, 48, 13, 2, 22, 40, 23, 15, 0, 2, 0, 2147483647, 49, 13, 2, 22, 41, 23, 15, 0, 2, 0, 2147483647, 50, 13, 2, 22, 42, 23, 15, 0, 2, 0, 2147483647, 51, 13, 2, 22, 43, 23, 15, 0, 2, 0, 2147483647, 52, 13, 2, 22, 44, 23, 15, 0, 2, 0, 2147483647, 53, 13, 2, 22, 45, 23, 15, 0, 2, 0, 2147483647, 54, 13, 2, 22, 46, 23, 15, 0, 2, 0, 2147483647, 55, 13, 2, 22, 47, 23, 15, 0, 2, 0, 2147483647, 56, 13, 2, 22, 48, 23, 15, 0, 2, 0, 2147483647, 57, 13, 2, 22, 49, 23, 15, 0, 2, 0, 2147483647, 58, 13, 2, 22, 50, 23, 15, 0, 2, 0, 2147483647, 59, 13, 2, 22, 51, 23, 15, 0, 2, 0, 2147483647, 60, 13, 2, 22, 52, 23, 15, 0, 2, 0, 2147483647, 61, 13, 2, 22, 53, 23, 15, 0, 2, 0, 2147483647, 62, 13, 2, 22, 54, 23, 15, 0, 2, 0, 2147483647, 63, 13, 2, 22, 55, 23, 15, 0, 2, 0, 2147483647, 64, 13, 2, 22, 56, 23, 15, 0, 0, 0, 2, 65, -1, 0, 0, 45, 0, 2147483647, 66, 57, 3, 22, 58, 67, 59, 68, 60, 0, 45, 0, 2147483647, 69, 57, 3, 22, 61, 67, 62, 68, 63, 0, 45, 0, 2147483647, 70, 57, 3, 22, 64, 67, 65, 68, 63, 0, 45, 0, 2147483647, 71, 66, 1, 22, 67, 0, 45, 0, 2147483647, 72, 68, 1, 22, 69, 0, 0, 0, 2147483647, 73, 70, 1, 22, 71, 0, 0, 0, 83, 74, -1, 8, 75, 72, 76, 7, 77, 73, 78, 74, 79, 73, 80, 7, 81, 9, 82, 75, 0, 0, 0, 2, 84, -1, 0, 0, 53, 0, 2147483647, 85, 76, 1, 22, 77, 0, 53, 0, 2147483647, 86, 76, 1, 22, 78, 0, 53, 0, 2147483647, 87, 76, 1, 22, 79, 0, 53, 0, 2147483647, 88, 76, 1, 22, 80, 0, 53, 0, 2147483647, 89, 76, 1, 22, 81, 0, 53, 0, 2147483647, 90, 76, 1, 22, 82, 0, 53, 0, 2147483647, 91, 76, 1, 22, 83, 0, 53, 0, 2147483647, 92, 76, 1, 22, 84, 0, 53, 0, 2147483647, 93, 76, 1, 22, 85, 0, 53, 0, 2147483647, 94, 76, 1, 22, 86, 0, 53, 0, 2147483647, 95, 76, 1, 22, 87, 0, 0, 0, 2147483647, 96, 88, 0, 0, 0, 0, 97, 97, -1, 12, 98, 89, 99, 90, 100, 91, 101, 92, 102, 73, 103, 73, 104, 6, 105, 93, 106, 73, 107, 8, 108, 1, 109, 94, 0 </int_array> - <string> "variants" </string> - <array len="95" shared="false"> - <dictionary shared="false"> - <string> "__editor_plugin_screen__" </string> - <string> "2D" </string> - </dictionary> - <int> 0 </int> - <resource external="0"> </resource> - <vector2> 64, 64 </vector2> - <int> 8 </int> - <matrix32> 1, 0, 0, 1, 0, 0 </matrix32> - <int> 2 </int> - <bool> False </bool> - <real> 1 </real> - <real> 0 </real> - <int> 1 </int> - <int_array len="2008"> 0, 2, 70, 536870914, 71, 10, 72, 10, 73, 10, 74, 10, 75, 10, 76, 10, 77, 10, 78, 10, 65536, 2, 65606, 536870914, 65607, 10, 65608, 10, 65609, 10, 65610, 10, 65611, 10, 65612, 10, 65613, 10, 65614, 10, 131072, 2, 131142, 536870914, 131143, 10, 131144, 10, 131145, 10, 131146, 10, 131147, 10, 131148, 10, 131149, 10, 131150, 10, 196608, 2, 196626, 9, 196678, 536870914, 196679, 10, 196680, 10, 196681, 10, 196682, 10, 196683, 10, 196684, 10, 196685, 10, 196686, 10, 262144, 2, 262162, 8, 262214, 536870914, 262215, 10, 262216, 10, 262217, 10, 262218, 10, 262219, 10, 262220, 10, 262221, 10, 262222, 10, 327680, 2, 327697, 536870921, 327698, 7, 327733, 9, 327750, 536870914, 327751, 10, 327752, 10, 327753, 10, 327754, 10, 327755, 10, 327756, 10, 327757, 10, 327758, 10, 393216, 2, 393233, 536870920, 393234, 7, 393257, 9, 393269, 7, 393286, 536870914, 393287, 10, 393288, 10, 393289, 10, 393290, 10, 393291, 10, 393292, 10, 393293, 10, 393294, 10, 458752, 2, 458769, 7, 458770, 8, 458790, 9, 458793, 8, 458805, 8, 458822, 536870914, 458823, 10, 458824, 10, 458825, 10, 458826, 10, 458827, 10, 458828, 10, 458829, 10, 458830, 10, 524288, 4, 524289, 1, 524304, 536870913, 524305, 536870918, 524306, 6, 524307, 5, 524308, 1, 524326, 8, 524329, 7, 524341, 7, 524358, 536870914, 524359, 10, 524360, 10, 524361, 10, 524362, 10, 524363, 10, 524364, 10, 524365, 10, 524366, 10, 589824, 10, 589825, 13, 589840, 536870914, 589841, 10, 589842, 10, 589843, 10, 589844, 2, 589862, 7, 589865, 7, 589876, 536870913, 589877, 6, 589878, 1, 589894, 536870914, 589895, 10, 589896, 10, 589897, 10, 589898, 10, 589899, 10, 589900, 10, 589901, 10, 589902, 10, 655360, 2, 655376, 536870914, 655377, 10, 655378, 10, 655379, 10, 655380, 2, 655398, 7, 655401, 8, 655412, 536870925, 655413, 11, 655414, 13, 655430, 536870914, 655431, 10, 655432, 10, 655433, 10, 655434, 10, 655435, 10, 655436, 10, 655437, 10, 655438, 10, 720896, 2, 720912, 536870914, 720913, 10, 720914, 10, 720915, 10, 720916, 2, 720934, 8, 720937, 7, 720958, 536870913, 720959, 5, 720960, 536870917, 720961, 5, 720962, 5, 720963, 536870917, 720964, 5, 720965, 0, 720966, 536870916, 720967, 10, 720968, 10, 720969, 10, 720970, 10, 720971, 10, 720972, 10, 720973, 10, 720974, 10, 786432, 2, 786437, 9, 786448, 536870914, 786449, 10, 786450, 10, 786451, 10, 786452, 2, 786464, 536870913, 786465, 1, 786470, 7, 786473, 7, 786474, 536870924, 786475, 1, 786494, 536870914, 786495, 10, 786496, 10, 786497, 10, 786498, 10, 786499, 10, 786500, 10, 786501, 10, 786502, 10, 786503, 10, 786504, 10, 786505, 10, 786506, 10, 786507, 10, 786508, 10, 786509, 10, 851968, 2, 851973, 7, 851984, 536870914, 851985, 10, 851986, 10, 851987, 10, 851988, 2, 851996, 536870913, 851997, 1, 852000, 536870914, 852001, 3, 852006, 7, 852009, 536870913, 852011, 2, 852030, 536870914, 852031, 10, 852032, 10, 852033, 10, 852034, 10, 852035, 10, 852036, 10, 852037, 10, 852038, 10, 852039, 10, 852040, 10, 852041, 10, 852042, 10, 852043, 10, 852044, 10, 852045, 10, 917504, 2, 917506, 9, 917509, 7, 917512, 536870921, 917520, 536870925, 917521, 11, 917522, 11, 917523, 11, 917524, 13, 917532, 536870925, 917533, 13, 917536, 536870914, 917537, 4, 917538, 1, 917540, 536870913, 917541, 0, 917542, 1, 917545, 536870914, 917546, 10, 917547, 4, 917548, 1, 917566, 536870914, 917567, 10, 917568, 10, 917569, 10, 917570, 10, 917571, 10, 917572, 10, 917573, 10, 917574, 10, 917575, 10, 917576, 10, 917577, 10, 917578, 10, 917579, 10, 917580, 10, 917581, 10, 983040, 2, 983042, 7, 983045, 7, 983048, 536870920, 983050, 536870913, 983051, 0, 983052, 1, 983064, 536870913, 983065, 1, 983072, 536870914, 983073, 10, 983074, 4, 983075, 0, 983076, 536870916, 983077, 10, 983078, 4, 983079, 536870912, 983080, 536870912, 983081, 536870916, 983082, 10, 983083, 10, 983084, 2, 983095, 9, 983102, 536870914, 983103, 10, 983104, 10, 983105, 10, 983106, 10, 983107, 10, 983108, 10, 983109, 10, 983110, 10, 983111, 10, 983112, 10, 983113, 10, 983114, 10, 983115, 10, 983116, 10, 983117, 10, 1048576, 2, 1048578, 8, 1048581, 8, 1048584, 536870919, 1048586, 536870914, 1048587, 536870922, 1048588, 2, 1048600, 536870925, 1048601, 13, 1048604, 9, 1048608, 536870925, 1048609, 536870923, 1048610, 536870923, 1048611, 536870923, 1048612, 10, 1048613, 10, 1048614, 10, 1048615, 10, 1048616, 10, 1048617, 10, 1048618, 10, 1048619, 10, 1048620, 4, 1048621, 1, 1048630, 536870921, 1048631, 8, 1048638, 536870914, 1048639, 10, 1048640, 10, 1048641, 10, 1048642, 10, 1048643, 10, 1048644, 10, 1048645, 10, 1048646, 10, 1048647, 10, 1048648, 10, 1048649, 10, 1048650, 10, 1048651, 10, 1048652, 10, 1048653, 10, 1114112, 4, 1114113, 0, 1114114, 6, 1114115, 0, 1114116, 0, 1114117, 6, 1114118, 1, 1114120, 536870920, 1114122, 536870925, 1114123, 11, 1114124, 13, 1114128, 536870913, 1114129, 5, 1114130, 536870917, 1114131, 5, 1114132, 0, 1114133, 1, 1114140, 7, 1114141, 536870921, 1114148, 536870914, 1114149, 10, 1114150, 10, 1114151, 10, 1114152, 10, 1114153, 10, 1114154, 10, 1114155, 10, 1114156, 10, 1114157, 2, 1114166, 536870920, 1114167, 8, 1114174, 536870914, 1114175, 10, 1114176, 10, 1114177, 10, 1114178, 10, 1114179, 10, 1114180, 10, 1114181, 10, 1114182, 10, 1114183, 10, 1114184, 10, 1114185, 10, 1114186, 10, 1114187, 10, 1114188, 10, 1179648, 10, 1179649, 10, 1179650, 10, 1179651, 10, 1179652, 10, 1179653, 10, 1179654, 2, 1179656, 536870919, 1179664, 536870915, 1179665, 10, 1179666, 10, 1179667, 10, 1179668, 10, 1179669, 4, 1179670, 12, 1179675, 9, 1179676, 8, 1179677, 8, 1179684, 536870914, 1179685, 10, 1179686, 10, 1179687, 10, 1179688, 10, 1179689, 10, 1179690, 10, 1179691, 10, 1179692, 10, 1179693, 4, 1179694, 1, 1179701, 9, 1179702, 536870919, 1179703, 7, 1179710, 536870914, 1179711, 10, 1179712, 10, 1179713, 10, 1179714, 10, 1179715, 10, 1179716, 10, 1179717, 10, 1179718, 10, 1179719, 10, 1179720, 10, 1179721, 10, 1179722, 10, 1245184, 10, 1245185, 10, 1245186, 10, 1245187, 10, 1245188, 10, 1245189, 10, 1245190, 2, 1245192, 536870919, 1245199, 536870913, 1245200, 536870916, 1245201, 10, 1245202, 10, 1245203, 10, 1245204, 10, 1245205, 10, 1245207, 1, 1245211, 7, 1245212, 7, 1245213, 536870920, 1245220, 536870914, 1245221, 10, 1245222, 10, 1245223, 10, 1245224, 10, 1245225, 10, 1245226, 10, 1245227, 10, 1245228, 10, 1245229, 10, 1245230, 2, 1245237, 8, 1245238, 536870919, 1245239, 8, 1245240, 536870921, 1245246, 536870914, 1245247, 10, 1245248, 10, 1245249, 10, 1245250, 10, 1245251, 10, 1245252, 10, 1245253, 10, 1245254, 10, 1245255, 10, 1245256, 10, 1245257, 10, 1245258, 10, 1310720, 10, 1310721, 10, 1310722, 10, 1310723, 10, 1310724, 10, 1310725, 10, 1310726, 2, 1310728, 536870920, 1310730, 536870913, 1310731, 1, 1310734, 536870913, 1310735, 536870916, 1310736, 10, 1310737, 10, 1310738, 10, 1310739, 10, 1310740, 10, 1310741, 10, 1310742, 10, 1310743, 4, 1310744, 1, 1310747, 8, 1310748, 7, 1310749, 536870919, 1310756, 536870914, 1310757, 10, 1310758, 10, 1310759, 10, 1310760, 10, 1310761, 10, 1310762, 10, 1310763, 10, 1310764, 10, 1310765, 10, 1310766, 4, 1310767, 5, 1310768, 12, 1310773, 7, 1310774, 536870919, 1310775, 7, 1310776, 536870919, 1310782, 536870914, 1310783, 10, 1310784, 10, 1310785, 10, 1310786, 10, 1310787, 10, 1310788, 10, 1310789, 10, 1310790, 10, 1310791, 10, 1310792, 10, 1310793, 10, 1376256, 10, 1376257, 10, 1376258, 10, 1376259, 10, 1376260, 10, 1376261, 10, 1376262, 4, 1376263, 0, 1376264, 0, 1376265, 0, 1376266, 536870916, 1376267, 4, 1376268, 0, 1376269, 0, 1376270, 536870916, 1376271, 10, 1376272, 10, 1376273, 10, 1376274, 10, 1376275, 10, 1376276, 10, 1376277, 10, 1376278, 10, 1376279, 10, 1376280, 4, 1376281, 12, 1376283, 8, 1376284, 8, 1376285, 536870920, 1376287, 536870924, 1376288, 0, 1376289, 5, 1376290, 536870917, 1376291, 0, 1376292, 536870916, 1376293, 10, 1376294, 10, 1376295, 10, 1376296, 10, 1376297, 10, 1376298, 10, 1376299, 10, 1376300, 10, 1376301, 10, 1376302, 10, 1376303, 10, 1376305, 12, 1376309, 7, 1376310, 536870920, 1376311, 7, 1376312, 536870920, 1376318, 536870914, 1376319, 10, 1376320, 10, 1376321, 10, 1376322, 10, 1376323, 10, 1376324, 10, 1376325, 10, 1376326, 10, 1376327, 10, 1376328, 10, 1441792, 10, 1441793, 10, 1441794, 10, 1441795, 10, 1441796, 10, 1441797, 10, 1441798, 10, 1441799, 10, 1441800, 10, 1441801, 10, 1441802, 10, 1441803, 10, 1441804, 10, 1441805, 10, 1441806, 10, 1441807, 10, 1441808, 10, 1441809, 10, 1441810, 10, 1441811, 10, 1441812, 10, 1441813, 10, 1441814, 10, 1441815, 10, 1441816, 10, 1441818, 0, 1441819, 6, 1441820, 6, 1441821, 536870918, 1441822, 5, 1441824, 10, 1441825, 10, 1441826, 10, 1441827, 10, 1441828, 10, 1441829, 10, 1441830, 10, 1441831, 10, 1441832, 10, 1441833, 10, 1441834, 10, 1441835, 10, 1441836, 10, 1441837, 10, 1441838, 10, 1441839, 10, 1441840, 10, 1441842, 0, 1441843, 0, 1441844, 0, 1441845, 6, 1441846, 536870918, 1441847, 6, 1441848, 536870918, 1441849, 0, 1441850, 5, 1441851, 536870917, 1441852, 5, 1441853, 0, 1441854, 536870916, 1441855, 10, 1441856, 10, 1441857, 10, 1441858, 10, 1441859, 10, 1441860, 10, 1441861, 10, 1441862, 10, 1441863, 10, 1507328, 10, 1507329, 10, 1507330, 10, 1507331, 10, 1507332, 10, 1507333, 10, 1507334, 10, 1507335, 10, 1507336, 10, 1507337, 10, 1507338, 10, 1507339, 10, 1507340, 10, 1507341, 10, 1507342, 10, 1507343, 10, 1507344, 10, 1507345, 10, 1507346, 10, 1507347, 10, 1507348, 10, 1507349, 10, 1507350, 10, 1507351, 10, 1507352, 10, 1507353, 10, 1507354, 10, 1507355, 10, 1507356, 10, 1507357, 10, 1507358, 10, 1507359, 10, 1507360, 10, 1507361, 10, 1507362, 10, 1507363, 10, 1507364, 10, 1507365, 10, 1507366, 10, 1507367, 10, 1507368, 10, 1507369, 10, 1507370, 10, 1507371, 10, 1507372, 10, 1507373, 10, 1507374, 10, 1507375, 10, 1507376, 10, 1507377, 10, 1507378, 10, 1507379, 10, 1507380, 10, 1507381, 10, 1507382, 10, 1507383, 10, 1507384, 10, 1507385, 10, 1507386, 10, 1507387, 10, 1507388, 10, 1507389, 10, 1507390, 10, 1507391, 10, 1507392, 10, 1507393, 10, 1507394, 10, 1507395, 10, 1507396, 10, 1507397, 10, 1507398, 10, 1507399, 10, 1572864, 10, 1572865, 10, 1572866, 10, 1572867, 10, 1572868, 10, 1572869, 10, 1572870, 10, 1572871, 10, 1572872, 10, 1572873, 10, 1572874, 10, 1572875, 10, 1572876, 10, 1572877, 10, 1572878, 10, 1572879, 10, 1572880, 10, 1572881, 10, 1572882, 10, 1572883, 10, 1572884, 10, 1572885, 10, 1572886, 10, 1572887, 10, 1572888, 10, 1572889, 10, 1572890, 10, 1572891, 10, 1572892, 10, 1572893, 10, 1572894, 10, 1572895, 10, 1572896, 10, 1572897, 10, 1572898, 10, 1572899, 10, 1572900, 10, 1572901, 10, 1572902, 10, 1572903, 10, 1572904, 10, 1572905, 10, 1572906, 10, 1572907, 10, 1572908, 10, 1572909, 10, 1572910, 10, 1572911, 10, 1572912, 10, 1572913, 10, 1572914, 10, 1572915, 10, 1572916, 10, 1572917, 10, 1572918, 10, 1572919, 10, 1572920, 10, 1572921, 10, 1572922, 10, 1572923, 10, 1572924, 10, 1572925, 10, 1572926, 10, 1572927, 10, 1572928, 10, 1572929, 10, 1572930, 10, 1572931, 10, 1572932, 10, 1572933, 10, 1572934, 10, 1572935, 10, 1638400, 10, 1638401, 10, 1638402, 10, 1638403, 10, 1638404, 10, 1638405, 10, 1638406, 10, 1638407, 10, 1638408, 10, 1638409, 10, 1638410, 10, 1638411, 10, 1638412, 10, 1638413, 10, 1638414, 10, 1638415, 10, 1638416, 10, 1638417, 10, 1638418, 10, 1638419, 10, 1638420, 10, 1638421, 10, 1638422, 10, 1638423, 10, 1638424, 10, 1638425, 10, 1638426, 10, 1638427, 10, 1638428, 10, 1638429, 10, 1638430, 10, 1638431, 10, 1638432, 10, 1638433, 10, 1638434, 10, 1638435, 10, 1638436, 10, 1638437, 10, 1638438, 10, 1638439, 10, 1638440, 10, 1638441, 10, 1638442, 10, 1638443, 10, 1638444, 10, 1638445, 10, 1638446, 10, 1638447, 10, 1638448, 10, 1638449, 10, 1638450, 10, 1638451, 10, 1638452, 10, 1638453, 10, 1638454, 10, 1638455, 10, 1638456, 10, 1638457, 10, 1638458, 10, 1638459, 10, 1638460, 10, 1638461, 10, 1638462, 10, 1638463, 10, 1638464, 10, 1638465, 10, 1638466, 10, 1638467, 10, 1638468, 10, 1638469, 10, 1638470, 10, 1638471, 10, 1703952, 10, 1703953, 10, 1703954, 10, 1703955, 10, 1703956, 10, 1703957, 10, 1703958, 10, 1703959, 10, 1703960, 10, 1703961, 10, 1703962, 10, 1703963, 10, 1703964, 10, 1703965, 10, 1703966, 10, 1703967, 10, 1703968, 10, 1703969, 10, 1703970, 10, 1703971, 10, 1703972, 10, 1703973, 10, 1703974, 10, 1703975, 10, 1703976, 10, 1703977, 10, 1703978, 10, 1703979, 10, 1703980, 10, 1703981, 10, 1703982, 10, 1703983, 10, 1703984, 10, 1703985, 10, 1703986, 10, 1703987, 10, 1703988, 10, 1703989, 10, 1703990, 10, 1703991, 10, 1703992, 10, 1703993, 10, 1703994, 10, 1703995, 10, 1703996, 10, 1703997, 10, 1703998, 10, 1703999, 10, 1704000, 10, 1704001, 10, 1704002, 10, 1704003, 10, 1704004, 10, 1704005, 10, 1704006, 10, 1704007, 10, 1769488, 10, 1769489, 10, 1769490, 10, 1769491, 10, 1769492, 10, 1769493, 10, 1769494, 10, 1769495, 10, 1769496, 10, 1769497, 10, 1769498, 10, 1769499, 10, 1769500, 10, 1769501, 10, 1769502, 10, 1769503, 10, 1769504, 10, 1769505, 10, 1769506, 10, 1769507, 10, 1769508, 10, 1769509, 10, 1769510, 10, 1769511, 10, 1769512, 10, 1769513, 10, 1769514, 10, 1769515, 10, 1769516, 10, 1769517, 10, 1769518, 10, 1769519, 10, 1769520, 10, 1769521, 10, 1769522, 10, 1769523, 10, 1769524, 10, 1769525, 10, 1769526, 10, 1769527, 10, 1769528, 10, 1769529, 10, 1769530, 10, 1769531, 10, 1769532, 10, 1769533, 10, 1769534, 10, 1769535, 10, 1769536, 10, 1769537, 10, 1769538, 10, 1769539, 10, 1769540, 10, 1769541, 10 </int_array> - <dictionary shared="false"> - <string> "_edit_lock_" </string> - <bool> True </bool> - </dictionary> - <resource external="1"> </resource> - <vector2> 672, 1179 </vector2> - <real> 0.1 </real> - <vector2> 704, 1179 </vector2> - <vector2> 736, 1179 </vector2> - <vector2> 1120, 992 </vector2> - <vector2> 1152, 992 </vector2> - <vector2> 1184, 992 </vector2> - <vector2> 1216, 992 </vector2> - <vector2> 1248, 992 </vector2> - <vector2> 1568, 864 </vector2> - <vector2> 1632, 864 </vector2> - <vector2> 1824, 768 </vector2> - <vector2> 1888, 768 </vector2> - <vector2> 2080, 672 </vector2> - <vector2> 2144, 672 </vector2> - <vector2> 1792, 1248 </vector2> - <vector2> 1856, 1248 </vector2> - <vector2> 1920, 1248 </vector2> - <vector2> 1920, 1184 </vector2> - <vector2> 1856, 1184 </vector2> - <vector2> 1792, 1184 </vector2> - <vector2> 98.8868, 488.515 </vector2> - <vector2> 89.5989, 481.217 </vector2> - <vector2> 108.175, 481.217 </vector2> - <vector2> 116.136, 469.939 </vector2> - <vector2> 117.463, 457.997 </vector2> - <vector2> 106.184, 449.373 </vector2> - <vector2> 98.2234, 458.661 </vector2> - <vector2> 88.272, 448.71 </vector2> - <vector2> 79.6476, 457.334 </vector2> - <vector2> 82.9647, 468.612 </vector2> - <vector2> 3357.42, 465.288 </vector2> - <vector2> 3421.42, 465.288 </vector2> - <vector2> 3485.42, 465.288 </vector2> - <vector2> 3485.42, 401.288 </vector2> - <vector2> 3421.42, 401.288 </vector2> - <vector2> 3357.42, 401.288 </vector2> - <vector2> 4172.75, 605.058 </vector2> - <vector2> 4236.75, 605.058 </vector2> - <vector2> 4300.75, 605.058 </vector2> - <vector2> 4300.75, 541.058 </vector2> - <vector2> 4236.75, 541.058 </vector2> - <vector2> 4172.75, 541.058 </vector2> - <resource external="2"> </resource> - <vector2> 1451.86, 742.969 </vector2> - <vector2> 0, 140 </vector2> - <real> 5 </real> - <vector2> 624.824, 545.544 </vector2> - <vector2> 300, 0 </vector2> - <real> 10 </real> - <vector2> 3419.86, 739.662 </vector2> - <vector2> 450, 0 </vector2> - <resource external="3"> </resource> - <vector2> 2402.79, 849.52 </vector2> - <resource external="4"> </resource> - <vector2> 927.698, 1120.81 </vector2> - <resource external="5"> </resource> - <vector2> 251.684, 1045.6 </vector2> - <resource external="6"> </resource> - <bool> True </bool> - <real> 2 </real> - <int> 500 </int> - <resource external="7"> </resource> - <vector2> 834.664, 1309.6 </vector2> - <vector2> 707.665, 1225.05 </vector2> - <vector2> 1125.21, 1053.06 </vector2> - <vector2> 1292.11, 1059.24 </vector2> - <vector2> 1607.38, 923.239 </vector2> - <vector2> 2586.9, 939.059 </vector2> - <vector2> 1457.6, 688.741 </vector2> - <vector2> 1193.63, 460.381 </vector2> - <vector2> 3429.73, 540.865 </vector2> - <vector2> 3546.2, 1356.19 </vector2> - <vector2> 2406.63, 815.115 </vector2> - <resource external="8"> </resource> - <real> 12 </real> - <real> -202 </real> - <real> 358 </real> - <real> -10 </real> - <string> "This is a simple demo on how to make a platformer game with Godot."This version uses physics and the 2D physics engine for motion and collision.""The demo also shows the benefits of using the scene system, where coins,"enemies and the player are edited separatedly and instanced in the stage.""To edit the base tiles for the tileset, open the tileset_edit.xml file and follow "instructions."" </string> - <int> -1 </int> - </array> - <string> "version" </string> - <int> 2 </int> - </dictionary> - - </main_resource> -</resource_file>
\ No newline at end of file diff --git a/demos/2d/platformer/tiles_demo.png b/demos/2d/platformer/tiles_demo.png Binary files differdeleted file mode 100644 index bc738e6d38..0000000000 --- a/demos/2d/platformer/tiles_demo.png +++ /dev/null diff --git a/demos/2d/platformer/tiles_demo.png.flags b/demos/2d/platformer/tiles_demo.png.flags deleted file mode 100644 index efb2b8ce5f..0000000000 --- a/demos/2d/platformer/tiles_demo.png.flags +++ /dev/null @@ -1 +0,0 @@ -filter=false diff --git a/demos/2d/platformer/tileset.xml b/demos/2d/platformer/tileset.xml deleted file mode 100644 index d8f9a651ee..0000000000 --- a/demos/2d/platformer/tileset.xml +++ /dev/null @@ -1,191 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<resource_file type="TileSet" subresource_count="14" version="1.0" version_name="Godot Engine v1.0.stable.custom_build"> - <ext_resource path="res://tiles_demo.png" type="Texture"></ext_resource> - <resource type="ConvexPolygonShape2D" path="local://1"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, -24, 32, -24, 32, 32, -32, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://2"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, 32, -32, -24, 24, -24, 24, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://3"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, 32, -32, -32, 24, -32, 24, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://4"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -64, 32, -64, -32, -8, -32, -8, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://5"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="5"> -32, 32, -32, -32, 24, -32, 32, -24, 32, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://6"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, 32, -32, -24, 32, -24, 32, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://7"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, 32, -32, -24, 32, -24, 32, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://8"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, -32, 32, -32, 32, 32, -32, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://9"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, -56, 32, 8, 32, 64, -32, 64 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://10"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, 32, -32, -32, 24, -32, 24, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://11"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, -24, 32, -24, 32, 24, -32, 24 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://12"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, -24, 24, -24, 24, 24, -32, 24 </vector2_array> - - </resource> - <main_resource> - <string name="0/name"> "floor" </string> - <resource name="0/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="0/tex_offset"> 0, 0 </vector2> - <vector2 name="0/shape_offset"> 32, 32 </vector2> - <rect2 name="0/region"> 0, 0, 64, 64 </rect2> - <array name="0/shapes" len="1" shared="false"> - <resource resource_type="Shape2D" path="local://1"> </resource> - </array> - <string name="1/name"> "edge" </string> - <resource name="1/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="1/tex_offset"> 0, 0 </vector2> - <vector2 name="1/shape_offset"> 32, 32 </vector2> - <rect2 name="1/region"> 64, 0, 64, 64 </rect2> - <array name="1/shapes" len="1" shared="false"> - <resource resource_type="Shape2D" path="local://2"> </resource> - </array> - <string name="2/name"> "wall" </string> - <resource name="2/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="2/tex_offset"> 0, 0 </vector2> - <vector2 name="2/shape_offset"> 32, 32 </vector2> - <rect2 name="2/region"> 64, 64, 64, 64 </rect2> - <array name="2/shapes" len="1" shared="false"> - <resource resource_type="Shape2D" path="local://3"> </resource> - </array> - <string name="3/name"> "wall_deco" </string> - <resource name="3/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="3/tex_offset"> 0, 0 </vector2> - <vector2 name="3/shape_offset"> 64, 32 </vector2> - <rect2 name="3/region"> 320, 128, 128, 64 </rect2> - <array name="3/shapes" len="1" shared="false"> - <resource resource_type="Shape2D" path="local://4"> </resource> - </array> - <string name="4/name"> "corner" </string> - <resource name="4/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="4/tex_offset"> 0, 0 </vector2> - <vector2 name="4/shape_offset"> 32, 32 </vector2> - <rect2 name="4/region"> 64, 128, 64, 64 </rect2> - <array name="4/shapes" len="1" shared="false"> - <resource resource_type="Shape2D" path="local://5"> </resource> - </array> - <string name="5/name"> "flowers" </string> - <resource name="5/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="5/tex_offset"> 0, 0 </vector2> - <vector2 name="5/shape_offset"> 32, 32 </vector2> - <rect2 name="5/region"> 192, 192, 64, 64 </rect2> - <array name="5/shapes" len="1" shared="false"> - <resource resource_type="Shape2D" path="local://6"> </resource> - </array> - <string name="6/name"> "tree_base" </string> - <resource name="6/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="6/tex_offset"> 0, 0 </vector2> - <vector2 name="6/shape_offset"> 32, 32 </vector2> - <rect2 name="6/region"> 256, 192, 64, 64 </rect2> - <array name="6/shapes" len="1" shared="false"> - <resource resource_type="Shape2D" path="local://7"> </resource> - </array> - <string name="7/name"> "tree_mid" </string> - <resource name="7/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="7/tex_offset"> 0, 0 </vector2> - <vector2 name="7/shape_offset"> 0, 0 </vector2> - <rect2 name="7/region"> 256, 128, 64, 64 </rect2> - <array name="7/shapes" len="0" shared="false"> - </array> - <string name="8/name"> "tree_mid 2" </string> - <resource name="8/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="8/tex_offset"> 0, 0 </vector2> - <vector2 name="8/shape_offset"> 0, 0 </vector2> - <rect2 name="8/region"> 256, 64, 64, 64 </rect2> - <array name="8/shapes" len="0" shared="false"> - </array> - <string name="9/name"> "tree_top" </string> - <resource name="9/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="9/tex_offset"> 0, 0 </vector2> - <vector2 name="9/shape_offset"> 0, 0 </vector2> - <rect2 name="9/region"> 256, 0, 64, 64 </rect2> - <array name="9/shapes" len="0" shared="false"> - </array> - <string name="10/name"> "solid" </string> - <resource name="10/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="10/tex_offset"> 0, 0 </vector2> - <vector2 name="10/shape_offset"> 0, 0 </vector2> - <rect2 name="10/region"> 0, 64, 64, 64 </rect2> - <array name="10/shapes" len="0" shared="false"> - </array> - <string name="11/name"> "ceiling" </string> - <resource name="11/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="11/tex_offset"> 0, 0 </vector2> - <vector2 name="11/shape_offset"> 32, 32 </vector2> - <rect2 name="11/region"> 384, 64, 64, 64 </rect2> - <array name="11/shapes" len="1" shared="false"> - <resource resource_type="Shape2D" path="local://8"> </resource> - </array> - <string name="12/name"> "ramp" </string> - <resource name="12/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="12/tex_offset"> 0, 0 </vector2> - <vector2 name="12/shape_offset"> 32, 64 </vector2> - <rect2 name="12/region"> 128, 128, 64, 128 </rect2> - <array name="12/shapes" len="1" shared="false"> - <resource resource_type="Shape2D" path="local://9"> </resource> - </array> - <string name="13/name"> "ceiling2wall" </string> - <resource name="13/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="13/tex_offset"> 0, 0 </vector2> - <vector2 name="13/shape_offset"> 32, 32 </vector2> - <rect2 name="13/region"> 448, 64, 64, 64 </rect2> - <array name="13/shapes" len="1" shared="false"> - <resource resource_type="Shape2D" path="local://10"> </resource> - </array> - <string name="14/name"> "platform_floor" </string> - <resource name="14/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="14/tex_offset"> 0, 0 </vector2> - <vector2 name="14/shape_offset"> 32, 32 </vector2> - <rect2 name="14/region"> 128, 0, 64, 64 </rect2> - <array name="14/shapes" len="1" shared="false"> - <resource resource_type="Shape2D" path="local://11"> </resource> - </array> - <string name="15/name"> "platform_edge" </string> - <resource name="15/texture" resource_type="Texture" path="res://tiles_demo.png"> </resource> - <vector2 name="15/tex_offset"> 0, 0 </vector2> - <vector2 name="15/shape_offset"> 32, 32 </vector2> - <rect2 name="15/region"> 192, 0, 64, 64 </rect2> - <array name="15/shapes" len="1" shared="false"> - <resource resource_type="Shape2D" path="local://12"> </resource> - </array> - - </main_resource> -</resource_file>
\ No newline at end of file diff --git a/demos/2d/platformer/tileset_edit.xml b/demos/2d/platformer/tileset_edit.xml deleted file mode 100644 index 3ae9f1bd2a..0000000000 --- a/demos/2d/platformer/tileset_edit.xml +++ /dev/null @@ -1,342 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<resource_file type="PackedScene" subresource_count="14" version="2.0" version_name="Godot Engine v2.0.alpha.custom_build"> - <ext_resource path="res://tiles_demo.png" type="Texture" index="0"></ext_resource> - <resource type="ConvexPolygonShape2D" path="local://1"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, -24, 32, -24, 32, 32, -32, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://2"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, 32, -32, -24, 24, -24, 24, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://3"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, 32, -32, -32, 24, -32, 24, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://4"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -64, 32, -64, -32, -8, -32, -8, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://5"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="5"> -32, 32, -32, -32, 24, -32, 32, -24, 32, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://6"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, 32, -32, -24, 32, -24, 32, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://7"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, 32, -32, -24, 32, -24, 32, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://8"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, -32, 32, -32, 32, 32, -32, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://9"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, -56, 32, 8, 32, 64, -32, 64 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://10"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, 32, -32, -32, 24, -32, 24, 32 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://11"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, -24, 32, -24, 32, 24, -32, 24 </vector2_array> - - </resource> - <resource type="ConvexPolygonShape2D" path="local://12"> - <real name="custom_solver_bias"> 0 </real> - <vector2_array name="points" len="4"> -32, -24, 24, -24, 24, 24, -32, 24 </vector2_array> - - </resource> - <main_resource> - <dictionary name="_bundled" shared="false"> - <string> "conn_count" </string> - <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="49"> - <string> "Node" </string> - <string> "__meta__" </string> - <string> "floor" </string> - <string> "texture" </string> - <string> "region" </string> - <string> "region_rect" </string> - <string> "Sprite" </string> - <string> "collision" </string> - <string> "input/pickable" </string> - <string> "shapes/0/shape" </string> - <string> "shapes/0/transform" </string> - <string> "shapes/0/trigger" </string> - <string> "collision/layers" </string> - <string> "collision/mask" </string> - <string> "constant_linear_velocity" </string> - <string> "constant_angular_velocity" </string> - <string> "friction" </string> - <string> "bounce" </string> - <string> "StaticBody2D" </string> - <string> "CollisionPolygon2D" </string> - <string> "build_mode" </string> - <string> "polygon" </string> - <string> "shape_range" </string> - <string> "trigger" </string> - <string> "edge" </string> - <string> "transform/pos" </string> - <string> "wall" </string> - <string> "wall_deco" </string> - <string> "corner" </string> - <string> "flowers" </string> - <string> "tree_base" </string> - <string> "tree_mid" </string> - <string> "tree_mid 2" </string> - <string> "tree_top" </string> - <string> "solid" </string> - <string> "ceiling" </string> - <string> "ramp" </string> - <string> "ceiling2wall" </string> - <string> "help" </string> - <string> "focus/ignore_mouse" </string> - <string> "focus/stop_mouse" </string> - <string> "size_flags/horizontal" </string> - <string> "text" </string> - <string> "percent_visible" </string> - <string> "lines_skipped" </string> - <string> "max_lines_visible" </string> - <string> "Label" </string> - <string> "platform_floor" </string> - <string> "platform_edge" </string> - </string_array> - <string> "node_count" </string> - <int> 42 </int> - <string> "node_paths" </string> - <array len="0" shared="false"> - </array> - <string> "nodes" </string> - <int_array len="772"> -1, -1, 0, 0, -1, 1, 1, 0, 0, 0, 0, 6, 2, -1, 3, 3, 1, 4, 2, 5, 3, 0, 1, 0, 18, 7, -1, 10, 8, 4, 9, 5, 10, 6, 11, 4, 12, 7, 13, 7, 14, 8, 15, 9, 16, 10, 17, 9, 0, 2, 0, 19, 19, -1, 4, 20, 11, 21, 12, 22, 13, 23, 4, 0, 0, 0, 6, 24, -1, 4, 25, 14, 3, 1, 4, 2, 5, 15, 0, 4, 0, 18, 7, -1, 10, 8, 4, 9, 16, 10, 6, 11, 4, 12, 7, 13, 7, 14, 8, 15, 9, 16, 10, 17, 9, 0, 5, 0, 19, 19, -1, 4, 20, 11, 21, 17, 22, 13, 23, 4, 0, 0, 0, 6, 26, -1, 4, 25, 18, 3, 1, 4, 2, 5, 19, 0, 7, 0, 18, 7, -1, 10, 8, 4, 9, 20, 10, 6, 11, 4, 12, 7, 13, 7, 14, 8, 15, 9, 16, 10, 17, 9, 0, 8, 0, 19, 19, -1, 4, 20, 11, 21, 21, 22, 13, 23, 4, 0, 0, 0, 6, 27, -1, 4, 25, 22, 3, 1, 4, 2, 5, 23, 0, 10, 0, 18, 7, -1, 10, 8, 4, 9, 24, 10, 6, 11, 4, 12, 7, 13, 7, 14, 8, 15, 9, 16, 10, 17, 9, 0, 11, 0, 19, 19, -1, 4, 20, 11, 21, 25, 22, 13, 23, 4, 0, 0, 0, 6, 28, -1, 4, 25, 26, 3, 1, 4, 2, 5, 27, 0, 13, 0, 18, 7, -1, 10, 8, 4, 9, 28, 10, 6, 11, 4, 12, 7, 13, 7, 14, 8, 15, 9, 16, 10, 17, 9, 0, 14, 0, 19, 19, -1, 4, 20, 11, 21, 29, 22, 13, 23, 4, 0, 0, 0, 6, 29, -1, 4, 25, 30, 3, 1, 4, 2, 5, 31, 0, 16, 0, 18, 7, -1, 10, 8, 4, 9, 32, 10, 6, 11, 4, 12, 7, 13, 7, 14, 8, 15, 9, 16, 10, 17, 9, 0, 17, 0, 19, 19, -1, 4, 20, 11, 21, 33, 22, 13, 23, 4, 0, 0, 0, 6, 30, -1, 4, 25, 34, 3, 1, 4, 2, 5, 35, 0, 19, 0, 18, 7, -1, 10, 8, 4, 9, 36, 10, 6, 11, 4, 12, 7, 13, 7, 14, 8, 15, 9, 16, 10, 17, 9, 0, 20, 0, 19, 19, -1, 4, 20, 11, 21, 33, 22, 13, 23, 4, 0, 0, 0, 6, 31, -1, 4, 25, 37, 3, 1, 4, 2, 5, 38, 0, 0, 0, 6, 32, -1, 4, 25, 39, 3, 1, 4, 2, 5, 40, 0, 0, 0, 6, 33, -1, 4, 25, 41, 3, 1, 4, 2, 5, 42, 0, 0, 0, 6, 34, -1, 4, 25, 43, 3, 1, 4, 2, 5, 44, 0, 0, 0, 6, 35, -1, 4, 25, 45, 3, 1, 4, 2, 5, 46, 0, 26, 0, 18, 7, -1, 10, 8, 4, 9, 47, 10, 6, 11, 4, 12, 7, 13, 7, 14, 8, 15, 9, 16, 10, 17, 9, 0, 27, 0, 19, 19, -1, 4, 20, 11, 21, 48, 22, 13, 23, 4, 0, 0, 0, 6, 36, -1, 4, 25, 49, 3, 1, 4, 2, 5, 50, 0, 29, 0, 18, 7, -1, 10, 8, 4, 9, 51, 10, 6, 11, 4, 12, 7, 13, 7, 14, 8, 15, 9, 16, 10, 17, 9, 0, 30, 0, 19, 19, -1, 4, 20, 11, 21, 52, 22, 13, 23, 4, 0, 0, 0, 6, 37, -1, 4, 25, 53, 3, 1, 4, 2, 5, 54, 0, 32, 0, 18, 7, -1, 10, 8, 4, 9, 55, 10, 6, 11, 4, 12, 7, 13, 7, 14, 8, 15, 9, 16, 10, 17, 9, 0, 33, 0, 19, 19, -1, 4, 20, 11, 21, 21, 22, 13, 23, 4, 0, 0, 0, 46, 38, -1, 7, 39, 2, 40, 2, 41, 56, 42, 57, 43, 10, 44, 11, 45, 58, 0, 0, 0, 6, 47, -1, 4, 25, 59, 3, 1, 4, 2, 5, 60, 0, 36, 0, 18, 7, -1, 10, 8, 4, 9, 61, 10, 6, 11, 4, 12, 7, 13, 7, 14, 8, 15, 9, 16, 10, 17, 9, 0, 37, 0, 19, 19, -1, 4, 20, 11, 21, 62, 22, 13, 23, 4, 0, 0, 0, 6, 48, -1, 4, 25, 63, 3, 1, 4, 2, 5, 64, 0, 39, 0, 18, 7, -1, 10, 8, 4, 9, 65, 10, 6, 11, 4, 12, 7, 13, 7, 14, 8, 15, 9, 16, 10, 17, 9, 0, 40, 0, 19, 19, -1, 4, 20, 11, 21, 66, 22, 13, 23, 4, 0 </int_array> - <string> "variants" </string> - <array len="67" shared="false"> - <dictionary shared="false"> - <string> "__editor_plugin_screen__" </string> - <string> "Script" </string> - <string> "__editor_plugin_states__" </string> - <dictionary shared="false"> - <string> "2D" </string> - <dictionary shared="false"> - <string> "ofs" </string> - <vector2> -446.534, -87.6905 </vector2> - <string> "snap_grid" </string> - <bool> False </bool> - <string> "snap_offset" </string> - <vector2> 0, 0 </vector2> - <string> "snap_pixel" </string> - <bool> False </bool> - <string> "snap_relative" </string> - <bool> False </bool> - <string> "snap_rotation" </string> - <bool> False </bool> - <string> "snap_rotation_offset" </string> - <real> 0 </real> - <string> "snap_rotation_step" </string> - <real> 0.261799 </real> - <string> "snap_show_grid" </string> - <bool> False </bool> - <string> "snap_step" </string> - <vector2> 10, 10 </vector2> - <string> "zoom" </string> - <real> 1.670183 </real> - </dictionary> - <string> "3D" </string> - <dictionary shared="false"> - <string> "ambient_light_color" </string> - <color> 0.15, 0.15, 0.15, 1 </color> - <string> "default_light" </string> - <bool> True </bool> - <string> "default_srgb" </string> - <bool> False </bool> - <string> "deflight_rot_x" </string> - <real> 0.942478 </real> - <string> "deflight_rot_y" </string> - <real> 0.628319 </real> - <string> "fov" </string> - <real> 45 </real> - <string> "show_grid" </string> - <bool> True </bool> - <string> "show_origin" </string> - <bool> True </bool> - <string> "viewport_mode" </string> - <int> 1 </int> - <string> "viewports" </string> - <array len="4" shared="false"> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> True </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - <dictionary shared="false"> - <string> "distance" </string> - <real> 4 </real> - <string> "listener" </string> - <bool> False </bool> - <string> "pos" </string> - <vector3> 0, 0, 0 </vector3> - <string> "use_environment" </string> - <bool> False </bool> - <string> "use_orthogonal" </string> - <bool> False </bool> - <string> "x_rot" </string> - <real> 0 </real> - <string> "y_rot" </string> - <real> 0 </real> - </dictionary> - </array> - <string> "zfar" </string> - <real> 500 </real> - <string> "znear" </string> - <real> 0.1 </real> - </dictionary> - <string> "Anim" </string> - <dictionary shared="false"> - <string> "visible" </string> - <bool> False </bool> - </dictionary> - </dictionary> - <string> "__editor_run_settings__" </string> - <dictionary shared="false"> - <string> "custom_args" </string> - <string> "-l $scene" </string> - <string> "run_mode" </string> - <int> 0 </int> - </dictionary> - </dictionary> - <resource external="0"> </resource> - <bool> True </bool> - <rect2> 0, 0, 64, 64 </rect2> - <bool> False </bool> - <resource resource_type="Shape2D" path="local://1"> </resource> - <matrix32> 1, -0, 0, 1, 0, 0 </matrix32> - <int> 1 </int> - <vector2> 0, 0 </vector2> - <real> 0 </real> - <real> 1 </real> - <int> 0 </int> - <vector2_array len="4"> 32, -24, 32, 32, -32, 32, -32, -24 </vector2_array> - <vector2> -1, -1 </vector2> - <vector2> 64, 0 </vector2> - <rect2> 64, 0, 64, 64 </rect2> - <resource resource_type="Shape2D" path="local://2"> </resource> - <vector2_array len="4"> -32, -24, 24, -24, 24, 32, -32, 32 </vector2_array> - <vector2> 64, 64 </vector2> - <rect2> 64, 64, 64, 64 </rect2> - <resource resource_type="Shape2D" path="local://3"> </resource> - <vector2_array len="4"> -32, -32, 24, -32, 24, 32, -32, 32 </vector2_array> - <vector2> 96, 128 </vector2> - <rect2> 320, 128, 128, 64 </rect2> - <resource resource_type="Shape2D" path="local://4"> </resource> - <vector2_array len="4"> -64, -32, -8, -32, -8, 32, -64, 32 </vector2_array> - <vector2> 64, 192 </vector2> - <rect2> 64, 128, 64, 64 </rect2> - <resource resource_type="Shape2D" path="local://5"> </resource> - <vector2_array len="5"> -32, -32, 24, -32, 32, -24, 32, 32, -32, 32 </vector2_array> - <vector2> 128, 192 </vector2> - <rect2> 192, 192, 64, 64 </rect2> - <resource resource_type="Shape2D" path="local://6"> </resource> - <vector2_array len="4"> -32, 32, 32, 32, 32, -24, -32, -24 </vector2_array> - <vector2> 192, 192 </vector2> - <rect2> 256, 192, 64, 64 </rect2> - <resource resource_type="Shape2D" path="local://7"> </resource> - <vector2> 192, 128 </vector2> - <rect2> 256, 128, 64, 64 </rect2> - <vector2> 192, 64 </vector2> - <rect2> 256, 64, 64, 64 </rect2> - <vector2> 192, 0 </vector2> - <rect2> 256, 0, 64, 64 </rect2> - <vector2> 0, 64 </vector2> - <rect2> 0, 64, 64, 64 </rect2> - <vector2> 0, 128 </vector2> - <rect2> 384, 64, 64, 64 </rect2> - <resource resource_type="Shape2D" path="local://8"> </resource> - <vector2_array len="4"> 32, -32, 32, 32, -32, 32, -32, -32 </vector2_array> - <vector2> 256, 224 </vector2> - <rect2> 128, 128, 64, 128 </rect2> - <resource resource_type="Shape2D" path="local://9"> </resource> - <vector2_array len="4"> -32, -56, 32, 8, 32, 64, -32, 64 </vector2_array> - <vector2> 0, 192 </vector2> - <rect2> 448, 64, 64, 64 </rect2> - <resource resource_type="Shape2D" path="local://10"> </resource> - <int> 2 </int> - <string> "This scene serves as a tool for editing the tileset.
Nodes (sprites) and their respective collisions
are edited here. 

To create a tileset from this, a "TileSet" resoucre 
must be created. Use the helper in:

 Scene -< Convert To -< TileSet

This will save a tileset. Saving over it will merge your changes.

Finally, the saved tileset resource (tileset.xml in this
 case), can be opened to be used into a TileMap node
 for editing a tile map.
" </string> - <int> -1 </int> - <vector2> 0, 256 </vector2> - <rect2> 128, 0, 64, 64 </rect2> - <resource resource_type="Shape2D" path="local://11"> </resource> - <vector2_array len="4"> 32, -24, 32, 24, -32, 24, -32, -24 </vector2_array> - <vector2> 64, 256 </vector2> - <rect2> 192, 0, 64, 64 </rect2> - <resource resource_type="Shape2D" path="local://12"> </resource> - <vector2_array len="4"> 24, -24, 24, 24, -32, 24, -32, -24 </vector2_array> - </array> - <string> "version" </string> - <int> 2 </int> - </dictionary> - - </main_resource> -</resource_file>
\ No newline at end of file diff --git a/demos/2d/platformer/types.cache b/demos/2d/platformer/types.cache deleted file mode 100644 index a215e5f137..0000000000 --- a/demos/2d/platformer/types.cache +++ /dev/null @@ -1,64 +0,0 @@ -res://tileset.xml -TileSet -res://sound_shoot.wav -Sample -res://sound_hit.wav -Sample -res://scroll_bg_cloud_2.png -Texture -res://enemy.png -Texture -res://bullet.gd -GDScript -res://scroll_bg_cloud_3.png -Texture -res://coin.gd -GDScript -res://stage.xml -PackedScene -res://moving_platform.xml -PackedScene -res://bullet.png -Texture -res://player.xml -PackedScene -res://parallax_bg.xml -PackedScene -res://music.ogg -AudioStreamOGGVorbis -res://coin.png -Texture -res://sound_explode.wav -Sample -res://sound_coin.wav -Sample -res://robot_demo.png -Texture -res://moving_platform.gd -GDScript -res://enemy.xml -PackedScene -res://tileset_edit.xml -PackedScene -res://scroll_bg_fg_1.png -Texture -res://player.gd -GDScript -res://scroll_bg_fg_2.png -Texture -res://moving_platform.png -Texture -res://enemy.gd -GDScript -res://bullet.xml -PackedScene -res://tiles_demo.png -Texture -res://sound_jump.wav -Sample -res://scroll_bg_sky.png -Texture -res://scroll_bg_cloud_1.png -Texture -res://coin.xml -PackedScene |