9d182e93a3
Updated 2D Platformer demo to use kinematic TileMaps for moving platforms, in doing so discovered that the tileset was messed up and not converting properly, so fixed that too. And in order to fix the tileset I need to activate snapping for collision polygon vertices.
201 lines
7.0 KiB
XML
201 lines
7.0 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<resource_file type="PackedScene" subresource_count="3" version="1.0" version_name="Godot Engine v1.0.stable.custom_build">
|
|
<ext_resource path="res://moving_platform.gd" type="Script"></ext_resource>
|
|
<ext_resource path="res://tileset.xml" type="TileSet"></ext_resource>
|
|
<main_resource>
|
|
<dictionary name="_bundled" shared="false">
|
|
<string> "names" </string>
|
|
<string_array len="28">
|
|
<string> "moving_platform" </string>
|
|
<string> "Node2D" </string>
|
|
<string> "_import_path" </string>
|
|
<string> "visibility/visible" </string>
|
|
<string> "visibility/opacity" </string>
|
|
<string> "visibility/self_opacity" </string>
|
|
<string> "transform/pos" </string>
|
|
<string> "transform/rot" </string>
|
|
<string> "transform/scale" </string>
|
|
<string> "z/z" </string>
|
|
<string> "z/relative" </string>
|
|
<string> "script/script" </string>
|
|
<string> "__meta__" </string>
|
|
<string> "motion" </string>
|
|
<string> "cycle" </string>
|
|
<string> "platform" </string>
|
|
<string> "TileMap" </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> "collision/body_mode" </string>
|
|
<string> "collision/friction" </string>
|
|
<string> "collision/bounce" </string>
|
|
<string> "collision/layers" </string>
|
|
<string> "tile_data" </string>
|
|
</string_array>
|
|
<string> "version" </string>
|
|
<int> 1 </int>
|
|
<string> "conn_count" </string>
|
|
<int> 0 </int>
|
|
<string> "node_count" </string>
|
|
<int> 2 </int>
|
|
<string> "variants" </string>
|
|
<array len="17" shared="false">
|
|
<node_path> "" </node_path>
|
|
<bool> True </bool>
|
|
<real> 1 </real>
|
|
<vector2> 0, 0 </vector2>
|
|
<real> 0 </real>
|
|
<vector2> 1, 1 </vector2>
|
|
<int> 0 </int>
|
|
<resource resource_type="Script" path="res://moving_platform.gd"> </resource>
|
|
<dictionary shared="false">
|
|
<string> "__editor_plugin_states__" </string>
|
|
<dictionary shared="false">
|
|
<string> "Script" </string>
|
|
<dictionary shared="false">
|
|
<string> "current" </string>
|
|
<int> 0 </int>
|
|
<string> "sources" </string>
|
|
<array len="4" shared="false">
|
|
<string> "res://moving_platform.gd" </string>
|
|
<string> "res://enemy.gd" </string>
|
|
<string> "res://player.gd" </string>
|
|
<string> "res://coin.gd" </string>
|
|
</array>
|
|
</dictionary>
|
|
<string> "2D" </string>
|
|
<dictionary shared="false">
|
|
<string> "pixel_snap" </string>
|
|
<bool> False </bool>
|
|
<string> "zoom" </string>
|
|
<real> 1.850616 </real>
|
|
<string> "use_snap" </string>
|
|
<bool> True </bool>
|
|
<string> "ofs" </string>
|
|
<vector2> -406.735, -157.32 </vector2>
|
|
<string> "snap" </string>
|
|
<int> 32 </int>
|
|
</dictionary>
|
|
<string> "3D" </string>
|
|
<dictionary shared="false">
|
|
<string> "deflight_rot_y" </string>
|
|
<real> 0.628319 </real>
|
|
<string> "zfar" </string>
|
|
<real> 500 </real>
|
|
<string> "fov" </string>
|
|
<real> 179 </real>
|
|
<string> "viewports" </string>
|
|
<array len="4" shared="false">
|
|
<dictionary shared="false">
|
|
<string> "distance" </string>
|
|
<real> 4 </real>
|
|
<string> "x_rot" </string>
|
|
<real> 0 </real>
|
|
<string> "y_rot" </string>
|
|
<real> 0 </real>
|
|
<string> "listener" </string>
|
|
<bool> True </bool>
|
|
<string> "use_environment" </string>
|
|
<bool> False </bool>
|
|
<string> "use_orthogonal" </string>
|
|
<bool> False </bool>
|
|
<string> "pos" </string>
|
|
<vector3> 0, 0, 0 </vector3>
|
|
</dictionary>
|
|
<dictionary shared="false">
|
|
<string> "distance" </string>
|
|
<real> 4 </real>
|
|
<string> "x_rot" </string>
|
|
<real> 0 </real>
|
|
<string> "y_rot" </string>
|
|
<real> 0 </real>
|
|
<string> "listener" </string>
|
|
<bool> False </bool>
|
|
<string> "use_environment" </string>
|
|
<bool> False </bool>
|
|
<string> "use_orthogonal" </string>
|
|
<bool> False </bool>
|
|
<string> "pos" </string>
|
|
<vector3> 0, 0, 0 </vector3>
|
|
</dictionary>
|
|
<dictionary shared="false">
|
|
<string> "distance" </string>
|
|
<real> 4 </real>
|
|
<string> "x_rot" </string>
|
|
<real> 0 </real>
|
|
<string> "y_rot" </string>
|
|
<real> 0 </real>
|
|
<string> "listener" </string>
|
|
<bool> False </bool>
|
|
<string> "use_environment" </string>
|
|
<bool> False </bool>
|
|
<string> "use_orthogonal" </string>
|
|
<bool> False </bool>
|
|
<string> "pos" </string>
|
|
<vector3> 0, 0, 0 </vector3>
|
|
</dictionary>
|
|
<dictionary shared="false">
|
|
<string> "distance" </string>
|
|
<real> 4 </real>
|
|
<string> "x_rot" </string>
|
|
<real> 0 </real>
|
|
<string> "y_rot" </string>
|
|
<real> 0 </real>
|
|
<string> "listener" </string>
|
|
<bool> False </bool>
|
|
<string> "use_environment" </string>
|
|
<bool> False </bool>
|
|
<string> "use_orthogonal" </string>
|
|
<bool> False </bool>
|
|
<string> "pos" </string>
|
|
<vector3> 0, 0, 0 </vector3>
|
|
</dictionary>
|
|
</array>
|
|
<string> "viewport_mode" </string>
|
|
<int> 1 </int>
|
|
<string> "default_light" </string>
|
|
<bool> True </bool>
|
|
<string> "ambient_light_color" </string>
|
|
<color> 0.15, 0.15, 0.15, 1 </color>
|
|
<string> "show_grid" </string>
|
|
<bool> True </bool>
|
|
<string> "show_origin" </string>
|
|
<bool> True </bool>
|
|
<string> "znear" </string>
|
|
<real> 0.1 </real>
|
|
<string> "default_srgb" </string>
|
|
<bool> False </bool>
|
|
<string> "deflight_rot_x" </string>
|
|
<real> 0.942478 </real>
|
|
</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>
|
|
<string> "__editor_plugin_screen__" </string>
|
|
<string> "2D" </string>
|
|
</dictionary>
|
|
<vector2> -96, -32 </vector2>
|
|
<resource resource_type="TileSet" path="res://tileset.xml"> </resource>
|
|
<vector2> 64, 64 </vector2>
|
|
<int> 16 </int>
|
|
<matrix32> 1, 0, 0, 1, 0, 0 </matrix32>
|
|
<int> 2 </int>
|
|
<int> 1 </int>
|
|
<int_array len="6"> 0, 536870927, 1, 536870926, 2, 15 </int_array>
|
|
</array>
|
|
<string> "nodes" </string>
|
|
<int_array len="80"> -1, -1, 1, 0, -1, 13, 2, 0, 3, 1, 4, 2, 5, 2, 6, 3, 7, 4, 8, 5, 9, 6, 10, 1, 11, 7, 12, 8, 13, 3, 14, 2, 0, 0, 0, 16, 15, -1, 20, 2, 0, 3, 1, 4, 2, 5, 2, 6, 9, 7, 4, 8, 5, 9, 6, 10, 1, 17, 6, 18, 10, 19, 11, 20, 12, 21, 13, 22, 14, 23, 15, 24, 2, 25, 4, 26, 15, 27, 16, 0 </int_array>
|
|
<string> "conns" </string>
|
|
<int_array len="0"> </int_array>
|
|
</dictionary>
|
|
|
|
</main_resource>
|
|
</resource_file> |