diff --git a/2d/kinematic_collision/colworld.tscn b/2d/kinematic_collision/colworld.tscn deleted file mode 100644 index 0d527029..00000000 --- a/2d/kinematic_collision/colworld.tscn +++ /dev/null @@ -1,40 +0,0 @@ -[gd_scene load_steps=5 format=2] - -[ext_resource path="res://obstacle.png" type="Texture" id=1] -[ext_resource path="res://player.tscn" type="PackedScene" id=2] - -[sub_resource type="RectangleShape2D" id=1] -extents = Vector2( 8, 8 ) - -[sub_resource type="TileSet" id=2] -0/name = "" -0/texture = ExtResource( 1 ) -0/tex_offset = Vector2( 0, 0 ) -0/modulate = Color( 1, 1, 1, 1 ) -0/region = Rect2( 0, 0, 0, 0 ) -0/tile_mode = 0 -0/occluder_offset = Vector2( 0, 0 ) -0/navigation_offset = Vector2( 0, 0 ) -0/shapes = [ { -"autotile_coord": Vector2( 0, 0 ), -"one_way": false, -"one_way_margin": 1.0, -"shape": SubResource( 1 ), -"shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 ) -} ] -0/z_index = 0 - -[node name="colworld" type="Node2D"] - -[node name="TileMap" type="TileMap" parent="."] -tile_set = SubResource( 2 ) -cell_size = Vector2( 16, 16 ) -format = 1 -tile_data = PoolIntArray( -1, 0, 0, -65536, 0, 0, -65535, 0, 0, -65534, 0, 0, -65533, 0, 0, -65532, 0, 0, -65531, 0, 0, -65530, 0, 0, -65529, 0, 0, -65528, 0, 0, -65527, 0, 0, -65526, 0, 0, -65525, 0, 0, -65524, 0, 0, -65523, 0, 0, -65522, 0, 0, -65521, 0, 0, -65520, 0, 0, -65519, 0, 0, -65518, 0, 0, -65517, 0, 0, -65516, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -65512, 0, 0, -65511, 0, 0, -65510, 0, 0, -65509, 0, 0, -65508, 0, 0, -65507, 0, 0, -65506, 0, 0, -65505, 0, 0, -65504, 0, 0, -65503, 0, 0, 65535, 0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 3, 0, 0, 4, 0, 0, 5, 0, 0, 6, 0, 0, 7, 0, 0, 8, 0, 0, 9, 0, 0, 10, 0, 0, 11, 0, 0, 12, 0, 0, 13, 0, 0, 14, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 22, 0, 0, 23, 0, 0, 24, 0, 0, 25, 0, 0, 26, 0, 0, 27, 0, 0, 28, 0, 0, 29, 0, 0, 30, 0, 0, 31, 0, 0, 32, 0, 0, 33, 0, 0, 131071, 0, 0, 65536, 0, 0, 65537, 0, 0, 65538, 0, 0, 65539, 0, 0, 65540, 0, 0, 65541, 0, 0, 65542, 0, 0, 65543, 0, 0, 65544, 0, 0, 65545, 0, 0, 65546, 0, 0, 65547, 0, 0, 65548, 0, 0, 65549, 0, 0, 65550, 0, 0, 65551, 0, 0, 65552, 0, 0, 65553, 0, 0, 65554, 0, 0, 65555, 0, 0, 65556, 0, 0, 65557, 0, 0, 65558, 0, 0, 65559, 0, 0, 65560, 0, 0, 65561, 0, 0, 65562, 0, 0, 65563, 0, 0, 65564, 0, 0, 65565, 0, 0, 65566, 0, 0, 65567, 0, 0, 65568, 0, 0, 65569, 0, 0, 196607, 0, 0, 131072, 0, 0, 131073, 0, 0, 131103, 0, 0, 131104, 0, 0, 131105, 0, 0, 262143, 0, 0, 196608, 0, 0, 196609, 0, 0, 196639, 0, 0, 196640, 0, 0, 196641, 0, 0, 327679, 0, 0, 262144, 0, 0, 262145, 0, 0, 262175, 0, 0, 262176, 0, 0, 262177, 0, 0, 393215, 0, 0, 327680, 0, 0, 327681, 0, 0, 327685, 0, 0, 327686, 0, 0, 327687, 0, 0, 327688, 0, 0, 327689, 0, 0, 327690, 0, 0, 327691, 0, 0, 327692, 0, 0, 327693, 0, 0, 327711, 0, 0, 327712, 0, 0, 327713, 0, 0, 458751, 0, 0, 393216, 0, 0, 393217, 0, 0, 393247, 0, 0, 393248, 0, 0, 393249, 0, 0, 524287, 0, 0, 458752, 0, 0, 458753, 0, 0, 458783, 0, 0, 458784, 0, 0, 458785, 0, 0, 589823, 0, 0, 524288, 0, 0, 524289, 0, 0, 524319, 0, 0, 524320, 0, 0, 524321, 0, 0, 655359, 0, 0, 589824, 0, 0, 589825, 0, 0, 589855, 0, 0, 589856, 0, 0, 589857, 0, 0, 720895, 0, 0, 655360, 0, 0, 655361, 0, 0, 655373, 0, 0, 655374, 0, 0, 655375, 0, 0, 655376, 0, 0, 655377, 0, 0, 655378, 0, 0, 655379, 0, 0, 655380, 0, 0, 655381, 0, 0, 655391, 0, 0, 655392, 0, 0, 655393, 0, 0, 786431, 0, 0, 720896, 0, 0, 720897, 0, 0, 720909, 0, 0, 720910, 0, 0, 720911, 0, 0, 720912, 0, 0, 720913, 0, 0, 720914, 0, 0, 720915, 0, 0, 720916, 0, 0, 720917, 0, 0, 720927, 0, 0, 720928, 0, 0, 720929, 0, 0, 851967, 0, 0, 786432, 0, 0, 786433, 0, 0, 786445, 0, 0, 786446, 0, 0, 786447, 0, 0, 786448, 0, 0, 786449, 0, 0, 786450, 0, 0, 786451, 0, 0, 786452, 0, 0, 786453, 0, 0, 786463, 0, 0, 786464, 0, 0, 786465, 0, 0, 917503, 0, 0, 851968, 0, 0, 851969, 0, 0, 851981, 0, 0, 851982, 0, 0, 851988, 0, 0, 851989, 0, 0, 851999, 0, 0, 852000, 0, 0, 852001, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917517, 0, 0, 917518, 0, 0, 917524, 0, 0, 917525, 0, 0, 917535, 0, 0, 917536, 0, 0, 917537, 0, 0, 1048575, 0, 0, 983040, 0, 0, 983041, 0, 0, 983053, 0, 0, 983054, 0, 0, 983060, 0, 0, 983061, 0, 0, 983071, 0, 0, 983072, 0, 0, 983073, 0, 0, 1114111, 0, 0, 1048576, 0, 0, 1048577, 0, 0, 1048596, 0, 0, 1048597, 0, 0, 1048607, 0, 0, 1048608, 0, 0, 1048609, 0, 0, 1179647, 0, 0, 1114112, 0, 0, 1114113, 0, 0, 1114132, 0, 0, 1114133, 0, 0, 1114143, 0, 0, 1114144, 0, 0, 1114145, 0, 0, 1245183, 0, 0, 1179648, 0, 0, 1179649, 0, 0, 1179668, 0, 0, 1179669, 0, 0, 1179679, 0, 0, 1179680, 0, 0, 1179681, 0, 0, 1310719, 0, 0, 1245184, 0, 0, 1245185, 0, 0, 1245204, 0, 0, 1245205, 0, 0, 1245215, 0, 0, 1245216, 0, 0, 1245217, 0, 0, 1376255, 0, 0, 1310720, 0, 0, 1310721, 0, 0, 1310730, 0, 0, 1310731, 0, 0, 1310748, 0, 0, 1310751, 0, 0, 1310752, 0, 0, 1310753, 0, 0, 1441791, 0, 0, 1376256, 0, 0, 1376257, 0, 0, 1376266, 0, 0, 1376267, 0, 0, 1376284, 0, 0, 1376287, 0, 0, 1376288, 0, 0, 1376289, 0, 0, 1507327, 0, 0, 1441792, 0, 0, 1441793, 0, 0, 1441802, 0, 0, 1441803, 0, 0, 1441804, 0, 0, 1441805, 0, 0, 1441820, 0, 0, 1441823, 0, 0, 1441824, 0, 0, 1441825, 0, 0, 1572863, 0, 0, 1507328, 0, 0, 1507329, 0, 0, 1507338, 0, 0, 1507339, 0, 0, 1507340, 0, 0, 1507341, 0, 0, 1507359, 0, 0, 1507360, 0, 0, 1507361, 0, 0, 1638399, 0, 0, 1572864, 0, 0, 1572865, 0, 0, 1572874, 0, 0, 1572875, 0, 0, 1572876, 0, 0, 1572877, 0, 0, 1572878, 0, 0, 1572879, 0, 0, 1572880, 0, 0, 1572881, 0, 0, 1572882, 0, 0, 1572895, 0, 0, 1572896, 0, 0, 1572897, 0, 0, 1703935, 0, 0, 1638400, 0, 0, 1638401, 0, 0, 1638410, 0, 0, 1638411, 0, 0, 1638412, 0, 0, 1638413, 0, 0, 1638414, 0, 0, 1638415, 0, 0, 1638416, 0, 0, 1638417, 0, 0, 1638418, 0, 0, 1638431, 0, 0, 1638432, 0, 0, 1638433, 0, 0, 1769471, 0, 0, 1703936, 0, 0, 1703937, 0, 0, 1703946, 0, 0, 1703947, 0, 0, 1703967, 0, 0, 1703968, 0, 0, 1703969, 0, 0, 1835007, 0, 0, 1769472, 0, 0, 1769473, 0, 0, 1769482, 0, 0, 1769483, 0, 0, 1769503, 0, 0, 1769504, 0, 0, 1769505, 0, 0, 1900543, 0, 0, 1835008, 0, 0, 1835009, 0, 0, 1835018, 0, 0, 1835019, 0, 0, 1835039, 0, 0, 1835040, 0, 0, 1835041, 0, 0, 1966079, 0, 0, 1900544, 0, 0, 1900545, 0, 0, 1900546, 0, 0, 1900547, 0, 0, 1900548, 0, 0, 1900549, 0, 0, 1900550, 0, 0, 1900551, 0, 0, 1900552, 0, 0, 1900553, 0, 0, 1900554, 0, 0, 1900555, 0, 0, 1900556, 0, 0, 1900557, 0, 0, 1900558, 0, 0, 1900559, 0, 0, 1900560, 0, 0, 1900561, 0, 0, 1900562, 0, 0, 1900563, 0, 0, 1900564, 0, 0, 1900565, 0, 0, 1900566, 0, 0, 1900567, 0, 0, 1900568, 0, 0, 1900569, 0, 0, 1900570, 0, 0, 1900571, 0, 0, 1900572, 0, 0, 1900573, 0, 0, 1900574, 0, 0, 1900575, 0, 0, 1900576, 0, 0, 1900577, 0, 0, 2031615, 0, 0, 1966080, 0, 0, 1966081, 0, 0, 1966082, 0, 0, 1966083, 0, 0, 1966084, 0, 0, 1966085, 0, 0, 1966086, 0, 0, 1966087, 0, 0, 1966088, 0, 0, 1966089, 0, 0, 1966090, 0, 0, 1966091, 0, 0, 1966092, 0, 0, 1966093, 0, 0, 1966094, 0, 0, 1966095, 0, 0, 1966096, 0, 0, 1966097, 0, 0, 1966098, 0, 0, 1966099, 0, 0, 1966100, 0, 0, 1966101, 0, 0, 1966102, 0, 0, 1966103, 0, 0, 1966104, 0, 0, 1966105, 0, 0, 1966106, 0, 0, 1966107, 0, 0, 1966108, 0, 0, 1966109, 0, 0, 1966110, 0, 0, 1966111, 0, 0, 1966112, 0, 0, 1966113, 0, 0, 2097151, 0, 0, 2031616, 0, 0, 2031617, 0, 0, 2031618, 0, 0, 2031619, 0, 0, 2031620, 0, 0, 2031621, 0, 0, 2031622, 0, 0, 2031623, 0, 0, 2031624, 0, 0, 2031625, 0, 0, 2031626, 0, 0, 2031627, 0, 0, 2031628, 0, 0, 2031629, 0, 0, 2031630, 0, 0, 2031631, 0, 0, 2031632, 0, 0, 2031633, 0, 0, 2031634, 0, 0, 2031635, 0, 0, 2031636, 0, 0, 2031637, 0, 0, 2031638, 0, 0, 2031639, 0, 0, 2031640, 0, 0, 2031641, 0, 0, 2031642, 0, 0, 2031643, 0, 0, 2031644, 0, 0, 2031645, 0, 0, 2031646, 0, 0, 2031647, 0, 0, 2031648, 0, 0, 2031649, 0, 0 ) - -[node name="player" parent="." instance=ExtResource( 2 )] -position = Vector2( 115.243, 222.134 ) - -[node name="Camera2D" type="Camera2D" parent="."] -offset = Vector2( 264, 248 ) -current = true diff --git a/2d/kinematic_collision/icon.png b/2d/kinematic_collision/icon.png deleted file mode 100644 index 2774de61..00000000 Binary files a/2d/kinematic_collision/icon.png and /dev/null differ diff --git a/2d/kinematic_collision/icon.png.import b/2d/kinematic_collision/icon.png.import deleted file mode 100644 index 96cbf462..00000000 --- a/2d/kinematic_collision/icon.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="StreamTexture" -path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://icon.png" -dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] - -[params] - -compress/mode=0 -compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 -compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 -process/fix_alpha_border=true -process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 diff --git a/2d/kinematic_collision/obstacle.png b/2d/kinematic_collision/obstacle.png deleted file mode 100644 index 693f115a..00000000 Binary files a/2d/kinematic_collision/obstacle.png and /dev/null differ diff --git a/2d/kinematic_collision/obstacle.png.import b/2d/kinematic_collision/obstacle.png.import deleted file mode 100644 index 99c1b729..00000000 --- a/2d/kinematic_collision/obstacle.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="StreamTexture" -path="res://.import/obstacle.png-dfb3e99d3af573251007cdf5e1c252b9.stex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://obstacle.png" -dest_files=[ "res://.import/obstacle.png-dfb3e99d3af573251007cdf5e1c252b9.stex" ] - -[params] - -compress/mode=0 -compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 -compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 -process/fix_alpha_border=true -process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 diff --git a/2d/kinematic_collision/player.gd b/2d/kinematic_collision/player.gd deleted file mode 100644 index 4b955e69..00000000 --- a/2d/kinematic_collision/player.gd +++ /dev/null @@ -1,24 +0,0 @@ -extends KinematicBody2D - -# This is a demo showing how KinematicBody2D -# move_and_slide works. - -# Member variables -const MOTION_SPEED = 160 # Pixels/second - - -func _physics_process(_delta): - var motion = Vector2() - - if Input.is_action_pressed("move_up"): - motion += Vector2(0, -1) - if Input.is_action_pressed("move_bottom"): - motion += Vector2(0, 1) - if Input.is_action_pressed("move_left"): - motion += Vector2(-1, 0) - if Input.is_action_pressed("move_right"): - motion += Vector2(1, 0) - - motion = motion.normalized() * MOTION_SPEED - - move_and_slide(motion) diff --git a/2d/kinematic_collision/player.png b/2d/kinematic_collision/player.png deleted file mode 100644 index 0e7d8438..00000000 Binary files a/2d/kinematic_collision/player.png and /dev/null differ diff --git a/2d/kinematic_collision/player.png.import b/2d/kinematic_collision/player.png.import deleted file mode 100644 index a1ab22fc..00000000 --- a/2d/kinematic_collision/player.png.import +++ /dev/null @@ -1,34 +0,0 @@ -[remap] - -importer="texture" -type="StreamTexture" -path="res://.import/player.png-2dd0af52de4b213777cd8c9df94c0978.stex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://player.png" -dest_files=[ "res://.import/player.png-2dd0af52de4b213777cd8c9df94c0978.stex" ] - -[params] - -compress/mode=0 -compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 -compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 -process/fix_alpha_border=true -process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 diff --git a/2d/kinematic_collision/player.tscn b/2d/kinematic_collision/player.tscn deleted file mode 100644 index 4e7909b1..00000000 --- a/2d/kinematic_collision/player.tscn +++ /dev/null @@ -1,17 +0,0 @@ -[gd_scene load_steps=4 format=2] - -[ext_resource path="res://player.gd" type="Script" id=1] -[ext_resource path="res://player.png" type="Texture" id=2] - -[sub_resource type="RectangleShape2D" id=1] -extents = Vector2( 8, 8 ) - -[node name="player" type="KinematicBody2D"] -script = ExtResource( 1 ) - -[node name="sprite" type="Sprite" parent="."] -texture = ExtResource( 2 ) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="."] -shape = SubResource( 1 ) - diff --git a/2d/kinematic_collision/project.godot b/2d/kinematic_collision/project.godot deleted file mode 100644 index 4049ced0..00000000 --- a/2d/kinematic_collision/project.godot +++ /dev/null @@ -1,56 +0,0 @@ -; Engine configuration file. -; It's best edited using the editor UI and not directly, -; since the parameters that go here are not all obvious. -; -; Format: -; [section] ; section goes between [] -; param=value ; assign values to parameters - -config_version=4 - -_global_script_classes=[ ] -_global_script_class_icons={ - -} - -[application] - -config/name="Kinematic Collision" -run/main_scene="res://colworld.tscn" -config/icon="res://icon.png" - -[display] - -window/stretch/mode="2d" -window/stretch/aspect="expand" - -[gdnative] - -singletons=[ ] - -[input] - -move_bottom={ -"deadzone": 0.5, -"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"unicode":0,"echo":false,"script":null) - ] -} -move_left={ -"deadzone": 0.5, -"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"unicode":0,"echo":false,"script":null) - ] -} -move_right={ -"deadzone": 0.5, -"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null) - ] -} -move_up={ -"deadzone": 0.5, -"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null) - ] -} - -[rendering] - -environment/default_clear_color=Color( 0.219608, 0.145098, 0.145098, 1 )