diff --git a/2d/hdr/beach_cave.gd b/2d/hdr/beach_cave.gd new file mode 100644 index 00000000..47bab3ab --- /dev/null +++ b/2d/hdr/beach_cave.gd @@ -0,0 +1,17 @@ + +extends Node2D + +# Member variables +const CAVE_LIMIT = 1000 + + +func _input(event): + if (event is InputEventMouseMotion and event.button_mask&1): + var rel_x = event.relative.x + var cavepos = get_node("cave").position + cavepos.x += rel_x + if (cavepos.x < -CAVE_LIMIT): + cavepos.x = -CAVE_LIMIT + elif (cavepos.x > 0): + cavepos.x = 0 + get_node("cave").position=cavepos diff --git a/2d/hdr/beach_cave.tscn b/2d/hdr/beach_cave.tscn new file mode 100644 index 00000000..58d34a73 --- /dev/null +++ b/2d/hdr/beach_cave.tscn @@ -0,0 +1,119 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://beach_cave.gd" type="Script" id=1] +[ext_resource path="res://ocean_beach.png" type="Texture" id=2] +[ext_resource path="res://ocean_cave.png" type="Texture" id=3] + +[sub_resource type="Environment" id=1] + +background_mode = 3 +background_sky_scale = 1.0 +background_color = Color( 0, 0, 0, 1 ) +background_energy = 1.0 +background_canvas_max_layer = 0 +ambient_light_color = Color( 0, 0, 0, 1 ) +ambient_light_energy = 1.0 +ambient_light_sky_contribution = 0.0 +fog_enabled = false +fog_color = Color( 0.5, 0.6, 0.7, 1 ) +fog_sun_color = Color( 1, 0.9, 0.7, 1 ) +fog_sun_amount = 0.0 +fog_depth_enabled = true +fog_depth_begin = 10.0 +fog_depth_curve = 1.0 +fog_transmit_enabled = false +fog_transmit_curve = 1.0 +fog_height_enabled = false +fog_height_min = 0.0 +fog_height_max = 100.0 +fog_height_curve = 1.0 +tonemap_mode = 0 +tonemap_exposure = 1.0 +tonemap_white = 1.0 +auto_exposure_enabled = true +auto_exposure_scale = 0.51 +auto_exposure_min_luma = 0.05 +auto_exposure_max_luma = 8.0 +auto_exposure_speed = 4.0 +ss_reflections_enabled = false +ss_reflections_max_steps = 64 +ss_reflections_fade_in = 0.15 +ss_reflections_fade_out = 2.0 +ss_reflections_depth_tolerance = 0.2 +ss_reflections_roughness = true +ssao_enabled = false +ssao_radius = 1.0 +ssao_intensity = 1.0 +ssao_radius2 = 0.0 +ssao_intensity2 = 1.0 +ssao_bias = 0.01 +ssao_light_affect = 0.0 +ssao_color = Color( 0, 0, 0, 1 ) +ssao_blur = true +dof_blur_far_enabled = false +dof_blur_far_distance = 10.0 +dof_blur_far_transition = 5.0 +dof_blur_far_amount = 0.1 +dof_blur_far_quality = 1 +dof_blur_near_enabled = false +dof_blur_near_distance = 2.0 +dof_blur_near_transition = 1.0 +dof_blur_near_amount = 0.1 +dof_blur_near_quality = 1 +glow_enabled = true +glow_levels/1 = false +glow_levels/2 = false +glow_levels/3 = false +glow_levels/4 = true +glow_levels/5 = true +glow_levels/6 = false +glow_levels/7 = true +glow_intensity = 0.8 +glow_strength = 0.88 +glow_bloom = 0.0 +glow_blend_mode = 0 +glow_hdr_treshold = 1.0 +glow_hdr_scale = 2.0 +glow_bicubic_upscale = true +adjustment_enabled = false +adjustment_brightness = 1.0 +adjustment_contrast = 1.0 +adjustment_saturation = 1.0 + +[node name="hdr" type="Node2D"] + +script = ExtResource( 1 ) + +[node name="beach" type="Sprite" parent="."] + +modulate = Color( 2, 2, 2, 1 ) +self_modulate = Color( 2, 2, 2, 1 ) +texture = ExtResource( 2 ) +centered = false + +[node name="cave" type="Sprite" parent="."] + +self_modulate = Color( 0.233166, 0.221219, 0.23582, 1 ) +scale = Vector2( 1.2, 1 ) +texture = ExtResource( 3 ) +centered = false + +[node name="environment" type="WorldEnvironment" parent="."] + +environment = SubResource( 1 ) + +[node name="Label" type="Label" parent="."] + +margin_right = 40.0 +margin_bottom = 13.0 +rect_clip_content = false +mouse_filter = 2 +size_flags_horizontal = 2 +size_flags_vertical = 0 +custom_colors/font_color = Color( 0.213955, 0.205626, 0.20313, 1 ) +text = "Drag Left and Right" +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 + + diff --git a/old/2d/hdr/icon.png b/2d/hdr/icon.png similarity index 100% rename from old/2d/hdr/icon.png rename to 2d/hdr/icon.png diff --git a/old/2d/hdr/ocean_beach.png b/2d/hdr/ocean_beach.png similarity index 100% rename from old/2d/hdr/ocean_beach.png rename to 2d/hdr/ocean_beach.png diff --git a/old/2d/hdr/ocean_cave.png b/2d/hdr/ocean_cave.png similarity index 100% rename from old/2d/hdr/ocean_cave.png rename to 2d/hdr/ocean_cave.png diff --git a/2d/hdr/project.godot b/2d/hdr/project.godot new file mode 100644 index 00000000..ab30c4c4 --- /dev/null +++ b/2d/hdr/project.godot @@ -0,0 +1,15 @@ +[application] + +icon = "res://icon.png" +main_scene = "res://beach_cave.tscn" +name = "HDR for 2D" + +[display] + +window/height = 720 +window/width = 1080 + +[rasterizer] + +blur_buffer_size = 128 + diff --git a/old/2d/hexamap/WWT-01.png b/2d/hexagonal_map/WWT-01.png similarity index 100% rename from old/2d/hexamap/WWT-01.png rename to 2d/hexagonal_map/WWT-01.png diff --git a/old/2d/hexamap/WWT-02.png b/2d/hexagonal_map/WWT-02.png similarity index 100% rename from old/2d/hexamap/WWT-02.png rename to 2d/hexagonal_map/WWT-02.png diff --git a/old/2d/hexamap/WWT-03.png b/2d/hexagonal_map/WWT-03.png similarity index 100% rename from old/2d/hexamap/WWT-03.png rename to 2d/hexagonal_map/WWT-03.png diff --git a/old/2d/hexamap/WWT-04.png b/2d/hexagonal_map/WWT-04.png similarity index 100% rename from old/2d/hexamap/WWT-04.png rename to 2d/hexagonal_map/WWT-04.png diff --git a/old/2d/hexamap/WWT-05.png b/2d/hexagonal_map/WWT-05.png similarity index 100% rename from old/2d/hexamap/WWT-05.png rename to 2d/hexagonal_map/WWT-05.png diff --git a/old/2d/hexamap/WWT-06.png b/2d/hexagonal_map/WWT-06.png similarity index 100% rename from old/2d/hexamap/WWT-06.png rename to 2d/hexagonal_map/WWT-06.png diff --git a/old/2d/hexamap/WWT-07.png b/2d/hexagonal_map/WWT-07.png similarity index 100% rename from old/2d/hexamap/WWT-07.png rename to 2d/hexagonal_map/WWT-07.png diff --git a/old/2d/hexamap/WWT-08.png b/2d/hexagonal_map/WWT-08.png similarity index 100% rename from old/2d/hexamap/WWT-08.png rename to 2d/hexagonal_map/WWT-08.png diff --git a/old/2d/hexamap/WWT-09.png b/2d/hexagonal_map/WWT-09.png similarity index 100% rename from old/2d/hexamap/WWT-09.png rename to 2d/hexagonal_map/WWT-09.png diff --git a/old/2d/hexamap/WWT-10.png b/2d/hexagonal_map/WWT-10.png similarity index 100% rename from old/2d/hexamap/WWT-10.png rename to 2d/hexagonal_map/WWT-10.png diff --git a/old/2d/hexamap/WWT-11.png b/2d/hexagonal_map/WWT-11.png similarity index 100% rename from old/2d/hexamap/WWT-11.png rename to 2d/hexagonal_map/WWT-11.png diff --git a/old/2d/hexamap/WWT-12.png b/2d/hexagonal_map/WWT-12.png similarity index 100% rename from old/2d/hexamap/WWT-12.png rename to 2d/hexagonal_map/WWT-12.png diff --git a/old/2d/hexamap/WWT-13.png b/2d/hexagonal_map/WWT-13.png similarity index 100% rename from old/2d/hexamap/WWT-13.png rename to 2d/hexagonal_map/WWT-13.png diff --git a/old/2d/hexamap/WWT-14.png b/2d/hexagonal_map/WWT-14.png similarity index 100% rename from old/2d/hexamap/WWT-14.png rename to 2d/hexagonal_map/WWT-14.png diff --git a/old/2d/hexamap/WWT-15.png b/2d/hexagonal_map/WWT-15.png similarity index 100% rename from old/2d/hexamap/WWT-15.png rename to 2d/hexagonal_map/WWT-15.png diff --git a/old/2d/hexamap/WWT-16.png b/2d/hexagonal_map/WWT-16.png similarity index 100% rename from old/2d/hexamap/WWT-16.png rename to 2d/hexagonal_map/WWT-16.png diff --git a/old/2d/hexamap/WWT-17.png b/2d/hexagonal_map/WWT-17.png similarity index 100% rename from old/2d/hexamap/WWT-17.png rename to 2d/hexagonal_map/WWT-17.png diff --git a/old/2d/hexamap/WWT-18.png b/2d/hexagonal_map/WWT-18.png similarity index 100% rename from old/2d/hexamap/WWT-18.png rename to 2d/hexagonal_map/WWT-18.png diff --git a/old/2d/hexamap/WWT-19.png b/2d/hexagonal_map/WWT-19.png similarity index 100% rename from old/2d/hexamap/WWT-19.png rename to 2d/hexagonal_map/WWT-19.png diff --git a/old/2d/hexamap/WWT-20.png b/2d/hexagonal_map/WWT-20.png similarity index 100% rename from old/2d/hexamap/WWT-20.png rename to 2d/hexagonal_map/WWT-20.png diff --git a/old/2d/hexamap/WWT-21.png b/2d/hexagonal_map/WWT-21.png similarity index 100% rename from old/2d/hexamap/WWT-21.png rename to 2d/hexagonal_map/WWT-21.png diff --git a/old/2d/hexamap/WWT-22.png b/2d/hexagonal_map/WWT-22.png similarity index 100% rename from old/2d/hexamap/WWT-22.png rename to 2d/hexagonal_map/WWT-22.png diff --git a/old/2d/hexamap/WWT-23.png b/2d/hexagonal_map/WWT-23.png similarity index 100% rename from old/2d/hexamap/WWT-23.png rename to 2d/hexagonal_map/WWT-23.png diff --git a/old/2d/hexamap/WWT-24.png b/2d/hexagonal_map/WWT-24.png similarity index 100% rename from old/2d/hexamap/WWT-24.png rename to 2d/hexagonal_map/WWT-24.png diff --git a/old/2d/hexamap/WWT-25.png b/2d/hexagonal_map/WWT-25.png similarity index 100% rename from old/2d/hexamap/WWT-25.png rename to 2d/hexagonal_map/WWT-25.png diff --git a/old/2d/hexamap/WWT-26.png b/2d/hexagonal_map/WWT-26.png similarity index 100% rename from old/2d/hexamap/WWT-26.png rename to 2d/hexagonal_map/WWT-26.png diff --git a/old/2d/hexamap/icon.png b/2d/hexagonal_map/icon.png similarity index 100% rename from old/2d/hexamap/icon.png rename to 2d/hexagonal_map/icon.png diff --git a/2d/hexagonal_map/map.tscn b/2d/hexagonal_map/map.tscn new file mode 100644 index 00000000..d56ed48c --- /dev/null +++ b/2d/hexagonal_map/map.tscn @@ -0,0 +1,31 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://tileset.tres" type="TileSet" id=1] +[ext_resource path="res://troll.tscn" type="PackedScene" id=2] + +[node name="Node2D" type="Node2D"] + +[node name="TileMap" type="TileMap" parent="."] + +mode = 0 +tile_set = ExtResource( 1 ) +cell_size = Vector2( 82, 94 ) +cell_quadrant_size = 16 +cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +cell_half_offset = 1 +cell_tile_origin = 1 +cell_y_sort = false +collision_use_kinematic = false +collision_friction = 1.0 +collision_bounce = 0.0 +collision_layer = 1 +collision_mask = 1 +occluder_light_mask = 1 +tile_data = PoolIntArray( -393210, 1073741831, -327676, 1073741831, -327675, 1073741831, -327674, 6, -327673, 1073741831, -327672, 1073741830, -327671, 1073741830, -327670, 6, -327669, 8, -262142, 1073741831, -262141, 1073741831, -262140, 1073741831, -262139, 1073741830, -262138, 1073741831, -262137, 6, -262136, 6, -262135, 6, -262134, 6, -262133, 6, -262132, 0, -262131, 0, -196606, 1073741831, -196605, 1073741831, -196604, 6, -196603, 6, -196602, 0, -196601, 6, -196600, 1, -196599, 0, -196598, 1, -196597, 1, -196596, 0, -196595, 0, -196594, 0, -131071, 9, -131070, 1073741832, -131069, 1073741830, -131068, 2, -131067, 2, -131066, 1073741845, -131065, 21, -131064, 19, -131063, 1073741826, -131062, 0, -131061, 16, -131060, 0, -131059, 0, -131058, 0, -131057, 0, -131056, 0, -65534, 0, -65533, 1, -65532, 1073741827, -65531, 1073741846, -65530, 20, -65529, 19, -65528, 2, -65527, 0, -65526, 14, -65525, 0, -65524, 0, -65523, 0, -65522, 0, -65521, 0, -65520, 0, -65519, 0, 3, 1, 4, 2, 5, 1073741827, 6, 1, 7, 1, 8, 0, 9, 10, 10, 12, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 65538, 0, 65539, 0, 65540, 2, 65541, 1073741826, 65542, 1, 65543, 15, 65544, 0, 65545, 0, 65546, 0, 65547, 0, 65548, 0, 65549, 0, 65550, 0, 65551, 0, 65552, 0, 65553, 0, 131074, 0, 131075, 1, 131076, 1610612749, 131077, 1, 131078, 0, 131079, 0, 131080, 0, 131081, 0, 131082, 1610612753, 131083, 0, 131084, 0, 131085, 0, 131086, 0, 131087, 1073741848, 131088, 1073741849, 131089, 0, 196610, 0, 196611, 0, 196612, 0, 196613, 0, 196614, 1610612751, 196615, 1610612752, 196616, 1610612752, 196617, 1610612751, 196618, 1610612751, 196619, 0, 196620, 0, 196621, 0, 196622, 0, 196623, 0, 262149, 0, 262150, 1610612751, 262151, 1610612752, 262152, 1610612751, 262153, 1610612751, 262154, 1073741839, 262155, 1073741839, 262156, 0, 262157, 0, 262158, 0, 327687, 0, 327689, 0, 327691, 0, 327693, 0 ) + +[node name="troll" parent="." instance=ExtResource( 2 )] + +position = Vector2( 602.819, -39.2876 ) +collision/safe_margin = 0.08 + + diff --git a/2d/hexagonal_map/project.godot b/2d/hexagonal_map/project.godot new file mode 100644 index 00000000..b4ccbff8 --- /dev/null +++ b/2d/hexagonal_map/project.godot @@ -0,0 +1,13 @@ +[application] + +icon = "res://icon.png" +main_scene = "res://map.tscn" +name = "Hexagonal Game" + +[input] + +move_bottom = [ InputEvent(KEY,16777234) ] +move_left = [ InputEvent(KEY,16777231) ] +move_right = [ InputEvent(KEY,16777233) ] +move_up = [ InputEvent(KEY,16777232) ] + diff --git a/old/2d/hexamap/tileset.tres b/2d/hexagonal_map/tileset.tres similarity index 99% rename from old/2d/hexamap/tileset.tres rename to 2d/hexagonal_map/tileset.tres index f8dd4564..8972de8c 100644 --- a/old/2d/hexamap/tileset.tres +++ b/2d/hexagonal_map/tileset.tres @@ -1,4 +1,4 @@ -[gd_resource type="TileSet" load_steps=27 format=1] +[gd_resource type="TileSet" load_steps=1 format=2] [ext_resource path="res://WWT-01.png" type="Texture" id=1] [ext_resource path="res://WWT-02.png" type="Texture" id=2] @@ -237,4 +237,3 @@ 25/navigation_offset = Vector2( 0, 0 ) 25/shape_offset = Vector2( 0, 0 ) 25/shapes = [ ] - diff --git a/old/2d/hexamap/tileset_edit.tscn b/2d/hexagonal_map/tileset_edit.tscn similarity index 80% rename from old/2d/hexamap/tileset_edit.tscn rename to 2d/hexagonal_map/tileset_edit.tscn index a473c516..8580d250 100644 --- a/old/2d/hexamap/tileset_edit.tscn +++ b/2d/hexagonal_map/tileset_edit.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=27 format=1] +[gd_scene load_steps=27 format=2] [ext_resource path="res://WWT-01.png" type="Texture" id=1] [ext_resource path="res://WWT-02.png" type="Texture" id=2] @@ -29,186 +29,185 @@ [node name="Node2D" type="Node2D"] + [node name="Tile 1" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 1 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 2" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 2 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 3" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 3 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 4" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 4 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 5" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 5 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 6" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 6 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 7" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 7 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 8" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 8 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 9" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 9 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 10" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 10 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 11" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 11 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 12" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 12 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 13" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 13 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 14" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 14 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 15" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 15 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 16" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 16 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 17" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 17 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 18" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 18 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 19" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 19 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 20" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 20 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 21" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 21 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 22" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 22 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 23" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 23 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 24" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 24 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 25" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 25 ) centered = false offset = Vector2( -64, -64 ) [node name="Tile 26" type="Sprite" parent="."] -transform/pos = Vector2( 96.6174, 42.2665 ) +position = Vector2( 96.6174, 42.2665 ) texture = ExtResource( 26 ) centered = false offset = Vector2( -64, -64 ) - - diff --git a/old/2d/kinematic_col/player.gd b/2d/hexagonal_map/troll.gd similarity index 86% rename from old/2d/kinematic_col/player.gd rename to 2d/hexagonal_map/troll.gd index ce09e150..46238be5 100644 --- a/old/2d/kinematic_col/player.gd +++ b/2d/hexagonal_map/troll.gd @@ -23,9 +23,7 @@ func _fixed_process(delta): if (Input.is_action_pressed("move_right")): motion += Vector2(1, 0) - motion = motion.normalized()*MOTION_SPEED*delta - move(motion) + motion = motion.normalized()*MOTION_SPEED - -func _ready(): - set_fixed_process(true) + move_and_slide(motion) + diff --git a/old/2d/hexamap/troll.png b/2d/hexagonal_map/troll.png similarity index 100% rename from old/2d/hexamap/troll.png rename to 2d/hexagonal_map/troll.png diff --git a/old/2d/hexamap/troll.tscn b/2d/hexagonal_map/troll.tscn similarity index 60% rename from old/2d/hexamap/troll.tscn rename to 2d/hexagonal_map/troll.tscn index 2dc8bdbf..c5d440d1 100644 --- a/old/2d/hexamap/troll.tscn +++ b/2d/hexagonal_map/troll.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=4 format=1] +[gd_scene load_steps=5 format=2] [ext_resource path="res://troll.gd" type="Script" id=1] [ext_resource path="res://troll.png" type="Texture" id=2] @@ -10,14 +10,14 @@ radius = 16.0 [node name="troll" type="KinematicBody2D"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 3.24216, 19.453 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 3.24216, 19.453 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 collision/margin = 0.001 -script/script = ExtResource( 1 ) +script = ExtResource( 1 ) [node name="Sprite" type="Sprite" parent="."] @@ -25,7 +25,7 @@ texture = ExtResource( 2 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] -transform/pos = Vector2( 3.24216, 19.453 ) +position = Vector2( 3.24216, 19.453 ) shape = SubResource( 1 ) trigger = false _update_shape_index = -1 @@ -36,17 +36,15 @@ anchor_mode = 1 rotating = false current = true zoom = Vector2( 1, 1 ) -limit/left = -10000000 -limit/top = -10000000 -limit/right = 10000000 -limit/bottom = 10000000 +limit_left = -10000000 +limit_top = -10000000 +limit_right = 10000000 +limit_bottom = 10000000 drag_margin/h_enabled = true drag_margin/v_enabled = true -smoothing/enable = false -smoothing/speed = 5.0 -drag_margin/left = 0.2 -drag_margin/top = 0.2 -drag_margin/right = 0.2 -drag_margin/bottom = 0.2 - - +smoothing_enabled = false +smoothing_speed = 5.0 +drag_margin_left = 0.2 +drag_margin_top = 0.2 +drag_margin_right = 0.2 +drag_margin_bottom = 0.2 diff --git a/2d/isometric/dungeon.tscn b/2d/isometric/dungeon.tscn new file mode 100644 index 00000000..d2fef9f5 --- /dev/null +++ b/2d/isometric/dungeon.tscn @@ -0,0 +1,48 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://tileset.tres" type="TileSet" id=1] +[ext_resource path="res://troll.tscn" type="PackedScene" id=2] + +[node name="dungeon" type="Node2D"] + +[node name="floor" type="TileMap" parent="."] + +mode = 1 +tile_set = ExtResource( 1 ) +cell_size = Vector2( 128, 64 ) +cell_quadrant_size = 16 +cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +cell_half_offset = 2 +cell_tile_origin = 1 +cell_y_sort = false +collision_use_kinematic = false +collision_friction = 1.0 +collision_bounce = 0.0 +collision_layer = 1 +collision_mask = 1 +occluder_light_mask = 1 +tile_data = PoolIntArray( -851956, 0, -851955, 0, -851954, 0, -786420, 1, -786419, 0, -786418, 0, -720884, 0, -720883, 0, -720882, 0, -655348, 1, -655347, 0, -655346, 0, -589812, 1, -589811, 0, -589810, 0, -524276, 0, -524275, 1, -524274, 0, -458740, 0, -458739, 0, -458738, 0, -393210, 0, -393209, 0, -393208, 0, -393207, 0, -393206, 0, -393205, 0, -393204, 0, -393203, 0, -393202, 0, -327674, 0, -327673, 0, -327672, 1, -327671, 1, -327670, 1, -327669, 1, -327668, 1, -327667, 0, -327666, 0, -262138, 0, -262137, 0, -262136, 0, -262135, 0, -262134, 0, -262133, 0, -262132, 0, -262131, 0, -262130, 0, -196602, 0, -196601, 0, -196600, 0, -196599, 0, -196598, 0, -196597, 0, -196596, 0, -196595, 0, -196594, 0, -131066, 0, -131065, 0, -131064, 0, -131063, 0, -65530, 0, -65529, 0, -65528, 0, -65527, 0, 6, 0, 7, 1, 8, 0, 9, 0, 65542, 0, 65543, 0, 65544, 0, 65545, 0, 131078, 0, 131079, 0, 131080, 0, 131081, 0, 196614, 0, 196615, 0, 196616, 0 ) + +[node name="walls" type="TileMap" parent="."] + +mode = 1 +tile_set = ExtResource( 1 ) +cell_size = Vector2( 128, 64 ) +cell_quadrant_size = 16 +cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +cell_half_offset = 2 +cell_tile_origin = 1 +cell_y_sort = true +collision_use_kinematic = false +collision_friction = 1.0 +collision_bounce = 0.0 +collision_layer = 1 +collision_mask = 1 +occluder_light_mask = 1 +tile_data = PoolIntArray( -917493, 2, -917492, 2, -917491, 2, -917490, 2, -917489, 2, -851957, 2, -851956, 3, -851954, 3, -851953, 2, -786421, 2, -786420, 3, -786418, 3, -786417, 2, -720885, 2, -720881, 2, -655349, 2, -655348, 2, -655346, 3, -655345, 2, -589813, 2, -589809, 2, -524277, 2, -524273, 2, -458747, 2, -458746, 2, -458745, 2, -458744, 536870916, -458743, 536870916, -458742, 2, -458741, 2, -458740, 2, -458738, 2, -458737, 2, -393211, 2, -393209, 3, -393205, 3, -393201, 2, -327675, 4, -327665, 2, -262139, 4, -262134, 3, -262133, 3, -262129, 2, -196603, 2, -196601, 3, -196593, 2, -131067, 2, -131066, 3, -131062, 2, -131061, 2, -131060, 2, -131059, 2, -131058, 2, -131057, 2, -65531, 2, -65530, 2, -65527, 2, -65526, 2, 5, 2, 10, 2, 65541, 2, 65543, 3, 65546, 2, 131077, 2, 131082, 2, 196613, 2, 196618, 2, 262149, 2, 262150, 2, 262151, 2, 262152, 2, 262153, 2, 262154, 2 ) + +[node name="troll" parent="walls" instance=ExtResource( 2 )] + +position = Vector2( 299.38, 326.037 ) + + diff --git a/old/2d/isometric/icon.png b/2d/isometric/icon.png similarity index 100% rename from old/2d/isometric/icon.png rename to 2d/isometric/icon.png diff --git a/old/2d/isometric/isotiles.png b/2d/isometric/isotiles.png similarity index 100% rename from old/2d/isometric/isotiles.png rename to 2d/isometric/isotiles.png diff --git a/2d/isometric/project.godot b/2d/isometric/project.godot new file mode 100644 index 00000000..4a18f644 --- /dev/null +++ b/2d/isometric/project.godot @@ -0,0 +1,22 @@ +[application] + +icon = "res://icon.png" +main_scene = "res://dungeon.tscn" +name = "Isometric Game" + +[image_loader] + +filter = false +gen_mipmaps = false + +[input] + +move_bottom = [ InputEvent(KEY,16777234) ] +move_left = [ InputEvent(KEY,16777231) ] +move_right = [ InputEvent(KEY,16777233) ] +move_up = [ InputEvent(KEY,16777232) ] + +[rasterizer] + +use_pixel_snap = true + diff --git a/old/2d/isometric/tileset.tres b/2d/isometric/tileset.tres similarity index 76% rename from old/2d/isometric/tileset.tres rename to 2d/isometric/tileset.tres index 990ee01b..fd423b6c 100644 --- a/old/2d/isometric/tileset.tres +++ b/2d/isometric/tileset.tres @@ -1,32 +1,33 @@ -[gd_resource type="TileSet" load_steps=6 format=1] +[gd_resource type="TileSet" load_steps=6 format=2] [ext_resource path="res://isotiles.png" type="Texture" id=1] [sub_resource type="ConvexPolygonShape2D" id=1] custom_solver_bias = 0.0 -points = Vector2Array( -68, 2, -4, -30, 60, 2, -4, 34 ) +points = PoolVector2Array( -68, 2, -4, -30, 60, 2, -4, 34 ) [sub_resource type="ConvexPolygonShape2D" id=2] custom_solver_bias = 0.0 -points = Vector2Array( -20, -6, -4, -22, 12, -22, 4, 10, -4, 10 ) +points = PoolVector2Array( -20, -6, -4, -22, 12, -22, 4, 10, -4, 10 ) [sub_resource type="ConvexPolygonShape2D" id=3] custom_solver_bias = 0.0 -points = Vector2Array( 28, -6, 4, 10, 12, -22 ) +points = PoolVector2Array( 28, -6, 4, 10, 12, -22 ) [sub_resource type="ConvexPolygonShape2D" id=4] custom_solver_bias = 0.0 -points = Vector2Array( 66.095, -0.62516, -5.90501, 31.3748, -21.905, 23.3748, 50.095, -8.62516 ) +points = PoolVector2Array( 66.095, -0.62516, -5.90501, 31.3748, -21.905, 23.3748, 50.095, -8.62516 ) [resource] 0/name = "base" 0/texture = ExtResource( 1 ) 0/tex_offset = Vector2( -4, 6 ) +0/modulate = Color( 1, 1, 1, 1 ) 0/region = Rect2( 28, 92, 132, 84 ) 0/occluder_offset = Vector2( 66, 42 ) 0/navigation_offset = Vector2( 66, 42 ) @@ -35,6 +36,7 @@ points = Vector2Array( 66.095, -0.62516, -5.90501, 31.3748, -21.905, 23.3748, 50 1/name = "base2" 1/texture = ExtResource( 1 ) 1/tex_offset = Vector2( -4, 6 ) +1/modulate = Color( 1, 1, 1, 1 ) 1/region = Rect2( 220, 92, 132, 84 ) 1/occluder_offset = Vector2( 66, 42 ) 1/navigation_offset = Vector2( 66, 42 ) @@ -43,6 +45,7 @@ points = Vector2Array( 66.095, -0.62516, -5.90501, 31.3748, -21.905, 23.3748, 50 2/name = "wall" 2/texture = ExtResource( 1 ) 2/tex_offset = Vector2( -4, -32 ) +2/modulate = Color( 1, 1, 1, 1 ) 2/region = Rect2( 28, 220, 132, 136 ) 2/occluder_offset = Vector2( 66, 68 ) 2/navigation_offset = Vector2( 66, 68 ) @@ -51,6 +54,7 @@ points = Vector2Array( 66.095, -0.62516, -5.90501, 31.3748, -21.905, 23.3748, 50 3/name = "column" 3/texture = ExtResource( 1 ) 3/tex_offset = Vector2( -2, -32 ) +3/modulate = Color( 1, 1, 1, 1 ) 3/region = Rect2( 220, 220, 132, 136 ) 3/occluder_offset = Vector2( 66, 68 ) 3/navigation_offset = Vector2( 66, 68 ) @@ -59,6 +63,7 @@ points = Vector2Array( 66.095, -0.62516, -5.90501, 31.3748, -21.905, 23.3748, 50 4/name = "door1" 4/texture = ExtResource( 1 ) 4/tex_offset = Vector2( 16, -22 ) +4/modulate = Color( 1, 1, 1, 1 ) 4/region = Rect2( 24, 408, 132, 136 ) 4/occluder_offset = Vector2( 66, 68 ) 4/navigation_offset = Vector2( 66, 68 ) diff --git a/old/2d/isometric/tileset_edit.tscn b/2d/isometric/tileset_edit.tscn similarity index 67% rename from old/2d/isometric/tileset_edit.tscn rename to 2d/isometric/tileset_edit.tscn index 2c83c4b5..17b914c9 100644 --- a/old/2d/isometric/tileset_edit.tscn +++ b/2d/isometric/tileset_edit.tscn @@ -1,32 +1,33 @@ -[gd_scene load_steps=6 format=1] +[gd_scene load_steps=16 format=2] [ext_resource path="res://isotiles.png" type="Texture" id=1] [sub_resource type="ConvexPolygonShape2D" id=1] custom_solver_bias = 0.0 -points = Vector2Array( -68, 2, -4, -30, 60, 2, -4, 34 ) +points = PoolVector2Array( -68, 2, -4, -30, 60, 2, -4, 34 ) [sub_resource type="ConvexPolygonShape2D" id=2] custom_solver_bias = 0.0 -points = Vector2Array( -20, -6, -4, -22, 12, -22, 4, 10, -4, 10 ) +points = PoolVector2Array( -20, -6, -4, -22, 12, -22, 4, 10, -4, 10 ) [sub_resource type="ConvexPolygonShape2D" id=3] custom_solver_bias = 0.0 -points = Vector2Array( 28, -6, 4, 10, 12, -22 ) +points = PoolVector2Array( 28, -6, 4, 10, 12, -22 ) [sub_resource type="ConvexPolygonShape2D" id=4] custom_solver_bias = 0.0 -points = Vector2Array( 66.095, -0.62516, -5.90501, 31.3748, -21.905, 23.3748, 50.095, -8.62516 ) +points = PoolVector2Array( 66.095, -0.62516, -5.90501, 31.3748, -21.905, 23.3748, 50.095, -8.62516 ) [node name="Node2D" type="Node2D"] + [node name="base" type="Sprite" parent="."] -transform/pos = Vector2( 87.5658, 0.113792 ) +position = Vector2( 87.5658, 0.113792 ) texture = ExtResource( 1 ) offset = Vector2( -4, 6 ) region = true @@ -34,7 +35,7 @@ region_rect = Rect2( 28, 92, 132, 84 ) [node name="base2" type="Sprite" parent="."] -transform/pos = Vector2( 196, 44 ) +position = Vector2( 196, 44 ) texture = ExtResource( 1 ) offset = Vector2( -4, 6 ) region = true @@ -42,7 +43,7 @@ region_rect = Rect2( 220, 92, 132, 84 ) [node name="wall" type="Sprite" parent="."] -transform/pos = Vector2( 356, 70 ) +position = Vector2( 356, 70 ) texture = ExtResource( 1 ) offset = Vector2( -4, -32 ) region = true @@ -50,12 +51,12 @@ region_rect = Rect2( 28, 220, 132, 136 ) [node name="StaticBody2D" type="StaticBody2D" parent="wall"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -64,13 +65,13 @@ bounce = 0.0 [node name="collision" type="CollisionPolygon2D" parent="wall/StaticBody2D"] build_mode = 0 -polygon = Vector2Array( -68, 2, -4, 34, 60, 2, -4, -30 ) +polygon = PoolVector2Array( -68, 2, -4, 34, 60, 2, -4, -30 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="column" type="Sprite" parent="."] -transform/pos = Vector2( 292, 198 ) +position = Vector2( 292, 198 ) texture = ExtResource( 1 ) offset = Vector2( -2, -32 ) region = true @@ -78,15 +79,15 @@ region_rect = Rect2( 220, 220, 132, 136 ) [node name="StaticBody" type="StaticBody2D" parent="column"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 2 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false shapes/1/shape = SubResource( 3 ) -shapes/1/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/1/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/1/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -95,13 +96,13 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="column/StaticBody"] build_mode = 0 -polygon = Vector2Array( -20, -6, -4, 10, 4, 10, 28, -6, 12, -22, -4, -22 ) +polygon = PoolVector2Array( -20, -6, -4, 10, 4, 10, 28, -6, 12, -22, -4, -22 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="door1" type="Sprite" parent="."] -transform/pos = Vector2( 85.905, 0.62516 ) +position = Vector2( 85.905, 0.62516 ) texture = ExtResource( 1 ) offset = Vector2( 16, -22 ) region = true @@ -109,12 +110,12 @@ region_rect = Rect2( 24, 408, 132, 136 ) [node name="StaticBody2D" type="StaticBody2D" parent="door1"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 4 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -123,8 +124,6 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="door1/StaticBody2D"] build_mode = 0 -polygon = Vector2Array( -5.90501, 31.3748, 66.095, -0.62516, 50.095, -8.62516, -21.905, 23.3748 ) +polygon = PoolVector2Array( -5.90501, 31.3748, 66.095, -0.62516, 50.095, -8.62516, -21.905, 23.3748 ) shape_range = Vector2( -1, -1 ) trigger = false - - diff --git a/old/2d/isometric/troll.gd b/2d/isometric/troll.gd similarity index 66% rename from old/2d/isometric/troll.gd rename to 2d/isometric/troll.gd index d8d4880d..94eea73e 100644 --- a/old/2d/isometric/troll.gd +++ b/2d/isometric/troll.gd @@ -23,16 +23,7 @@ func _fixed_process(delta): if (Input.is_action_pressed("move_right")): motion += Vector2(1, 0) - motion = motion.normalized()*MOTION_SPEED*delta - motion = move(motion) - - # Make character slide nicely through the world - var slide_attempts = 4 - while(is_colliding() and slide_attempts > 0): - motion = get_collision_normal().slide(motion) - motion = move(motion) - slide_attempts -= 1 + motion = motion.normalized()*MOTION_SPEED + # Make character slide nicely through the world + move_and_slide( motion ) - -func _ready(): - set_fixed_process(true) diff --git a/old/2d/isometric/troll.png b/2d/isometric/troll.png similarity index 100% rename from old/2d/isometric/troll.png rename to 2d/isometric/troll.png diff --git a/old/2d/isometric/troll.tscn b/2d/isometric/troll.tscn similarity index 57% rename from old/2d/isometric/troll.tscn rename to 2d/isometric/troll.tscn index 00080ba0..c94cf8c6 100644 --- a/old/2d/isometric/troll.tscn +++ b/2d/isometric/troll.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=4 format=1] +[gd_scene load_steps=5 format=2] [ext_resource path="res://troll.gd" type="Script" id=1] [ext_resource path="res://troll.png" type="Texture" id=2] @@ -10,23 +10,23 @@ radius = 16.0 [node name="troll" type="KinematicBody2D"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, -0.342697, -0.980721 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, -0.342697, -0.980721 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 collision/margin = 0.001 -script/script = ExtResource( 1 ) +script = ExtResource( 1 ) [node name="Sprite" type="Sprite" parent="."] -transform/pos = Vector2( -3.94334, -36.924 ) +position = Vector2( -3.94334, -36.924 ) texture = ExtResource( 2 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] -transform/pos = Vector2( -0.342697, -0.980721 ) +position = Vector2( -0.342697, -0.980721 ) shape = SubResource( 1 ) trigger = false _update_shape_index = -1 @@ -37,17 +37,15 @@ anchor_mode = 1 rotating = false current = true zoom = Vector2( 1, 1 ) -limit/left = -10000000 -limit/top = -10000000 -limit/right = 10000000 -limit/bottom = 10000000 +limit_left = -10000000 +limit_top = -10000000 +limit_right = 10000000 +limit_bottom = 10000000 drag_margin/h_enabled = true drag_margin/v_enabled = true -smoothing/enable = false -smoothing/speed = 5.0 -drag_margin/left = 0.2 -drag_margin/top = 0.2 -drag_margin/right = 0.2 -drag_margin/bottom = 0.2 - - +smoothing_enabled = false +smoothing_speed = 5.0 +drag_margin_left = 0.2 +drag_margin_top = 0.2 +drag_margin_right = 0.2 +drag_margin_bottom = 0.2 diff --git a/old/2d/kinematic_char/circle.png b/2d/kinematic_character/circle.png similarity index 100% rename from old/2d/kinematic_char/circle.png rename to 2d/kinematic_character/circle.png diff --git a/old/2d/kinematic_char/colworld.gd b/2d/kinematic_character/colworld.gd similarity index 100% rename from old/2d/kinematic_char/colworld.gd rename to 2d/kinematic_character/colworld.gd diff --git a/2d/kinematic_character/colworld.tscn b/2d/kinematic_character/colworld.tscn new file mode 100644 index 00000000..d090ec5c --- /dev/null +++ b/2d/kinematic_character/colworld.tscn @@ -0,0 +1,396 @@ +[gd_scene load_steps=19 format=2] + +[ext_resource path="res://colworld.gd" type="Script" id=1] +[ext_resource path="res://obstacle.png" type="Texture" id=2] +[ext_resource path="res://player.tscn" type="PackedScene" id=3] +[ext_resource path="res://princess.png" type="Texture" id=4] +[ext_resource path="res://circle.png" type="Texture" id=5] +[ext_resource path="res://long_obstacle.png" type="Texture" id=6] + +[sub_resource type="RectangleShape2D" id=1] + +custom_solver_bias = 0.0 +extents = Vector2( 8, 8 ) + +[sub_resource type="TileSet" id=2] + +0/name = "" +0/texture = ExtResource( 2 ) +0/tex_offset = Vector2( 0, 0 ) +0/modulate = Color( 1, 1, 1, 1 ) +0/region = Rect2( 0, 0, 0, 0 ) +0/occluder_offset = Vector2( 0, 0 ) +0/navigation_offset = Vector2( 0, 0 ) +0/shape_offset = Vector2( 8, 8 ) +0/shapes = [ SubResource( 1 ) ] + +[sub_resource type="RectangleShape2D" id=3] + +custom_solver_bias = 0.0 +extents = Vector2( 8, 8 ) + +[sub_resource type="Animation" id=4] + +length = 10.0 +loop = true +step = 0.1 +tracks/0/type = "value" +tracks/0/path = NodePath(".:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 1, 5, 6 ), +"transitions": PoolFloatArray( 1, 1, 1, 1 ), +"update": 0, +"values": [ Vector2( 184, 152 ), Vector2( 184, 152 ), Vector2( 328.086, 152 ), Vector2( 328.086, 152 ) ] +} + +[sub_resource type="Animation" id=5] + +resource_name = "leftright" +length = 10.0 +loop = true +step = 0.1 +tracks/0/type = "value" +tracks/0/path = NodePath(".:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 1, 5, 6 ), +"transitions": PoolFloatArray( 1, 1, 1, 1 ), +"update": 0, +"values": [ Vector2( 184, 152 ), Vector2( 184, 152 ), Vector2( 328.086, 152 ), Vector2( 328.086, 152 ) ] +} + +[sub_resource type="Animation" id=6] + +length = 10.0 +loop = true +step = 0.1 +tracks/0/type = "value" +tracks/0/path = NodePath(".:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 1, 5, 6 ), +"transitions": PoolFloatArray( 1, 1, 1, 1 ), +"update": 0, +"values": [ Vector2( 88.3493, 296 ), Vector2( 88.3493, 296 ), Vector2( 88.3493, 152 ), Vector2( 88.3493, 152 ) ] +} + +[sub_resource type="RectangleShape2D" id=7] + +custom_solver_bias = 0.0 +extents = Vector2( 8, 8 ) + +[sub_resource type="RectangleShape2D" id=8] + +custom_solver_bias = 0.0 +extents = Vector2( 10, 4 ) + +[sub_resource type="CircleShape2D" id=9] + +custom_solver_bias = 0.0 +radius = 32.0 + +[sub_resource type="Animation" id=10] + +length = 20.0 +loop = true +step = 0.1 +tracks/0/type = "value" +tracks/0/path = NodePath(".:rotation_deg") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 5, 10, 15 ), +"transitions": PoolFloatArray( -2, -2, -2, -2 ), +"update": 0, +"values": [ 0.0, 90.0, 0.0, -90.0 ] +} + +[sub_resource type="RectangleShape2D" id=11] + +custom_solver_bias = 0.0 +extents = Vector2( 8, 8 ) + +[sub_resource type="RectangleShape2D" id=12] + +custom_solver_bias = 0.0 +extents = Vector2( 32, 8 ) + +[node name="colworld" type="Node2D"] + +script = ExtResource( 1 ) + +[node name="TileMap" type="TileMap" parent="."] + +mode = 0 +tile_set = SubResource( 2 ) +cell_size = Vector2( 16, 16 ) +cell_quadrant_size = 16 +cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +cell_half_offset = 2 +cell_tile_origin = 0 +cell_y_sort = false +collision_use_kinematic = false +collision_friction = 1.0 +collision_bounce = 0.0 +collision_layer = 1 +collision_mask = 1 +occluder_light_mask = 1 +tile_data = PoolIntArray( 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0, 21, 0, 22, 0, 23, 0, 24, 0, 25, 0, 26, 0, 27, 0, 28, 0, 29, 0, 30, 0, 31, 0, 32, 0, 65536, 0, 65537, 0, 65538, 0, 65539, 0, 65540, 0, 65541, 0, 65542, 0, 65543, 0, 65544, 0, 65545, 0, 65546, 0, 65547, 0, 65548, 0, 65549, 0, 65550, 0, 65551, 0, 65552, 0, 65553, 0, 65554, 0, 65555, 0, 65556, 0, 65557, 0, 65558, 0, 65559, 0, 65560, 0, 65561, 0, 65562, 0, 65563, 0, 65564, 0, 65565, 0, 65566, 0, 65567, 0, 65568, 0, 131072, 0, 131073, 0, 131103, 0, 131104, 0, 196608, 0, 196609, 0, 196639, 0, 196640, 0, 262144, 0, 262145, 0, 262175, 0, 262176, 0, 327680, 0, 327681, 0, 327685, 0, 327686, 0, 327687, 0, 327688, 0, 327689, 0, 327690, 0, 327691, 0, 327692, 0, 327693, 0, 327697, 0, 327711, 0, 327712, 0, 393216, 0, 393217, 0, 393237, 0, 393238, 0, 393247, 0, 393248, 0, 458752, 0, 458753, 0, 458783, 0, 458784, 0, 524288, 0, 524289, 0, 524313, 0, 524314, 0, 524319, 0, 524320, 0, 589824, 0, 589825, 0, 589830, 0, 589831, 0, 589832, 0, 589833, 0, 589834, 0, 589845, 0, 589846, 0, 589847, 0, 589855, 0, 589856, 0, 655360, 0, 655361, 0, 655391, 0, 655392, 0, 720896, 0, 720897, 0, 720927, 0, 720928, 0, 786432, 0, 786433, 0, 786463, 0, 786464, 0, 851968, 0, 851969, 0, 851999, 0, 852000, 0, 917504, 0, 917505, 0, 917535, 0, 917536, 0, 983040, 0, 983041, 0, 983071, 0, 983072, 0, 1048576, 0, 1048577, 0, 1048607, 0, 1048608, 0, 1114112, 0, 1114113, 0, 1114143, 0, 1114144, 0, 1179648, 0, 1179649, 0, 1179654, 0, 1179655, 0, 1179656, 0, 1179679, 0, 1179680, 0, 1245184, 0, 1245185, 0, 1245204, 0, 1245205, 0, 1245206, 0, 1245207, 0, 1245215, 0, 1245216, 0, 1310720, 0, 1310721, 0, 1310751, 0, 1310752, 0, 1376256, 0, 1376257, 0, 1376285, 0, 1376286, 0, 1376287, 0, 1376288, 0, 1441792, 0, 1441793, 0, 1441823, 0, 1441824, 0, 1507328, 0, 1507329, 0, 1507355, 0, 1507356, 0, 1507359, 0, 1507360, 0, 1572864, 0, 1572865, 0, 1572895, 0, 1572896, 0, 1638400, 0, 1638401, 0, 1638413, 0, 1638425, 0, 1638426, 0, 1638431, 0, 1638432, 0, 1703936, 0, 1703937, 0, 1703948, 0, 1703965, 0, 1703966, 0, 1703967, 0, 1703968, 0, 1769472, 0, 1769473, 0, 1769482, 0, 1769483, 0, 1769500, 0, 1769501, 0, 1769503, 0, 1769504, 0, 1835008, 0, 1835009, 0, 1835012, 0, 1835018, 0, 1835019, 0, 1835034, 0, 1835035, 0, 1835039, 0, 1835040, 0, 1900544, 0, 1900545, 0, 1900546, 0, 1900547, 0, 1900548, 0, 1900549, 0, 1900550, 0, 1900551, 0, 1900552, 0, 1900553, 0, 1900554, 0, 1900555, 0, 1900556, 0, 1900557, 0, 1900558, 0, 1900559, 0, 1900560, 0, 1900561, 0, 1900562, 0, 1900563, 0, 1900564, 0, 1900565, 0, 1900566, 0, 1900567, 0, 1900568, 0, 1900569, 0, 1900570, 0, 1900571, 0, 1900572, 0, 1900573, 0, 1900574, 0, 1900575, 0, 1900576, 0, 1966080, 0, 1966081, 0, 1966082, 0, 1966083, 0, 1966084, 0, 1966085, 0, 1966086, 0, 1966087, 0, 1966088, 0, 1966089, 0, 1966090, 0, 1966091, 0, 1966092, 0, 1966093, 0, 1966094, 0, 1966095, 0, 1966096, 0, 1966097, 0, 1966098, 0, 1966099, 0, 1966100, 0, 1966101, 0, 1966102, 0, 1966103, 0, 1966104, 0, 1966105, 0, 1966106, 0, 1966107, 0, 1966108, 0, 1966109, 0, 1966110, 0, 1966111, 0, 1966112, 0, 2031616, 0, 2031617, 0, 2031618, 0, 2031619, 0, 2031620, 0, 2031621, 0, 2031622, 0, 2031623, 0, 2031624, 0, 2031625, 0, 2031626, 0, 2031627, 0, 2031628, 0, 2031629, 0, 2031630, 0, 2031631, 0, 2031632, 0, 2031633, 0, 2031634, 0, 2031635, 0, 2031636, 0, 2031637, 0, 2031638, 0, 2031639, 0, 2031640, 0, 2031641, 0, 2031642, 0, 2031643, 0, 2031644, 0, 2031645, 0, 2031646, 0, 2031647, 0, 2031648, 0 ) + +[node name="player" parent="." instance=ExtResource( 3 )] + +position = Vector2( 233.06, 223.436 ) +collision/safe_margin = 0.08 + +[node name="moving_platform1" type="KinematicBody2D" parent="."] + +position = Vector2( 274.142, 152 ) +input_pickable = false +collision_layer = 1 +collision_mask = 1 +collision/safe_margin = 0.08 + +[node name="collision" type="CollisionShape2D" parent="moving_platform1"] + +shape = SubResource( 3 ) + +[node name="sprite" type="Sprite" parent="moving_platform1"] + +texture = ExtResource( 2 ) + +[node name="anim" type="AnimationPlayer" parent="moving_platform1"] + +playback_process_mode = 0 +playback_default_blend_time = 0.0 +root_node = NodePath("..") +anims/leftright = SubResource( 4 ) +playback/active = true +playback/speed = 1.0 +blend_times = [ ] +autoplay = "leftright" + +[node name="moving_platform2" type="KinematicBody2D" parent="."] + +position = Vector2( 88.3493, 284.689 ) +input_pickable = false +collision_layer = 1 +collision_mask = 1 +collision/safe_margin = 0.08 + +[node name="collision" type="CollisionShape2D" parent="moving_platform2"] + +shape = SubResource( 3 ) + +[node name="sprite" type="Sprite" parent="moving_platform2"] + +texture = ExtResource( 2 ) + +[node name="anim" type="AnimationPlayer" parent="moving_platform2"] + +playback_process_mode = 0 +playback_default_blend_time = 0.0 +root_node = NodePath("..") +anims/leftright = SubResource( 5 ) +anims/updown = SubResource( 6 ) +playback/active = true +playback/speed = 1.0 +blend_times = [ ] +autoplay = "updown" + +[node name="princess" type="Area2D" parent="."] + +position = Vector2( 97, 72 ) +input_pickable = true +gravity_vec = Vector2( 0, 1 ) +gravity = 98.0 +linear_damp = 0.1 +angular_damp = 1.0 +audio_bus_override = false +audio_bus_name = "Master" + +[node name="collision" type="CollisionShape2D" parent="princess"] + +shape = SubResource( 7 ) + +[node name="Sprite" type="Sprite" parent="princess"] + +texture = ExtResource( 4 ) + +[node name="youwin" type="Label" parent="."] + +visible = false +margin_left = 196.0 +margin_top = 41.0 +margin_right = 344.0 +margin_bottom = 67.0 +rect_clip_content = false +mouse_filter = 2 +size_flags_horizontal = 2 +size_flags_vertical = 0 +text = "Thank You Cubio +You Saved The Princess!" +align = 1 +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 + +[node name="oneway1" type="KinematicBody2D" parent="."] + +position = Vector2( 439, 308 ) +input_pickable = false +collision_layer = 1 +collision_mask = 1 +collision/safe_margin = 0.08 + +[node name="sprite" type="Sprite" parent="oneway1"] + +scale = Vector2( 1, 0.3 ) +texture = ExtResource( 2 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway1"] + +shape = SubResource( 8 ) +one_way_collision = true + +[node name="oneway2" type="KinematicBody2D" parent="."] + +position = Vector2( 456, 308 ) +input_pickable = false +collision_layer = 1 +collision_mask = 1 +collision/safe_margin = 0.08 + +[node name="sprite" type="Sprite" parent="oneway2"] + +scale = Vector2( 1, 0.3 ) +texture = ExtResource( 2 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway2"] + +shape = SubResource( 8 ) +one_way_collision = true + +[node name="oneway3" type="KinematicBody2D" parent="."] + +position = Vector2( 472, 308 ) +input_pickable = false +collision_layer = 1 +collision_mask = 1 +collision/safe_margin = 0.08 + +[node name="sprite" type="Sprite" parent="oneway3"] + +scale = Vector2( 1, 0.3 ) +texture = ExtResource( 2 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway3"] + +shape = SubResource( 8 ) +one_way_collision = true + +[node name="oneway4" type="KinematicBody2D" parent="."] + +position = Vector2( 487, 308 ) +input_pickable = false +collision_layer = 1 +collision_mask = 1 +collision/safe_margin = 0.08 + +[node name="sprite" type="Sprite" parent="oneway4"] + +scale = Vector2( 1, 0.3 ) +texture = ExtResource( 2 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway4"] + +shape = SubResource( 8 ) +one_way_collision = true + +[node name="circle" type="KinematicBody2D" parent="."] + +position = Vector2( 241.169, 304.126 ) +input_pickable = false +collision_layer = 1 +collision_mask = 1 +collision/safe_margin = 0.08 + +[node name="sprite" type="Sprite" parent="circle"] + +texture = ExtResource( 5 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="circle"] + +shape = SubResource( 9 ) + +[node name="anim" type="AnimationPlayer" parent="circle"] + +playback_process_mode = 1 +playback_default_blend_time = 0.0 +root_node = NodePath("..") +anims/turn = SubResource( 10 ) +playback/active = true +playback/speed = 1.0 +blend_times = [ ] +autoplay = "turn" + +[node name="box" type="CollisionShape2D" parent="circle"] + +position = Vector2( -0.440125, -37.0904 ) +shape = SubResource( 11 ) + +[node name="boxsprite" type="Sprite" parent="circle"] + +position = Vector2( 0, -37.4108 ) +texture = ExtResource( 2 ) + +[node name="platform" type="StaticBody2D" parent="."] + +position = Vector2( 251.44, 396.557 ) +rotation = -0.428054 +input_pickable = false +collision_layer = 1 +collision_mask = 1 +constant_linear_velocity = Vector2( 0, 0 ) +constant_angular_velocity = 0.0 +friction = 1.0 +bounce = 0.0 + +[node name="sprite" type="Sprite" parent="platform"] + +texture = ExtResource( 6 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="platform"] + +shape = SubResource( 12 ) + +[node name="platform1" type="StaticBody2D" parent="."] + +position = Vector2( 369.116, 394.016 ) +rotation = 0.465931 +input_pickable = false +collision_layer = 1 +collision_mask = 1 +constant_linear_velocity = Vector2( 0, 0 ) +constant_angular_velocity = 0.0 +friction = 1.0 +bounce = 0.0 + +[node name="sprite" type="Sprite" parent="platform1"] + +texture = ExtResource( 6 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="platform1"] + +shape = SubResource( 12 ) + +[connection signal="body_entered" from="princess" to="." method="_on_princess_body_enter"] + + diff --git a/old/2d/kinematic_char/icon.png b/2d/kinematic_character/icon.png similarity index 100% rename from old/2d/kinematic_char/icon.png rename to 2d/kinematic_character/icon.png diff --git a/old/2d/kinematic_char/long_obstacle.png b/2d/kinematic_character/long_obstacle.png similarity index 100% rename from old/2d/kinematic_char/long_obstacle.png rename to 2d/kinematic_character/long_obstacle.png diff --git a/old/2d/kinematic_char/obstacle.png b/2d/kinematic_character/obstacle.png similarity index 100% rename from old/2d/kinematic_char/obstacle.png rename to 2d/kinematic_character/obstacle.png diff --git a/old/2d/kinematic_char/player.gd b/2d/kinematic_character/player.gd similarity index 55% rename from old/2d/kinematic_char/player.gd rename to 2d/kinematic_character/player.gd index 2890cc2c..11d60e36 100644 --- a/old/2d/kinematic_char/player.gd +++ b/2d/kinematic_character/player.gd @@ -59,52 +59,13 @@ func _fixed_process(delta): velocity.x = vlen*vsign # Integrate forces to velocity - velocity += force*delta - + velocity += force*delta # Integrate velocity into motion and move - var motion = velocity*delta + velocity = move_and_slide(velocity,Vector2(0,-1)) - # Move and consume motion - motion = move(motion) - - var floor_velocity = Vector2() - - if (is_colliding()): - # You can check which tile was collision against with this - # print(get_collider_metadata()) + if (is_on_floor()): + on_air_time=0 - # Ran against something, is it the floor? Get normal - var n = get_collision_normal() - - if (rad2deg(acos(n.dot(Vector2(0, -1)))) < FLOOR_ANGLE_TOLERANCE): - # If angle to the "up" vectors is < angle tolerance - # char is on floor - on_air_time = 0 - floor_velocity = get_collider_velocity() - - if (on_air_time == 0 and force.x == 0 and get_travel().length() < SLIDE_STOP_MIN_TRAVEL and abs(velocity.x) < SLIDE_STOP_VELOCITY and get_collider_velocity() == Vector2()): - # Since this formula will always slide the character around, - # a special case must be considered to to stop it from moving - # if standing on an inclined floor. Conditions are: - # 1) Standing on floor (on_air_time == 0) - # 2) Did not move more than one pixel (get_travel().length() < SLIDE_STOP_MIN_TRAVEL) - # 3) Not moving horizontally (abs(velocity.x) < SLIDE_STOP_VELOCITY) - # 4) Collider is not moving - - revert_motion() - velocity.y = 0.0 - else: - # For every other case of motion, our motion was interrupted. - # Try to complete the motion by "sliding" by the normal - motion = n.slide(motion) - velocity = n.slide(velocity) - # Then move again - move(motion) - - if (floor_velocity != Vector2()): - # If floor moves, move with floor - move(floor_velocity*delta) - if (jumping and velocity.y > 0): # If falling, no longer jumping jumping = false @@ -117,7 +78,3 @@ func _fixed_process(delta): on_air_time += delta prev_jump_pressed = jump - - -func _ready(): - set_fixed_process(true) diff --git a/old/2d/kinematic_char/player.png b/2d/kinematic_character/player.png similarity index 100% rename from old/2d/kinematic_char/player.png rename to 2d/kinematic_character/player.png diff --git a/old/2d/kinematic_char/player.tscn b/2d/kinematic_character/player.tscn similarity index 69% rename from old/2d/kinematic_char/player.tscn rename to 2d/kinematic_character/player.tscn index e3e5fa1d..7412ca8c 100644 --- a/old/2d/kinematic_char/player.tscn +++ b/2d/kinematic_character/player.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=4 format=1] +[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] @@ -10,14 +10,14 @@ extents = Vector2( 7, 7 ) [node name="player" type="KinematicBody2D"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, -0.315559, 0.157784 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, -0.315559, 0.157784 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 collision/margin = 0.01 -script/script = ExtResource( 1 ) +script = ExtResource( 1 ) [node name="sprite" type="Sprite" parent="."] @@ -25,9 +25,7 @@ texture = ExtResource( 2 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] -transform/pos = Vector2( -0.315559, 0.157784 ) +position = Vector2( -0.315559, 0.157784 ) shape = SubResource( 1 ) trigger = false _update_shape_index = -1 - - diff --git a/old/2d/kinematic_char/princess.png b/2d/kinematic_character/princess.png similarity index 100% rename from old/2d/kinematic_char/princess.png rename to 2d/kinematic_character/princess.png diff --git a/2d/kinematic_character/project.godot b/2d/kinematic_character/project.godot new file mode 100644 index 00000000..6c59d4d5 --- /dev/null +++ b/2d/kinematic_character/project.godot @@ -0,0 +1,30 @@ +config_version=3 +[application] + +name="Kinematic Character" +main_scene="res://colworld.tscn" +icon="res://icon.png" + +[display] + +stretch/aspect="keep" +stretch/mode="2d" +window/height=495 +window/width=530 + +[input] + +jump=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"unicode":0,"echo":false,"script":null) + ] +move_bottom=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"unicode":0,"echo":false,"script":null) + ] +move_left=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"unicode":0,"echo":false,"script":null) + ] +move_right=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null) + ] +move_up=[ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null) + ] + +[memory] + +multithread/thread_rid_pool_prealloc=60 diff --git a/2d/kinematic_collision/colworld.tscn b/2d/kinematic_collision/colworld.tscn new file mode 100644 index 00000000..7803dcbe --- /dev/null +++ b/2d/kinematic_collision/colworld.tscn @@ -0,0 +1,47 @@ +[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] + +custom_solver_bias = 0.0 +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/occluder_offset = Vector2( 0, 0 ) +0/navigation_offset = Vector2( 0, 0 ) +0/shape_offset = Vector2( 8, 8 ) +0/shapes = [ SubResource( 1 ) ] + +[node name="colworld" type="Node2D"] + +[node name="TileMap" type="TileMap" parent="."] + +mode = 0 +tile_set = SubResource( 2 ) +cell_size = Vector2( 16, 16 ) +cell_quadrant_size = 16 +cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +cell_half_offset = 2 +cell_tile_origin = 0 +cell_y_sort = false +collision_use_kinematic = false +collision_friction = 1.0 +collision_bounce = 0.0 +collision_layer = 1 +collision_mask = 1 +occluder_light_mask = 1 +tile_data = PoolIntArray( 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0, 21, 0, 22, 0, 23, 0, 24, 0, 25, 0, 26, 0, 27, 0, 28, 0, 29, 0, 30, 0, 31, 0, 32, 0, 65536, 0, 65537, 0, 65538, 0, 65539, 0, 65540, 0, 65541, 0, 65542, 0, 65543, 0, 65544, 0, 65545, 0, 65546, 0, 65547, 0, 65548, 0, 65549, 0, 65550, 0, 65551, 0, 65552, 0, 65553, 0, 65554, 0, 65555, 0, 65556, 0, 65557, 0, 65558, 0, 65559, 0, 65560, 0, 65561, 0, 65562, 0, 65563, 0, 65564, 0, 65565, 0, 65566, 0, 65567, 0, 65568, 0, 131072, 0, 131073, 0, 131103, 0, 131104, 0, 196608, 0, 196609, 0, 196639, 0, 196640, 0, 262144, 0, 262145, 0, 262175, 0, 262176, 0, 327680, 0, 327681, 0, 327685, 0, 327686, 0, 327687, 0, 327688, 0, 327689, 0, 327690, 0, 327691, 0, 327692, 0, 327693, 0, 327711, 0, 327712, 0, 393216, 0, 393217, 0, 393247, 0, 393248, 0, 458752, 0, 458753, 0, 458783, 0, 458784, 0, 524288, 0, 524289, 0, 524319, 0, 524320, 0, 589824, 0, 589825, 0, 589855, 0, 589856, 0, 655360, 0, 655361, 0, 655373, 0, 655374, 0, 655375, 0, 655376, 0, 655377, 0, 655378, 0, 655379, 0, 655380, 0, 655381, 0, 655391, 0, 655392, 0, 720896, 0, 720897, 0, 720909, 0, 720910, 0, 720911, 0, 720912, 0, 720913, 0, 720914, 0, 720915, 0, 720916, 0, 720917, 0, 720927, 0, 720928, 0, 786432, 0, 786433, 0, 786445, 0, 786446, 0, 786447, 0, 786448, 0, 786449, 0, 786450, 0, 786451, 0, 786452, 0, 786453, 0, 786463, 0, 786464, 0, 851968, 0, 851969, 0, 851981, 0, 851982, 0, 851988, 0, 851989, 0, 851999, 0, 852000, 0, 917504, 0, 917505, 0, 917517, 0, 917518, 0, 917524, 0, 917525, 0, 917535, 0, 917536, 0, 983040, 0, 983041, 0, 983053, 0, 983054, 0, 983060, 0, 983061, 0, 983071, 0, 983072, 0, 1048576, 0, 1048577, 0, 1048596, 0, 1048597, 0, 1048607, 0, 1048608, 0, 1114112, 0, 1114113, 0, 1114132, 0, 1114133, 0, 1114143, 0, 1114144, 0, 1179648, 0, 1179649, 0, 1179668, 0, 1179669, 0, 1179679, 0, 1179680, 0, 1245184, 0, 1245185, 0, 1245204, 0, 1245205, 0, 1245215, 0, 1245216, 0, 1310720, 0, 1310721, 0, 1310730, 0, 1310731, 0, 1310748, 0, 1310751, 0, 1310752, 0, 1376256, 0, 1376257, 0, 1376266, 0, 1376267, 0, 1376284, 0, 1376287, 0, 1376288, 0, 1441792, 0, 1441793, 0, 1441802, 0, 1441803, 0, 1441804, 0, 1441805, 0, 1441820, 0, 1441823, 0, 1441824, 0, 1507328, 0, 1507329, 0, 1507338, 0, 1507339, 0, 1507340, 0, 1507341, 0, 1507359, 0, 1507360, 0, 1572864, 0, 1572865, 0, 1572874, 0, 1572875, 0, 1572876, 0, 1572877, 0, 1572878, 0, 1572879, 0, 1572880, 0, 1572881, 0, 1572882, 0, 1572895, 0, 1572896, 0, 1638400, 0, 1638401, 0, 1638410, 0, 1638411, 0, 1638412, 0, 1638413, 0, 1638414, 0, 1638415, 0, 1638416, 0, 1638417, 0, 1638418, 0, 1638431, 0, 1638432, 0, 1703936, 0, 1703937, 0, 1703946, 0, 1703947, 0, 1703967, 0, 1703968, 0, 1769472, 0, 1769473, 0, 1769482, 0, 1769483, 0, 1769503, 0, 1769504, 0, 1835008, 0, 1835009, 0, 1835018, 0, 1835019, 0, 1835039, 0, 1835040, 0, 1900544, 0, 1900545, 0, 1900546, 0, 1900547, 0, 1900548, 0, 1900549, 0, 1900550, 0, 1900551, 0, 1900552, 0, 1900553, 0, 1900554, 0, 1900555, 0, 1900556, 0, 1900557, 0, 1900558, 0, 1900559, 0, 1900560, 0, 1900561, 0, 1900562, 0, 1900563, 0, 1900564, 0, 1900565, 0, 1900566, 0, 1900567, 0, 1900568, 0, 1900569, 0, 1900570, 0, 1900571, 0, 1900572, 0, 1900573, 0, 1900574, 0, 1900575, 0, 1900576, 0, 1966080, 0, 1966081, 0, 1966082, 0, 1966083, 0, 1966084, 0, 1966085, 0, 1966086, 0, 1966087, 0, 1966088, 0, 1966089, 0, 1966090, 0, 1966091, 0, 1966092, 0, 1966093, 0, 1966094, 0, 1966095, 0, 1966096, 0, 1966097, 0, 1966098, 0, 1966099, 0, 1966100, 0, 1966101, 0, 1966102, 0, 1966103, 0, 1966104, 0, 1966105, 0, 1966106, 0, 1966107, 0, 1966108, 0, 1966109, 0, 1966110, 0, 1966111, 0, 1966112, 0, 2031616, 0, 2031617, 0, 2031618, 0, 2031619, 0, 2031620, 0, 2031621, 0, 2031622, 0, 2031623, 0, 2031624, 0, 2031625, 0, 2031626, 0, 2031627, 0, 2031628, 0, 2031629, 0, 2031630, 0, 2031631, 0, 2031632, 0, 2031633, 0, 2031634, 0, 2031635, 0, 2031636, 0, 2031637, 0, 2031638, 0, 2031639, 0, 2031640, 0, 2031641, 0, 2031642, 0, 2031643, 0, 2031644, 0, 2031645, 0, 2031646, 0, 2031647, 0, 2031648, 0 ) + +[node name="player" parent="." instance=ExtResource( 2 )] + +position = Vector2( 115.243, 222.134 ) + + diff --git a/old/2d/kinematic_col/icon.png b/2d/kinematic_collision/icon.png similarity index 100% rename from old/2d/kinematic_col/icon.png rename to 2d/kinematic_collision/icon.png diff --git a/old/2d/kinematic_col/obstacle.png b/2d/kinematic_collision/obstacle.png similarity index 100% rename from old/2d/kinematic_col/obstacle.png rename to 2d/kinematic_collision/obstacle.png diff --git a/old/2d/hexamap/troll.gd b/2d/kinematic_collision/player.gd similarity index 66% rename from old/2d/hexamap/troll.gd rename to 2d/kinematic_collision/player.gd index 82938fdf..b5d3caed 100644 --- a/old/2d/hexamap/troll.gd +++ b/2d/kinematic_collision/player.gd @@ -23,16 +23,5 @@ func _fixed_process(delta): if (Input.is_action_pressed("move_right")): motion += Vector2(1, 0) - motion = motion.normalized()*MOTION_SPEED*delta - motion = move(motion) - - # Make character slide nicely through the world - var slide_attempts = 4 - while(is_colliding() and slide_attempts > 0): - motion = get_collision_normal().slide(motion) - motion = move(motion) - slide_attempts -= 1 - - -func _ready(): - set_fixed_process(true) + motion = motion.normalized()*MOTION_SPEED + move_and_slide(motion) diff --git a/old/2d/kinematic_col/player.png b/2d/kinematic_collision/player.png similarity index 100% rename from old/2d/kinematic_col/player.png rename to 2d/kinematic_collision/player.png diff --git a/old/2d/kinematic_col/player.tscn b/2d/kinematic_collision/player.tscn similarity index 75% rename from old/2d/kinematic_col/player.tscn rename to 2d/kinematic_collision/player.tscn index 92ad6936..95587a80 100644 --- a/old/2d/kinematic_col/player.tscn +++ b/2d/kinematic_collision/player.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=4 format=1] +[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] @@ -10,14 +10,14 @@ extents = Vector2( 8, 8 ) [node name="player" type="KinematicBody2D"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 collision/margin = 0.01 -script/script = ExtResource( 1 ) +script = ExtResource( 1 ) [node name="sprite" type="Sprite" parent="."] @@ -28,5 +28,3 @@ texture = ExtResource( 2 ) shape = SubResource( 1 ) trigger = false _update_shape_index = -1 - - diff --git a/2d/kinematic_collision/project.godot b/2d/kinematic_collision/project.godot new file mode 100644 index 00000000..5d57a46d --- /dev/null +++ b/2d/kinematic_collision/project.godot @@ -0,0 +1,13 @@ +[application] + +icon = "res://icon.png" +main_scene = "res://colworld.tscn" +name = "Kinematic Collision" + +[input] + +move_bottom = [ InputEvent(KEY,16777234) ] +move_left = [ InputEvent(KEY,16777231) ] +move_right = [ InputEvent(KEY,16777233) ] +move_up = [ InputEvent(KEY,16777232) ] + diff --git a/2d/light2d_as_mask/.import/burano.png-893cff79ccbe972d7b1ad3e1845f81bf.stex b/2d/light2d_as_mask/.import/burano.png-893cff79ccbe972d7b1ad3e1845f81bf.stex new file mode 100644 index 00000000..1bf4e98a Binary files /dev/null and b/2d/light2d_as_mask/.import/burano.png-893cff79ccbe972d7b1ad3e1845f81bf.stex differ diff --git a/2d/light2d_as_mask/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex b/2d/light2d_as_mask/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex new file mode 100644 index 00000000..8a12ac5e Binary files /dev/null and b/2d/light2d_as_mask/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex differ diff --git a/2d/light2d_as_mask/.import/splat.png-a41a35966004eec2e8a20d517d1ec4bb.stex b/2d/light2d_as_mask/.import/splat.png-a41a35966004eec2e8a20d517d1ec4bb.stex new file mode 100644 index 00000000..7360d217 Binary files /dev/null and b/2d/light2d_as_mask/.import/splat.png-a41a35966004eec2e8a20d517d1ec4bb.stex differ diff --git a/old/2d/light_mask/burano.png b/2d/light2d_as_mask/burano.png similarity index 100% rename from old/2d/light_mask/burano.png rename to 2d/light2d_as_mask/burano.png diff --git a/2d/light2d_as_mask/burano.png.import b/2d/light2d_as_mask/burano.png.import new file mode 100644 index 00000000..b3362198 --- /dev/null +++ b/2d/light2d_as_mask/burano.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/burano.png-893cff79ccbe972d7b1ad3e1845f81bf.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/light_mask/icon.png b/2d/light2d_as_mask/icon.png similarity index 100% rename from old/2d/light_mask/icon.png rename to 2d/light2d_as_mask/icon.png diff --git a/2d/light2d_as_mask/icon.png.import b/2d/light2d_as_mask/icon.png.import new file mode 100644 index 00000000..627820bd --- /dev/null +++ b/2d/light2d_as_mask/icon.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/light2d_as_mask/lightmask.tscn b/2d/light2d_as_mask/lightmask.tscn new file mode 100644 index 00000000..c1f34cd3 --- /dev/null +++ b/2d/light2d_as_mask/lightmask.tscn @@ -0,0 +1,157 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://burano.png" type="Texture" id=1] +[ext_resource path="res://splat.png" type="Texture" id=2] + +[sub_resource type="CanvasItemMaterial" id=1] + +blend_mode = 0 +light_mode = 2 + +[sub_resource type="Animation" id=2] + +length = 4.0 +loop = true +step = 0.1 +tracks/0/type = "value" +tracks/0/path = NodePath("light1:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 1, 2, 3 ), +"transitions": PoolFloatArray( -2, -2, -2, -2 ), +"update": 0, +"values": [ Vector2( 601.028, 242.639 ), Vector2( 318.649, 327.353 ), Vector2( 381.263, 130.915 ), Vector2( 462.294, 389.968 ) ] +} +tracks/1/type = "value" +tracks/1/path = NodePath("light2:position") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/keys = { +"times": PoolFloatArray( 0, 1, 2, 3 ), +"transitions": PoolFloatArray( -2, -2, -2, -2 ), +"update": 0, +"values": [ Vector2( 196.528, 185.139 ), Vector2( 135.142, 454.013 ), Vector2( 638.105, 334.923 ), Vector2( 331.375, 101.653 ) ] +} +tracks/2/type = "value" +tracks/2/path = NodePath("light3:position") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/imported = false +tracks/2/keys = { +"times": PoolFloatArray( 0, 1, 2, 3 ), +"transitions": PoolFloatArray( -2, -2, -2, -2 ), +"update": 0, +"values": [ Vector2( 442.528, 411.139 ), Vector2( 635.283, 236.8 ), Vector2( 216.215, 396.815 ), Vector2( 682.96, 294.708 ) ] +} + +[node name="lightmask_demo" type="Control"] + +anchor_right = 1 +anchor_bottom = 1 +rect_clip_content = false +mouse_filter = 0 +size_flags_horizontal = 2 +size_flags_vertical = 2 + +[node name="burano" type="TextureRect" parent="."] + +material = SubResource( 1 ) +margin_right = 800.0 +margin_bottom = 600.0 +rect_clip_content = false +mouse_filter = 1 +size_flags_horizontal = 2 +size_flags_vertical = 2 +texture = ExtResource( 1 ) +stretch_mode = 0 + +[node name="light1" type="Light2D" parent="."] + +position = Vector2( 601.028, 242.639 ) +enabled = true +editor_only = false +texture = ExtResource( 2 ) +offset = Vector2( 0, 0 ) +scale = 1.0 +color = Color( 1, 1, 1, 1 ) +energy = 1.0 +mode = 2 +range_height = 0.0 +range_z_min = -1024 +range_z_max = 1024 +range_layer_min = 0 +range_layer_max = 0 +range_item_cull_mask = 1 +shadow_enabled = false +shadow_color = Color( 0, 0, 0, 0 ) +shadow_buffer_size = 2048 +shadow_gradient_length = 0.0 +shadow_filter = 0 +shadow_filter_smooth = 0.0 +shadow_item_cull_mask = 1 + +[node name="light2" type="Light2D" parent="."] + +position = Vector2( 196.528, 185.139 ) +enabled = true +editor_only = false +texture = ExtResource( 2 ) +offset = Vector2( 0, 0 ) +scale = 1.0 +color = Color( 1, 1, 1, 1 ) +energy = 1.0 +mode = 2 +range_height = 0.0 +range_z_min = -1024 +range_z_max = 1024 +range_layer_min = 0 +range_layer_max = 0 +range_item_cull_mask = 1 +shadow_enabled = false +shadow_color = Color( 0, 0, 0, 0 ) +shadow_buffer_size = 2048 +shadow_gradient_length = 0.0 +shadow_filter = 0 +shadow_filter_smooth = 0.0 +shadow_item_cull_mask = 1 + +[node name="light3" type="Light2D" parent="."] + +position = Vector2( 442.528, 411.139 ) +enabled = true +editor_only = false +texture = ExtResource( 2 ) +offset = Vector2( 0, 0 ) +scale = 1.0 +color = Color( 1, 1, 1, 1 ) +energy = 1.0 +mode = 2 +range_height = 0.0 +range_z_min = -1024 +range_z_max = 1024 +range_layer_min = 0 +range_layer_max = 0 +range_item_cull_mask = 1 +shadow_enabled = false +shadow_color = Color( 0, 0, 0, 0 ) +shadow_buffer_size = 2048 +shadow_gradient_length = 0.0 +shadow_filter = 0 +shadow_filter_smooth = 0.0 +shadow_item_cull_mask = 1 + +[node name="anim" type="AnimationPlayer" parent="."] + +playback_process_mode = 1 +playback_default_blend_time = 0.0 +root_node = NodePath("..") +anims/maskmotion = SubResource( 2 ) +playback/active = true +playback/speed = 1.0 +blend_times = [ ] +autoplay = "maskmotion" + + diff --git a/2d/light2d_as_mask/project.godot b/2d/light2d_as_mask/project.godot new file mode 100644 index 00000000..9f03416c --- /dev/null +++ b/2d/light2d_as_mask/project.godot @@ -0,0 +1,10 @@ +[application] + +icon = "res://icon.png" +main_scene = "res://lightmask.tscn" +name = "Using Lights As Mask" + +[rasterizer] + +shadow_filter = 3 + diff --git a/old/2d/light_mask/splat.png b/2d/light2d_as_mask/splat.png similarity index 100% rename from old/2d/light_mask/splat.png rename to 2d/light2d_as_mask/splat.png diff --git a/2d/light2d_as_mask/splat.png.import b/2d/light2d_as_mask/splat.png.import new file mode 100644 index 00000000..23139cc6 --- /dev/null +++ b/2d/light2d_as_mask/splat.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/splat.png-a41a35966004eec2e8a20d517d1ec4bb.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/lights_and_shadows/.import/bg.png-24bff804693ee063127ad100e04c5185.stex b/2d/lights_and_shadows/.import/bg.png-24bff804693ee063127ad100e04c5185.stex new file mode 100644 index 00000000..4dea94c6 Binary files /dev/null and b/2d/lights_and_shadows/.import/bg.png-24bff804693ee063127ad100e04c5185.stex differ diff --git a/2d/lights_and_shadows/.import/caster.png-67727cb056b9e0209664a84f1653a25a.stex b/2d/lights_and_shadows/.import/caster.png-67727cb056b9e0209664a84f1653a25a.stex new file mode 100644 index 00000000..a316bcb7 Binary files /dev/null and b/2d/lights_and_shadows/.import/caster.png-67727cb056b9e0209664a84f1653a25a.stex differ diff --git a/2d/lights_and_shadows/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex b/2d/lights_and_shadows/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex new file mode 100644 index 00000000..891d45fe Binary files /dev/null and b/2d/lights_and_shadows/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex differ diff --git a/2d/lights_and_shadows/.import/light.png-06e94102f0cce323cff7daad56cf3030.stex b/2d/lights_and_shadows/.import/light.png-06e94102f0cce323cff7daad56cf3030.stex new file mode 100644 index 00000000..75e00a4f Binary files /dev/null and b/2d/lights_and_shadows/.import/light.png-06e94102f0cce323cff7daad56cf3030.stex differ diff --git a/2d/lights_and_shadows/.import/spot.png-36b4dfbff4efeea17ec3137d266ffc4a.stex b/2d/lights_and_shadows/.import/spot.png-36b4dfbff4efeea17ec3137d266ffc4a.stex new file mode 100644 index 00000000..7cd84b23 Binary files /dev/null and b/2d/lights_and_shadows/.import/spot.png-36b4dfbff4efeea17ec3137d266ffc4a.stex differ diff --git a/old/2d/lights_shadows/bg.png b/2d/lights_and_shadows/bg.png similarity index 100% rename from old/2d/lights_shadows/bg.png rename to 2d/lights_and_shadows/bg.png diff --git a/2d/lights_and_shadows/bg.png.import b/2d/lights_and_shadows/bg.png.import new file mode 100644 index 00000000..8ec127a3 --- /dev/null +++ b/2d/lights_and_shadows/bg.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/bg.png-24bff804693ee063127ad100e04c5185.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/lights_shadows/caster.png b/2d/lights_and_shadows/caster.png similarity index 100% rename from old/2d/lights_shadows/caster.png rename to 2d/lights_and_shadows/caster.png diff --git a/2d/lights_and_shadows/caster.png.import b/2d/lights_and_shadows/caster.png.import new file mode 100644 index 00000000..f7328cea --- /dev/null +++ b/2d/lights_and_shadows/caster.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/caster.png-67727cb056b9e0209664a84f1653a25a.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/lights_shadows/icon.png b/2d/lights_and_shadows/icon.png similarity index 100% rename from old/2d/lights_shadows/icon.png rename to 2d/lights_and_shadows/icon.png diff --git a/2d/lights_and_shadows/icon.png.import b/2d/lights_and_shadows/icon.png.import new file mode 100644 index 00000000..627820bd --- /dev/null +++ b/2d/lights_and_shadows/icon.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/lights_shadows/light.png b/2d/lights_and_shadows/light.png similarity index 100% rename from old/2d/lights_shadows/light.png rename to 2d/lights_and_shadows/light.png diff --git a/2d/lights_and_shadows/light.png.import b/2d/lights_and_shadows/light.png.import new file mode 100644 index 00000000..554b8e96 --- /dev/null +++ b/2d/lights_and_shadows/light.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/light.png-06e94102f0cce323cff7daad56cf3030.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/lights_shadows/light_shadows.tscn b/2d/lights_and_shadows/light_shadows.tscn similarity index 58% rename from old/2d/lights_shadows/light_shadows.tscn rename to 2d/lights_and_shadows/light_shadows.tscn index f3169288..da657e17 100644 --- a/old/2d/lights_shadows/light_shadows.tscn +++ b/2d/lights_and_shadows/light_shadows.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=9 format=1] +[gd_scene load_steps=12 format=2] [ext_resource path="res://bg.png" type="Texture" id=1] [ext_resource path="res://caster.png" type="Texture" id=2] @@ -9,17 +9,12 @@ closed = true cull_mode = 0 -polygon = Vector2Array( -15.913, -15.9738, 15.9079, -16.0785, 15.6986, 15.847, -16.1223, 15.9517 ) +polygon = PoolVector2Array( -15.913, -15.9738, 15.9079, -16.0785, 15.6986, 15.847, -16.1223, 15.9517 ) -[sub_resource type="Animation" id=2] +[sub_resource type="CanvasItemMaterial" id=2] -length = 16.0 -loop = true -step = 0.1 -tracks/0/type = "value" -tracks/0/path = NodePath(".:transform/pos") -tracks/0/interp = 1 -tracks/0/keys = { "cont":true, "times":FloatArray( 0, 4, 8, 12 ), "transitions":FloatArray( -2, -2, -2, -2 ), "values":[ Vector2( 159.289, 452.441 ), Vector2( 132.279, 80.4366 ), Vector2( 700.722, 241.27 ), Vector2( 429.392, 571.532 ) ] } +blend_mode = 1 +light_mode = 0 [sub_resource type="Animation" id=3] @@ -27,9 +22,16 @@ length = 16.0 loop = true step = 0.1 tracks/0/type = "value" -tracks/0/path = NodePath(".:transform/pos") +tracks/0/path = NodePath(".:position") tracks/0/interp = 1 -tracks/0/keys = { "cont":true, "times":FloatArray( 0, 4.1, 8.1, 11.8 ), "transitions":FloatArray( -2, -2, -2, -2 ), "values":[ Vector2( 753.756, 314.336 ), Vector2( 69.7562, 234.336 ), Vector2( 256.756, 575.336 ), Vector2( 516.756, 530.336 ) ] } +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 4, 8, 12 ), +"transitions": PoolFloatArray( -2, -2, -2, -2 ), +"update": 0, +"values": [ Vector2( 159.289, 452.441 ), Vector2( 132.279, 80.4366 ), Vector2( 700.722, 241.27 ), Vector2( 429.392, 571.532 ) ] +} [sub_resource type="Animation" id=4] @@ -37,27 +39,61 @@ length = 16.0 loop = true step = 0.1 tracks/0/type = "value" -tracks/0/path = NodePath(".:transform/pos") +tracks/0/path = NodePath(".:position") tracks/0/interp = 1 -tracks/0/keys = { "cont":true, "times":FloatArray( 0, 4.1, 7.9, 12.1 ), "transitions":FloatArray( -2, -2, -2, -2 ), "values":[ Vector2( 692.078, 29.8849 ), Vector2( 309.606, 31.5551 ), Vector2( 40.7064, 238.658 ), Vector2( 685.397, 282.082 ) ] } +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 4.1, 8.1, 11.8 ), +"transitions": PoolFloatArray( -2, -2, -2, -2 ), +"update": 0, +"values": [ Vector2( 753.756, 314.336 ), Vector2( 69.7562, 234.336 ), Vector2( 256.756, 575.336 ), Vector2( 516.756, 530.336 ) ] +} + +[sub_resource type="CanvasItemMaterial" id=5] + +blend_mode = 1 +light_mode = 0 + +[sub_resource type="CanvasItemMaterial" id=6] + +blend_mode = 1 +light_mode = 0 + +[sub_resource type="Animation" id=7] + +length = 16.0 +loop = true +step = 0.1 +tracks/0/type = "value" +tracks/0/path = NodePath(".:position") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 4.1, 7.9, 12.1 ), +"transitions": PoolFloatArray( -2, -2, -2, -2 ), +"update": 0, +"values": [ Vector2( 692.078, 29.8849 ), Vector2( 309.606, 31.5551 ), Vector2( 40.7064, 238.658 ), Vector2( 685.397, 282.082 ) ] +} [node name="base" type="Node2D"] [node name="ambient" type="CanvasModulate" parent="."] -color = Color( 0.479177, 0.464761, 0.498946, 1 ) +color = Color( 0.27451, 0.27451, 0.27451, 1 ) [node name="bg" type="Sprite" parent="."] -transform/pos = Vector2( 401.251, 301.906 ) -transform/scale = Vector2( 6.39454, 4.82665 ) +position = Vector2( 401.251, 301.906 ) +scale = Vector2( 6.39454, 4.82665 ) texture = ExtResource( 1 ) [node name="casters" type="Node2D" parent="."] [node name="shadow_caster" type="Sprite" parent="casters"] -transform/pos = Vector2( 95.2909, 85.3186 ) +position = Vector2( 95.2909, 85.3186 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster"] @@ -67,7 +103,7 @@ light_mask = 1 [node name="shadow_caster1" type="Sprite" parent="casters"] -transform/pos = Vector2( 200.291, 313.319 ) +position = Vector2( 200.291, 313.319 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster1"] @@ -77,7 +113,7 @@ light_mask = 1 [node name="shadow_caster2" type="Sprite" parent="casters"] -transform/pos = Vector2( 76.2909, 405.319 ) +position = Vector2( 76.2909, 405.319 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster2"] @@ -87,7 +123,7 @@ light_mask = 1 [node name="shadow_caster3" type="Sprite" parent="casters"] -transform/pos = Vector2( 348.291, 206.319 ) +position = Vector2( 348.291, 206.319 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster3"] @@ -97,7 +133,7 @@ light_mask = 1 [node name="shadow_caster4" type="Sprite" parent="casters"] -transform/pos = Vector2( 239.291, 48.3186 ) +position = Vector2( 239.291, 48.3186 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster4"] @@ -107,7 +143,7 @@ light_mask = 1 [node name="shadow_caster5" type="Sprite" parent="casters"] -transform/pos = Vector2( 140.291, 561.319 ) +position = Vector2( 140.291, 561.319 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster5"] @@ -117,7 +153,7 @@ light_mask = 1 [node name="shadow_caster6" type="Sprite" parent="casters"] -transform/pos = Vector2( 392.291, 499.319 ) +position = Vector2( 392.291, 499.319 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster6"] @@ -127,7 +163,7 @@ light_mask = 1 [node name="shadow_caster7" type="Sprite" parent="casters"] -transform/pos = Vector2( 735.291, 552.319 ) +position = Vector2( 735.291, 552.319 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster7"] @@ -137,7 +173,7 @@ light_mask = 1 [node name="shadow_caster8" type="Sprite" parent="casters"] -transform/pos = Vector2( 661.291, 371.319 ) +position = Vector2( 661.291, 371.319 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster8"] @@ -147,7 +183,7 @@ light_mask = 1 [node name="shadow_caster9" type="Sprite" parent="casters"] -transform/pos = Vector2( 567.291, 574.319 ) +position = Vector2( 567.291, 574.319 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster9"] @@ -157,7 +193,7 @@ light_mask = 1 [node name="shadow_caster10" type="Sprite" parent="casters"] -transform/pos = Vector2( 420.291, 350.319 ) +position = Vector2( 420.291, 350.319 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster10"] @@ -167,7 +203,7 @@ light_mask = 1 [node name="shadow_caster11" type="Sprite" parent="casters"] -transform/pos = Vector2( 463.291, 106.319 ) +position = Vector2( 463.291, 106.319 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster11"] @@ -177,7 +213,7 @@ light_mask = 1 [node name="shadow_caster12" type="Sprite" parent="casters"] -transform/pos = Vector2( 621.291, 78.3186 ) +position = Vector2( 621.291, 78.3186 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster12"] @@ -187,7 +223,7 @@ light_mask = 1 [node name="shadow_caster13" type="Sprite" parent="casters"] -transform/pos = Vector2( 761.291, 240.319 ) +position = Vector2( 761.291, 240.319 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster13"] @@ -197,7 +233,7 @@ light_mask = 1 [node name="shadow_caster14" type="Sprite" parent="casters"] -transform/pos = Vector2( 771.291, 29.3186 ) +position = Vector2( 771.291, 29.3186 ) texture = ExtResource( 2 ) [node name="occluder" type="LightOccluder2D" parent="casters/shadow_caster14"] @@ -207,38 +243,41 @@ light_mask = 1 [node name="red_light" type="Light2D" parent="."] -transform/pos = Vector2( 159.289, 452.441 ) +position = Vector2( 159.289, 452.441 ) enabled = true +editor_only = false texture = ExtResource( 3 ) offset = Vector2( 0, 0 ) scale = 1.0 color = Color( 1, 0.446392, 0.0576646, 1 ) energy = 1.0 mode = 0 -range/height = 0.0 -range/z_min = -1024 -range/z_max = 1024 -range/layer_min = 0 -range/layer_max = 0 -range/item_mask = 1 -shadow/enabled = true -shadow/color = Color( 0, 0, 0, 0 ) -shadow/buffer_size = 2048 -shadow/esm_multiplier = 80.0 -shadow/item_mask = 1 +range_height = 0.0 +range_z_min = -1024 +range_z_max = 1024 +range_layer_min = 0 +range_layer_max = 0 +range_item_cull_mask = 1 +shadow_enabled = true +shadow_color = Color( 0, 0, 0, 0 ) +shadow_buffer_size = 2048 +shadow_gradient_length = 1.3 +shadow_filter = 3 +shadow_filter_smooth = 11.1 +shadow_item_cull_mask = 1 [node name="blob" type="Sprite" parent="red_light"] -visibility/blend_mode = 1 +material = SubResource( 2 ) texture = ExtResource( 4 ) [node name="anim" type="AnimationPlayer" parent="red_light"] -playback/process_mode = 1 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/motion = SubResource( 2 ) -anims/motion2 = SubResource( 3 ) +playback_process_mode = 1 +playback_default_blend_time = 0.0 +root_node = NodePath("..") +anims/motion = SubResource( 3 ) +anims/motion2 = SubResource( 4 ) playback/active = true playback/speed = 1.0 blend_times = [ ] @@ -246,38 +285,41 @@ autoplay = "motion" [node name="green_light" type="Light2D" parent="."] -transform/pos = Vector2( 753.756, 314.336 ) +position = Vector2( 753.756, 314.336 ) enabled = true +editor_only = false texture = ExtResource( 3 ) offset = Vector2( 0, 0 ) scale = 1.0 color = Color( 0.49247, 0.878537, 0.409146, 1 ) energy = 1.0 mode = 0 -range/height = 0.0 -range/z_min = -1024 -range/z_max = 1024 -range/layer_min = 0 -range/layer_max = 0 -range/item_mask = 1 -shadow/enabled = true -shadow/color = Color( 0, 0, 0, 0 ) -shadow/buffer_size = 2048 -shadow/esm_multiplier = 80.0 -shadow/item_mask = 1 +range_height = 0.0 +range_z_min = -1024 +range_z_max = 1024 +range_layer_min = 0 +range_layer_max = 0 +range_item_cull_mask = 1 +shadow_enabled = true +shadow_color = Color( 0, 0, 0, 0 ) +shadow_buffer_size = 2048 +shadow_gradient_length = 1.2 +shadow_filter = 3 +shadow_filter_smooth = 7.1 +shadow_item_cull_mask = 1 [node name="blob" type="Sprite" parent="green_light"] -visibility/blend_mode = 1 +material = SubResource( 5 ) texture = ExtResource( 4 ) [node name="anim" type="AnimationPlayer" parent="green_light"] -playback/process_mode = 1 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/m2 = SubResource( 3 ) -anims/motion = SubResource( 2 ) +playback_process_mode = 1 +playback_default_blend_time = 0.0 +root_node = NodePath("..") +anims/m2 = SubResource( 4 ) +anims/motion = SubResource( 3 ) playback/active = true playback/speed = 1.0 blend_times = [ ] @@ -285,39 +327,42 @@ autoplay = "m2" [node name="blue_light" type="Light2D" parent="."] -transform/pos = Vector2( 692.078, 29.8849 ) +position = Vector2( 692.078, 29.8849 ) enabled = true +editor_only = false texture = ExtResource( 3 ) offset = Vector2( 0, 0 ) scale = 1.0 color = Color( 0.396752, 0.446392, 0.929792, 1 ) energy = 1.0 mode = 0 -range/height = 0.0 -range/z_min = -1024 -range/z_max = 1024 -range/layer_min = 0 -range/layer_max = 0 -range/item_mask = 1 -shadow/enabled = true -shadow/color = Color( 0, 0, 0, 0 ) -shadow/buffer_size = 2048 -shadow/esm_multiplier = 80.0 -shadow/item_mask = 1 +range_height = 0.0 +range_z_min = -1024 +range_z_max = 1024 +range_layer_min = 0 +range_layer_max = 0 +range_item_cull_mask = 1 +shadow_enabled = true +shadow_color = Color( 0, 0, 0, 0 ) +shadow_buffer_size = 2048 +shadow_gradient_length = 1.4 +shadow_filter = 3 +shadow_filter_smooth = 5.3 +shadow_item_cull_mask = 1 [node name="blob" type="Sprite" parent="blue_light"] -visibility/blend_mode = 1 +material = SubResource( 6 ) texture = ExtResource( 4 ) [node name="anim" type="AnimationPlayer" parent="blue_light"] -playback/process_mode = 1 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/motion = SubResource( 2 ) -anims/motion2 = SubResource( 3 ) -anims/motion3 = SubResource( 4 ) +playback_process_mode = 1 +playback_default_blend_time = 0.0 +root_node = NodePath("..") +anims/motion = SubResource( 3 ) +anims/motion2 = SubResource( 4 ) +anims/motion3 = SubResource( 7 ) playback/active = true playback/speed = 1.0 blend_times = [ ] diff --git a/2d/lights_and_shadows/project.godot b/2d/lights_and_shadows/project.godot new file mode 100644 index 00000000..4f899341 --- /dev/null +++ b/2d/lights_and_shadows/project.godot @@ -0,0 +1,17 @@ +[application] + +icon = "res://icon.png" +main_scene = "res://light_shadows.tscn" +name = "2D Lighting" + +[display] + +stretch/aspect = "keep" +stretch/mode = "2d" +window/height = 600 +window/width = 800 + +[rasterizer] + +shadow_filter = 2 + diff --git a/old/2d/lights_shadows/spot.png b/2d/lights_and_shadows/spot.png similarity index 100% rename from old/2d/lights_shadows/spot.png rename to 2d/lights_and_shadows/spot.png diff --git a/2d/lights_and_shadows/spot.png.import b/2d/lights_and_shadows/spot.png.import new file mode 100644 index 00000000..a00e2ac9 --- /dev/null +++ b/2d/lights_and_shadows/spot.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/spot.png-36b4dfbff4efeea17ec3137d266ffc4a.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/navigation/.import/agent.png-22bdd448030a3457042db97db7630b4c.stex b/2d/navigation/.import/agent.png-22bdd448030a3457042db97db7630b4c.stex new file mode 100644 index 00000000..b1bfdfbd Binary files /dev/null and b/2d/navigation/.import/agent.png-22bdd448030a3457042db97db7630b4c.stex differ diff --git a/2d/navigation/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex b/2d/navigation/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex new file mode 100644 index 00000000..54dd6b5a Binary files /dev/null and b/2d/navigation/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex differ diff --git a/2d/navigation/.import/path.png-03249d8c3f5af613913d0eb997e480a3.stex b/2d/navigation/.import/path.png-03249d8c3f5af613913d0eb997e480a3.stex new file mode 100644 index 00000000..a59e671a Binary files /dev/null and b/2d/navigation/.import/path.png-03249d8c3f5af613913d0eb997e480a3.stex differ diff --git a/old/2d/navpoly/agent.png b/2d/navigation/agent.png similarity index 100% rename from old/2d/navpoly/agent.png rename to 2d/navigation/agent.png diff --git a/2d/navigation/agent.png.import b/2d/navigation/agent.png.import new file mode 100644 index 00000000..68dc3c68 --- /dev/null +++ b/2d/navigation/agent.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/agent.png-22bdd448030a3457042db97db7630b4c.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/navpoly/icon.png b/2d/navigation/icon.png similarity index 100% rename from old/2d/navpoly/icon.png rename to 2d/navigation/icon.png diff --git a/2d/navigation/icon.png.import b/2d/navigation/icon.png.import new file mode 100644 index 00000000..627820bd --- /dev/null +++ b/2d/navigation/icon.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/navpoly/navigation.gd b/2d/navigation/navigation.gd similarity index 79% rename from old/2d/navpoly/navigation.gd rename to 2d/navigation/navigation.gd index 4cfa2ad7..7c5bf06c 100644 --- a/old/2d/navpoly/navigation.gd +++ b/2d/navigation/navigation.gd @@ -24,7 +24,7 @@ func _process(delta): to_walk = 0 var atpos = path[path.size() - 1] - get_node("agent").set_pos(atpos) + get_node("agent").position=atpos if (path.size() < 2): path = [] @@ -42,12 +42,9 @@ func _update_path(): func _input(event): - if (event.type == InputEvent.MOUSE_BUTTON and event.pressed and event.button_index == 1): - begin = get_node("agent").get_pos() + if (event is InputEventMouseButton and event.pressed and event.button_index == 1): + begin = get_node("agent").position # Mouse to local navigation coordinates - end = event.pos - get_pos() + end = event.position - position _update_path() - -func _ready(): - set_process_input(true) diff --git a/2d/navigation/navigation.tscn b/2d/navigation/navigation.tscn new file mode 100644 index 00000000..effd1549 --- /dev/null +++ b/2d/navigation/navigation.tscn @@ -0,0 +1,34 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://navigation.gd" type="Script" id=1] +[ext_resource path="res://path.png" type="Texture" id=2] +[ext_resource path="res://agent.png" type="Texture" id=3] + +[sub_resource type="NavigationPolygon" id=1] + +vertices = PoolVector2Array( 587.833, 271.924, 530.464, 284.878, 508.256, 281.177, 497.153, 255.269, 669.26, 297.833, 648.903, 321.891, 650.754, 251.567, 619.293, 510.654, 676.663, 493.998, 706.272, 501.401, 669.26, 529.16, 602.638, 523.608, 587.833, 179.393, 573.028, 140.53, 645.202, 159.036, 710.106, 179.216, 630.397, 212.704, 597.086, 192.348, 648.903, 394.065, 621.144, 486.596, 618.011, 402.479, 624.926, 359.595, 605.437, 456.366, 598.937, 492.148, 471.244, 251.567, 421.277, 270.074, 428.68, 246.015, 502.704, 97.9661, 517.509, 55.4019, 537.866, 99.8167, 536.016, 175.692, 495.302, 164.588, 487.899, 85.0117, 310.24, 75.7586, 308.39, 92.4142, 345.402, 210.854, 360.207, 223.808, 297.286, 258.97, 288.033, 231.211, 319.493, 190.497, 193.651, 423.675, 245.469, 477.343, 221.41, 488.446, 147.386, 408.87, 182.548, 382.961, 145.584, 224.311, 175.145, 332.995, 202.904, 99.8167, 310.24, 62.8043, 695.169, 303.385, 682.214, 284.878, 524.608, 359.37, 526.762, 342.248, 538.077, 499.891, 571.177, 501.401, 395.879, 501.87, 536.407, 524.944, 371.311, 518.056, 573.028, 94.2648, 582.281, 47.9994, 667.409, 75.7586, 350.954, 447.733, 363.908, 351.501, 384.265, 351.501, 376.862, 418.123, 373.441, 436.494, 424.978, 334.845, 421.277, 360.754, 352.804, 320.04, 321.344, 338.546, 299.136, 283.028, 241.767, 327.443, 234.365, 244.165, 325.228, 486.302, 300.441, 497.494, 317.643, 447.733, 332.441, 457.494, 366.441, 467.494, 480.497, 434.779, 518.035, 461.477, 476.441, 468.494, 265.825, 407.019, 184.398, 349.65, 310.24, 112.771, 267.676, 153.485, 221.41, 171.991, 700.721, 268.223, 397.219, 188.646, 415.725, 177.543, 465.692, 179.393, 476.796, 207.152, 443.485, 192.348, 437.933, 170.14, 452.738, 166.439, 460.14, 123.875, 476.796, 149.783, 189.95, 231.211 ) +polygons = [ PoolIntArray( 0, 1, 2, 3 ), PoolIntArray( 4, 5, 6 ), PoolIntArray( 7, 8, 9, 10, 11 ), PoolIntArray( 12, 13, 14, 15, 16, 17 ), PoolIntArray( 18, 19, 20, 21 ), PoolIntArray( 22, 20, 19, 23 ), PoolIntArray( 24, 3, 2, 25, 26 ), PoolIntArray( 27, 28, 29, 30, 31 ), PoolIntArray( 28, 27, 32 ), PoolIntArray( 33, 28, 32, 34 ), PoolIntArray( 35, 36, 37, 38, 39 ), PoolIntArray( 40, 41, 42, 43 ), PoolIntArray( 44, 40, 43 ), PoolIntArray( 44, 43, 45, 46 ), PoolIntArray( 47, 48, 33, 34 ), PoolIntArray( 49, 9, 8, 4, 50 ), PoolIntArray( 50, 4, 6 ), PoolIntArray( 21, 20, 51, 52 ), PoolIntArray( 53, 22, 23, 54 ), PoolIntArray( 23, 7, 11, 54 ), PoolIntArray( 55, 53, 54, 56, 57 ), PoolIntArray( 14, 58, 59, 60, 15 ), PoolIntArray( 61, 62, 63, 64, 65 ), PoolIntArray( 66, 67, 63, 68 ), PoolIntArray( 68, 63, 62, 69, 70 ), PoolIntArray( 70, 69, 71, 72 ), PoolIntArray( 70, 72, 38, 37 ), PoolIntArray( 73, 55, 57, 74 ), PoolIntArray( 73, 74, 75, 76 ), PoolIntArray( 65, 77, 76, 61 ), PoolIntArray( 78, 2, 1, 52, 51 ), PoolIntArray( 78, 51, 79, 80 ), PoolIntArray( 78, 80, 65, 64 ), PoolIntArray( 81, 61, 76, 75 ), PoolIntArray( 81, 75, 44, 82 ), PoolIntArray( 47, 34, 83, 84, 85 ), PoolIntArray( 15, 86, 50, 6, 16 ), PoolIntArray( 12, 17, 3, 24 ), PoolIntArray( 26, 25, 87, 88 ), PoolIntArray( 89, 31, 30, 90, 91 ), PoolIntArray( 89, 91, 92, 93 ), PoolIntArray( 39, 94, 95, 93, 92 ), PoolIntArray( 39, 92, 88 ), PoolIntArray( 39, 88, 87, 35 ), PoolIntArray( 39, 38, 85, 84 ), PoolIntArray( 45, 47, 85, 96 ), PoolIntArray( 45, 96, 46 ), PoolIntArray( 44, 46, 82 ) ] +outlines = [ PoolVector2Array( 221.41, 488.446, 147.386, 408.87, 145.584, 224.311, 202.904, 99.8167, 310.24, 62.8043, 310.24, 75.7586, 517.509, 55.4019, 537.866, 99.8167, 536.016, 175.692, 476.796, 207.152, 443.485, 192.348, 437.933, 170.14, 415.725, 177.543, 428.68, 246.015, 471.244, 251.567, 587.833, 179.393, 573.028, 140.53, 645.202, 159.036, 573.028, 94.2648, 582.281, 47.9994, 667.409, 75.7586, 710.106, 179.216, 700.721, 268.223, 682.214, 284.878, 695.169, 303.385, 706.272, 501.401, 669.26, 529.16, 602.638, 523.608, 571.177, 501.401, 536.407, 524.944, 371.311, 518.056, 300.441, 497.494, 317.643, 447.733, 182.548, 382.961, 193.651, 423.675, 245.469, 477.343 ), PoolVector2Array( 350.954, 447.733, 363.908, 351.501, 321.344, 338.546, 241.767, 327.443, 234.365, 244.165, 288.033, 231.211, 221.41, 171.991, 189.95, 231.211, 175.145, 332.995, 184.398, 349.65, 265.825, 407.019 ), PoolVector2Array( 267.676, 153.485, 310.24, 112.771, 308.39, 92.4142, 487.899, 85.0117, 502.704, 97.9661, 495.302, 164.588, 465.692, 179.393, 452.738, 166.439, 476.796, 149.783, 460.14, 123.875, 319.493, 190.497 ), PoolVector2Array( 397.219, 188.646, 345.402, 210.854, 360.207, 223.808, 297.286, 258.97, 299.136, 283.028, 352.804, 320.04, 424.978, 334.845, 421.277, 360.754, 384.265, 351.501, 376.862, 418.123, 480.497, 434.779, 508.256, 281.177, 421.277, 270.074 ), PoolVector2Array( 497.153, 255.269, 597.086, 192.348, 630.397, 212.704, 650.754, 251.567, 648.903, 321.891, 669.26, 297.833, 676.663, 493.998, 619.293, 510.654, 598.937, 492.148, 621.144, 486.596, 648.903, 394.065, 624.926, 359.595, 526.762, 342.248, 530.464, 284.878, 587.833, 271.924 ), PoolVector2Array( 325.228, 486.302, 332.441, 457.494, 366.441, 467.494, 373.441, 436.494, 476.441, 468.494, 518.035, 461.477, 524.608, 359.37, 618.011, 402.479, 605.437, 456.366, 538.077, 499.891, 395.879, 501.87 ) ] + +[node name="navigation" type="Navigation2D"] + +script = ExtResource( 1 ) + +[node name="path" type="Sprite" parent="."] + +position = Vector2( 429.585, 287.32 ) +texture = ExtResource( 2 ) + +[node name="navpoly" type="NavigationPolygonInstance" parent="."] + +navpoly = SubResource( 1 ) +enabled = true + +[node name="agent" type="Sprite" parent="."] + +position = Vector2( 228.464, 132.594 ) +scale = Vector2( 0.5, 0.5 ) +texture = ExtResource( 3 ) +offset = Vector2( 0, -26 ) + + diff --git a/old/2d/navpoly/path.png b/2d/navigation/path.png similarity index 100% rename from old/2d/navpoly/path.png rename to 2d/navigation/path.png diff --git a/2d/navigation/path.png.import b/2d/navigation/path.png.import new file mode 100644 index 00000000..1e050221 --- /dev/null +++ b/2d/navigation/path.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/path.png-03249d8c3f5af613913d0eb997e480a3.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/navigation/project.godot b/2d/navigation/project.godot new file mode 100644 index 00000000..008eb038 --- /dev/null +++ b/2d/navigation/project.godot @@ -0,0 +1,13 @@ +[application] + +icon = "res://icon.png" +main_scene = "res://navigation.tscn" +name = "Navigation Polygon (2D)" + +[display] + +stretch/aspect = "keep" +stretch/mode = "2d" +window/height = 600 +window/width = 800 + diff --git a/2d/particles/.import/fire_particle.png-282b12927cd5b1f6d9c0bfb485d448ae.stex b/2d/particles/.import/fire_particle.png-282b12927cd5b1f6d9c0bfb485d448ae.stex new file mode 100644 index 00000000..41b6a0e6 Binary files /dev/null and b/2d/particles/.import/fire_particle.png-282b12927cd5b1f6d9c0bfb485d448ae.stex differ diff --git a/2d/particles/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex b/2d/particles/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex new file mode 100644 index 00000000..d7875dd7 Binary files /dev/null and b/2d/particles/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex differ diff --git a/2d/particles/.import/mask.png-b945516e6475612c1c4c3b4f8dd0bdc6.stex b/2d/particles/.import/mask.png-b945516e6475612c1c4c3b4f8dd0bdc6.stex new file mode 100644 index 00000000..da5f60bc Binary files /dev/null and b/2d/particles/.import/mask.png-b945516e6475612c1c4c3b4f8dd0bdc6.stex differ diff --git a/2d/particles/.import/smoke_particle.png-2af9cbaa4a935c239d404ea2402bff45.stex b/2d/particles/.import/smoke_particle.png-2af9cbaa4a935c239d404ea2402bff45.stex new file mode 100644 index 00000000..9c5a5493 Binary files /dev/null and b/2d/particles/.import/smoke_particle.png-2af9cbaa4a935c239d404ea2402bff45.stex differ diff --git a/2d/particles/.import/spark_particle2.png-c01711346d42a0d9675f292248ead315.stex b/2d/particles/.import/spark_particle2.png-c01711346d42a0d9675f292248ead315.stex new file mode 100644 index 00000000..84bf177f Binary files /dev/null and b/2d/particles/.import/spark_particle2.png-c01711346d42a0d9675f292248ead315.stex differ diff --git a/2d/particles/fire_particle.png b/2d/particles/fire_particle.png new file mode 100644 index 00000000..3fa85669 Binary files /dev/null and b/2d/particles/fire_particle.png differ diff --git a/2d/particles/fire_particle.png.import b/2d/particles/fire_particle.png.import new file mode 100644 index 00000000..0eed984e --- /dev/null +++ b/2d/particles/fire_particle.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/fire_particle.png-282b12927cd5b1f6d9c0bfb485d448ae.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/particles/icon.png b/2d/particles/icon.png new file mode 100644 index 00000000..714cee32 Binary files /dev/null and b/2d/particles/icon.png differ diff --git a/2d/particles/icon.png.import b/2d/particles/icon.png.import new file mode 100644 index 00000000..627820bd --- /dev/null +++ b/2d/particles/icon.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/particles/mask.png b/2d/particles/mask.png new file mode 100644 index 00000000..476f280a Binary files /dev/null and b/2d/particles/mask.png differ diff --git a/2d/particles/mask.png.import b/2d/particles/mask.png.import new file mode 100644 index 00000000..4fd8dd1b --- /dev/null +++ b/2d/particles/mask.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/mask.png-b945516e6475612c1c4c3b4f8dd0bdc6.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/particles/particles.tscn b/2d/particles/particles.tscn new file mode 100644 index 00000000..187687d4 --- /dev/null +++ b/2d/particles/particles.tscn @@ -0,0 +1,173 @@ +[gd_scene load_steps=10 format=2] + +[ext_resource path="res://fire_particle.png" type="Texture" id=1] +[ext_resource path="res://smoke_particle.png" type="Texture" id=2] +[ext_resource path="res://spark_particle2.png" type="Texture" id=3] + +[sub_resource type="Gradient" id=1] + +offsets = PoolFloatArray( 0, 0.1, 1 ) +colors = PoolColorArray( 1, 1, 1, 0, 0.886275, 0.371681, 0, 1, 1, 0.99115, 1, 0 ) + +[sub_resource type="Gradient" id=2] + +offsets = PoolFloatArray( 0, 0.2, 1 ) +colors = PoolColorArray( 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0 ) + +[sub_resource type="Gradient" id=3] + +offsets = PoolFloatArray( 0, 0.1, 0.5, 1 ) +colors = PoolColorArray( 1, 1, 1, 0.870518, 1, 0.47451, 0.6, 1, 0.529412, 0.74902, 1, 1, 0, 1, 0.698039, 0 ) + +[sub_resource type="Gradient" id=4] + +offsets = PoolFloatArray( 0, 0.1, 0.7, 1 ) +colors = PoolColorArray( 1, 1, 1, 0, 0.886275, 0.401015, 0, 1, 1, 0.679866, 0.432123, 0.12654, 0, 0, 0, 0 ) + +[node name="Node" type="Node"] + + +[node name="Fire" type="Node2D" parent="."] + +visibility/blend_mode = 1 +position = Vector2( 165.787, 527.801 ) +rotation_deg = 179.791 +config/amount = 32 +config/lifetime = 1.0 +config/half_extents = Vector2( 15, 15 ) +config/local_space = false +config/texture = ExtResource( 1 ) +params/direction = 0.0 +params/spread = 0.0 +params/linear_velocity = 20.0 +params/spin_velocity = 0.0 +params/orbit_velocity = 0.0 +params/gravity_direction = 180.0 +params/gravity_strength = 80.0 +params/radial_accel = 0.0 +params/tangential_accel = 0.0 +params/damping = 0.0 +params/initial_angle = 180.0 +params/initial_size = 0.7 +params/final_size = 0.3 +params/hue_variation = 0.0 +params/anim_speed_scale = 1.0 +params/anim_initial_pos = 0.0 +randomness/initial_angle = 2.0 +color/color_ramp = SubResource( 1 ) + +[node name="Smoke" type="Node2D" parent="."] + +position = Vector2( 377.396, 543.147 ) +rotation_deg = -176.576 +config/amount = 32 +config/lifetime = 4.0 +config/local_space = false +config/texture = ExtResource( 2 ) +params/direction = 0.0 +params/spread = 20.9073 +params/linear_velocity = 47.1515 +params/spin_velocity = 1.0 +params/orbit_velocity = 0.0 +params/gravity_direction = 0.0 +params/gravity_strength = 0.0 +params/radial_accel = 0.0 +params/tangential_accel = 0.0 +params/damping = 0.0 +params/initial_angle = 180.0 +params/initial_size = 1.0 +params/final_size = 3.0 +params/hue_variation = 0.0 +params/anim_speed_scale = 1.0 +params/anim_initial_pos = 0.0 +randomness/spin_velocity = 1.0 +randomness/initial_angle = 1.0 +color/color_ramp = SubResource( 2 ) + +[node name="Magic" type="Node2D" parent="."] + +position = Vector2( 593.848, 531.064 ) +config/amount = 32 +config/lifetime = 2.0 +config/half_extents = Vector2( 40, 40 ) +config/local_space = false +config/texture = ExtResource( 3 ) +params/direction = 0.0 +params/spread = 180.0 +params/linear_velocity = 20.0 +params/spin_velocity = 0.3 +params/orbit_velocity = 0.01 +params/gravity_direction = 0.0 +params/gravity_strength = 9.8 +params/radial_accel = 0.0 +params/tangential_accel = 15.5152 +params/damping = 0.0 +params/initial_angle = 45.0 +params/initial_size = 3.0 +params/final_size = 1.0 +params/hue_variation = 0.0 +params/anim_speed_scale = 1.0 +params/anim_initial_pos = 0.0 +randomness/spin_velocity = 1.0 +randomness/orbit_velocity = 100.0 +randomness/initial_angle = 1.0 +color/color_ramp = SubResource( 3 ) + +[node name="Explosion" type="Node2D" parent="."] + +show_behind_parent = true +visibility/blend_mode = 1 +position = Vector2( 613.467, 182.62 ) +rotation_deg = 179.791 +config/amount = 32 +config/lifetime = 2.0 +config/time_scale = 2.0 +config/half_extents = Vector2( 15, 15 ) +config/local_space = false +config/explosiveness = 0.05 +config/texture = ExtResource( 2 ) +params/direction = 0.0 +params/spread = 180.0 +params/linear_velocity = 184.547 +params/spin_velocity = 0.0 +params/orbit_velocity = 0.0 +params/gravity_direction = 180.0 +params/gravity_strength = 80.0 +params/radial_accel = 0.0 +params/tangential_accel = 0.0 +params/damping = 366.3 +params/initial_angle = 1.0 +params/initial_size = 0.7 +params/final_size = 3.0 +params/hue_variation = 0.0 +params/anim_speed_scale = 1.0 +params/anim_initial_pos = 0.0 +color/color_ramp = SubResource( 4 ) + +[node name="Mask" type="Node2D" parent="."] + +position = Vector2( 192.975, 141.598 ) +config/amount = 170 +config/lifetime = 0.1 +config/half_extents = Vector2( 128, 128 ) +config/local_space = false +config/texture = ExtResource( 3 ) +params/direction = 0.0 +params/spread = 180.0 +params/linear_velocity = 0.0 +params/spin_velocity = 2.0 +params/orbit_velocity = 0.0 +params/gravity_direction = 0.0 +params/gravity_strength = 0.0 +params/radial_accel = 0.0 +params/tangential_accel = 0.0 +params/damping = 0.0 +params/initial_angle = 1.0 +params/initial_size = 1.0 +params/final_size = 1.0 +params/hue_variation = 0.0 +params/anim_speed_scale = 1.0 +params/anim_initial_pos = 0.0 +randomness/spin_velocity = 1.0 +color/color = Color( 1, 0.477876, 0.60177, 1 ) +emission_points = PoolVector2Array( -0.125, -0.03125, 0.65625, -0.148438, 0.609375, 0.0234375, -0.757812, 0.375, 0.265625, 0.078125, 0.632812, 0.382812, 0.671875, 0.414062, 0.367188, -0.226562, 0.75, -0.125, 0.4375, 0.421875, 0.335938, -0.148438, -0.125, 0.257812, -0.171875, 0.359375, -0.601562, -0.265625, 0.375, 0.382812, -0.296875, 0.09375, -0.664062, -0.21875, -0.554688, -0.226562, -0.320312, 0.367188, -0.320312, -0.257812, 0, -0.257812, 0.578125, -0.25, -0.164062, 0.109375, -0.578125, -0.015625, -0.445312, 0, 0.273438, 0.101562, 0.320312, 0.03125, -0.125, 0.0703125, -0.570312, 0.289062, 0.257812, -0.09375, -0.585938, 0.179688, -0.664062, 0.0234375, -0.25, -0.0859375, 0.6875, -0.109375, 0.234375, 0, -0.5, -0.265625, 0.710938, 0.335938, 0.609375, -0.046875, 0.664062, -0.210938, -0.242188, -0.21875, -0.484375, -0.257812, -0.453125, 0.414062, 0.609375, -0.203125, 0.289062, 0.132812, -0.03125, -0.257812, -0.492188, -0.1875, 0.5625, -0.140625, -0.5625, 0.148438, -0.257812, -0.234375, -0.140625, 0.15625, -0.5625, 0.109375, 0.132812, 0.398438, -0.640625, -0.25, -0.585938, 0.304688, -0.328125, -0.257812, 0.226562, 0.148438, -0.546875, 0.210938, 0.625, 0.179688, 0.648438, -0.0078125, 0.367188, 0.328125, 0.265625, 0.0546875, -0.59375, -0.273438, -0.203125, 0.21875, 0.570312, -0.21875, -0.695312, 0.078125, -0.375, 0.03125, -0.164062, 0.0390625, 0.265625, 0.226562, -0.625, -0.109375, 0.203125, -0.132812, -0.671875, 0.328125, 0.625, -0.179688, -0.640625, 0.0859375, 0.65625, 0, -0.242188, 0.414062, 0.242188, 0.25, -0.148438, -0.0625, 0.390625, -0.25, 0.664062, 0.351562, 0.320312, 0.203125, -0.546875, 0.335938, 0.328125, -0.148438, 0.609375, -0.0625, -0.171875, 0.046875, -0.578125, 0.0546875, -0.304688, -0.28125, 0.734375, -0.0546875, 0.679688, 0.390625, -0.460938, 0.0859375, -0.703125, 0.101562, -0.140625, 0.234375, -0.507812, 0.078125, -0.25, 0.304688, -0.046875, 0.359375, 0.1875, 0.0703125, -0.570312, 0.242188, 0.65625, 0.0859375, -0.203125, -0.265625, -0.164062, -0.179688, 0.367188, -0.1875, -0.601562, -0.101562, -0.117188, -0.210938, -0.546875, 0.109375, -0.585938, -0.28125, -0.59375, -0.03125, 0.3125, -0.179688, 0.414062, 0.429688, -0.476562, -0.195312, -0.0703125, -0.21875, -0.5625, 0.304688, -0.609375, 0.226562, 0.429688, 0.429688, 0.203125, 0.242188, 0.078125, 0.367188, 0.242188, 0.03125, 0.601562, -0.0390625, 0.328125, 0.03125, -0.53125, -0.195312, -0.53125, -0.210938, 0.3125, -0.257812, 0.445312, -0.273438, 0.273438, -0.273438, -0.695312, -0.179688, 0.234375, -0.15625, -0.546875, -0.242188, -0.234375, -0.125, 0.734375, -0.226562, 0.367188, -0.234375, -0.15625, 0.046875, -0.445312, -0.226562, 0.625, 0.03125, -0.0859375, 0.210938, -0.648438, 0.296875, 0.335938, -0.109375, 0.625, -0.078125, 0.601562, 0.351562, 0.242188, 0.140625, 0.0234375, -0.273438, -0.679688, -0.109375, 0.640625, 0.15625, 0.171875, 0.0859375, -0.273438, -0.273438, -0.242188, 0.34375, 0.179688, 0.15625, -0.179688, -0.117188, 0.671875, 0.03125, -0.640625, 0.304688, 0.109375, -0.242188, -0.210938, 0.382812, -0.0859375, 0.0078125, -0.695312, 0.078125, 0.296875, 0.320312, 0.304688, -0.226562, 0.257812, -0.0234375, -0.203125, -0.015625, -0.648438, 0.335938, -0.703125, -0.132812, -0.273438, -0.210938, -0.15625, -0.273438, -0.0390625, 0.335938, 0.617188, 0.179688, 0.34375, 0.390625, -0.210938, -0.132812, -0.226562, -0.117188, 0.617188, -0.289062, 0.125, -0.21875, 0.71875, -0.164062, -0.570312, 0.1875, -0.1875, 0.382812, 0.640625, -0.296875, -0.125, 0.109375, 0.671875, 0.289062, -0.515625, 0.382812, 0.359375, -0.179688, 0.726562, -0.226562, 0.25, 0.320312, -0.328125, 0, -0.117188, -0.234375, -0.210938, -0.148438, -0.546875, -0.117188, 0.359375, 0.429688, -0.15625, -0.226562, 0.632812, -0.257812, -0.28125, -0.273438, 0.265625, 0.015625, -0.765625, 0.351562, 0.703125, 0.421875, -0.585938, 0.0078125, 0.28125, 0.109375, 0.304688, 0.171875, 0.65625, 0.421875, 0.078125, 0.382812, 0.179688, 0.25, -0.382812, 0.0703125, 0.585938, -0.140625, -0.109375, 0.382812, -0.59375, -0.09375, 0.4375, 0.398438, -0.132812, 0.0234375, -0.625, 0.0078125, -0.210938, -0.21875, -0.25, 0.257812, 0.257812, 0.398438, 0.625, 0.195312, 0.148438, -0.234375, -0.476562, 0.398438, -0.210938, 0.046875, 0.695312, -0.101562, 0.695312, 0.140625, -0.492188, -0.1875, 0.25, -0.09375, -0.195312, -0.195312, -0.328125, 0.0703125, -0.242188, -0.0625, 0.296875, 0.34375, -0.632812, 0.0078125, -0.265625, 0.09375, 0.421875, -0.203125, 0.171875, 0.03125, -0.09375, -0.0703125, 0.289062, 0.0859375, -0.609375, 0.390625, -0.554688, 0.257812, -0.6875, 0.0078125, 0.304688, 0.414062, 0.226562, 0.390625, -0.21875, -0.28125, 0.265625, 0.320312, -0.671875, 0.234375, -0.210938, 0.03125, 0.679688, -0.0234375, 0.359375, -0.203125, 0.3125, 0.289062, 0.671875, 0.140625, -0.78125, 0.414062, -0.546875, 0.40625, 0.625, 0.367188, 0.0859375, 0.421875, 0.1875, -0.09375, 0.617188, 0.40625, -0.078125, -0.0390625, 0.695312, 0.0859375, -0.6875, -0.265625, 0.421875, -0.265625, 0.601562, -0.0234375, -0.3125, -0.265625, -0.078125, 0.046875, 0.617188, 0.164062, 0.273438, -0.03125, -0.695312, -0.015625, -0.5625, 0.164062, -0.578125, 0.265625, -0.726562, 0.421875, -0.078125, -0.25, -0.171875, 0.171875, -0.234375, -0.0390625, 0.257812, 0.429688, -0.179688, -0.117188, 0.351562, -0.03125, -0.78125, -0.234375, -0.546875, -0.171875, -0.460938, -0.234375, -0.164062, 0.09375, -0.65625, 0.398438, -0.445312, 0.0859375, -0.71875, -0.226562, 0.671875, 0.101562, -0.46875, -0.195312, -0.71875, -0.265625, 0.617188, 0.125, -0.78125, -0.21875, -0.226562, -0.15625, 0.21875, 0.0234375, 0.289062, 0.101562, 0.648438, -0.171875, 0.390625, -0.273438, -0.257812, 0.078125, -0.21875, 0, 0.65625, -0.203125, -0.679688, 0.171875, -0.1875, 0.328125, -0.46875, -0.28125, 0.273438, 0, 0.664062, 0.296875, -0.140625, 0.335938, -0.625, 0.382812, -0.34375, -0.21875, -0.171875, -0.25, -0.546875, -0.117188, -0.117188, -0.203125, -0.1875, 0.351562, -0.585938, -0.109375, -0.203125, -0.0625, -0.570312, 0.03125, -0.5625, -0.109375, 0.601562, -0.195312, 0.3125, 0.140625, -0.101562, 0.25, 0.25, 0.3125, 0.125, -0.203125, -0.09375, -0.140625, -0.242188, 0.414062, 0.664062, -0.0625, -0.21875, -0.078125, 0.6875, -0.210938, -0.140625, 0.015625, -0.632812, -0.25, -0.109375, 0.234375, -0.695312, 0.015625, -0.3125, -0.28125, 0.296875, -0.0234375, 0.296875, 0.203125, -0.125, 0.234375, 0.570312, 0.390625, -0.554688, 0.203125, -0.5625, 0.351562, -0.15625, 0.21875, -0.375, 0.0390625, -0.226562, -0.140625, 0.695312, 0.164062, 0.632812, 0.367188, -0.328125, -0.210938, -0.59375, 0.34375, 0.304688, -0.242188, -0.34375, 0.0703125, -0.679688, -0.179688, 0.664062, 0.101562, 0.34375, 0.171875, -0.695312, -0.078125, -0.242188, -0.0546875, 0.304688, -0.234375, -0.0078125, -0.21875, -0.632812, 0.203125, 0.625, 0.03125, -0.414062, 0.015625, 0.273438, -0.078125, 0.695312, 0.28125, 0.34375, 0.101562, -0.164062, 0.289062, -0.1875, 0.273438, -0.203125, 0.0703125, 0.734375, -0.171875, -0.59375, 0.34375, -0.15625, 0.210938, 0.429688, 0.375, -0.234375, 0.34375, 0.617188, 0.101562, 0.703125, 0, -0.578125, 0.148438, 0.21875, -0.171875, -0.304688, 0.375, -0.65625, -0.09375, -0.101562, 0.25, -0.4375, 0.03125, -0.242188, 0.421875, -0.546875, 0.0625, -0.632812, -0.148438, -0.125, 0.179688, 0.179688, 0.304688, -0.265625, 0.078125, -0.289062, 0.421875, -0.585938, 0.1875, -0.289062, 0.34375, 0.273438, 0.367188, -0.109375, 0.117188, 0.34375, 0.046875, -0.0625, 0.320312, 0.6875, -0.234375, -0.523438, 0.320312, -0.09375, -0.242188, -0.65625, 0.25, -0.609375, -0.117188, -0.140625, 0.140625, 0.28125, -0.09375, -0.625, -0.28125, 0.34375, 0.328125, 0.265625, 0.109375, -0.609375, 0.0078125, -0.078125, -0.234375, -0.289062, -0.203125, 0.289062, 0.289062, -0.0859375, 0.0078125, -0.101562, -0.28125, -0.625, -0.101562, -0.546875, 0.382812, -0.539062, -0.195312, -0.210938, 0.046875, -0.492188, 0.390625, -0.664062, -0.0703125, 0.71875, -0.101562, -0.140625, -0.046875, 0.695312, 0.289062, -0.710938, 0.429688, -0.703125, 0.3125, -0.203125, 0.109375, 0.421875, -0.273438, 0.304688, 0.21875, 0.328125, 0.257812, -0.632812, -0.0703125, 0.320312, -0.140625, 0.265625, -0.203125, -0.109375, -0.179688, 0.25, -0.210938, 0.65625, 0.109375, -0.648438, -0.0625, -0.0859375, 0.375, -0.429688, 0.398438, 0.320312, 0.3125, -0.0703125, 0.265625, 0.648438, 0.0078125, 0.320312, 0.335938, 0.398438, 0.421875, -0.101562, -0.0625, -0.296875, 0.40625, 0.695312, -0.0390625, 0.335938, 0.21875, -0.546875, 0.117188, -0.476562, 0.390625, -0.648438, 0.117188, -0.078125, -0.28125, 0.328125, 0.289062, -0.226562, 0.179688, 0.226562, 0.375, -0.429688, 0.382812, -0.0546875, 0.34375, 0.59375, -0.125, 0.632812, 0.265625, 0.226562, 0.3125, -0.523438, -0.140625, -0.546875, 0.046875, 0.242188, -0.148438, -0.648438, 0.0234375, -0.289062, 0, -0.546875, 0.101562, -0.125, -0.0625, -0.492188, 0.367188, 0.328125, 0.15625, -0.351562, 0.0546875, -0.609375, 0.414062, -0.296875, 0.09375, 0.671875, -0.203125, -0.257812, -0.273438, -0.335938, 0.414062, 0.65625, -0.195312, -0.601562, -0.101562, -0.203125, -0.078125, 0.210938, 0.242188, 0.296875, 0.335938, -0.578125, 0.40625, -0.664062, -0.078125, -0.0859375, 0.390625, 0.171875, 0.304688, -0.6875, 0.390625, -0.554688, 0.0078125, -0.570312, -0.179688, -0.210938, -0.09375, 0.726562, -0.03125, -0.546875, -0.0859375, -0.265625, -0.171875, -0.65625, 0.179688, -0.171875, 0.257812, -0.164062, -0.171875, 0.203125, 0.335938, -0.640625, 0.21875, 0.390625, 0.375, 0.6875, -0.234375, 0.742188, 0.34375, -0.0546875, 0.351562, -0.632812, 0.195312, 0.671875, -0.21875, 0.195312, 0.015625, 0.226562, 0.117188, -0.507812, 0.078125, -0.140625, -0.15625, 0.703125, -0.28125, 0.226562, -0.140625, 0.328125, 0.421875, 0.3125, 0.1875, 0.703125, 0.078125, 0.351562, 0.289062, 0.21875, -0.242188, -0.328125, 0, 0.171875, 0.101562, -0.304688, -0.242188, -0.210938, 0.078125, 0.625, -0.0078125, 0.25, 0.242188, -0.664062, 0.117188, 0.203125, -0.140625, 0.226562, 0.429688, 0.328125, -0.203125, -0.679688, 0.0703125, -0.195312, -0.148438, -0.523438, 0.328125, 0.382812, -0.257812, 0.578125, -0.171875, 0.65625, 0.320312, -0.632812, -0.148438, 0.703125, 0.0703125, -0.53125, 0.398438, -0.414062, 0.03125, -0.0859375, 0.0546875, -0.53125, 0.335938, 0.304688, 0.429688, -0.234375, -0.148438, -0.375, 0.046875, -0.148438, 0.289062, -0.0390625, 0.421875, 0.226562, -0.125, -0.570312, 0.398438, -0.0703125, -0.0234375, 0.257812, -0.132812 ) diff --git a/2d/particles/project.godot b/2d/particles/project.godot new file mode 100644 index 00000000..66f22dc8 --- /dev/null +++ b/2d/particles/project.godot @@ -0,0 +1,6 @@ +[application] + +icon = "res://icon.png" +main_scene = "res://particles.tscn" +name = "Particle Systems" + diff --git a/2d/particles/smoke_particle.png b/2d/particles/smoke_particle.png new file mode 100644 index 00000000..3a03d14c Binary files /dev/null and b/2d/particles/smoke_particle.png differ diff --git a/2d/particles/smoke_particle.png.import b/2d/particles/smoke_particle.png.import new file mode 100644 index 00000000..d47f3d9b --- /dev/null +++ b/2d/particles/smoke_particle.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/smoke_particle.png-2af9cbaa4a935c239d404ea2402bff45.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/particles/spark_particle2.png b/2d/particles/spark_particle2.png new file mode 100644 index 00000000..2dd071a2 Binary files /dev/null and b/2d/particles/spark_particle2.png differ diff --git a/2d/particles/spark_particle2.png.import b/2d/particles/spark_particle2.png.import new file mode 100644 index 00000000..13379fd0 --- /dev/null +++ b/2d/particles/spark_particle2.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/spark_particle2.png-c01711346d42a0d9675f292248ead315.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/physics_platformer/.import/bullet.png-ff1424653e10246c11e3724e402c519e.stex b/2d/physics_platformer/.import/bullet.png-ff1424653e10246c11e3724e402c519e.stex new file mode 100644 index 00000000..80ad9eb9 Binary files /dev/null and b/2d/physics_platformer/.import/bullet.png-ff1424653e10246c11e3724e402c519e.stex differ diff --git a/2d/physics_platformer/.import/coin.png-7e710de472b75b3653c3283ef5153eb4.stex b/2d/physics_platformer/.import/coin.png-7e710de472b75b3653c3283ef5153eb4.stex new file mode 100644 index 00000000..a418a891 Binary files /dev/null and b/2d/physics_platformer/.import/coin.png-7e710de472b75b3653c3283ef5153eb4.stex differ diff --git a/2d/physics_platformer/.import/enemy.png-f7d9f81714867a24a08e299bb600e611.stex b/2d/physics_platformer/.import/enemy.png-f7d9f81714867a24a08e299bb600e611.stex new file mode 100644 index 00000000..7394db9a Binary files /dev/null and b/2d/physics_platformer/.import/enemy.png-f7d9f81714867a24a08e299bb600e611.stex differ diff --git a/2d/physics_platformer/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex b/2d/physics_platformer/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex new file mode 100644 index 00000000..c7d691ef Binary files /dev/null and b/2d/physics_platformer/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex differ diff --git a/2d/physics_platformer/.import/moving_platform.png-1ef2f9fd1684df90d6ad38a267c1201b.stex b/2d/physics_platformer/.import/moving_platform.png-1ef2f9fd1684df90d6ad38a267c1201b.stex new file mode 100644 index 00000000..240c11ca Binary files /dev/null and b/2d/physics_platformer/.import/moving_platform.png-1ef2f9fd1684df90d6ad38a267c1201b.stex differ diff --git a/2d/physics_platformer/.import/music.ogg-3bd46d3a4b41702b152014078d12a390.oggstr b/2d/physics_platformer/.import/music.ogg-3bd46d3a4b41702b152014078d12a390.oggstr new file mode 100644 index 00000000..8b67ac15 Binary files /dev/null and b/2d/physics_platformer/.import/music.ogg-3bd46d3a4b41702b152014078d12a390.oggstr differ diff --git a/2d/physics_platformer/.import/one_way_platform.png-af40161497fd0e8bfbc5d400c8bd650a.stex b/2d/physics_platformer/.import/one_way_platform.png-af40161497fd0e8bfbc5d400c8bd650a.stex new file mode 100644 index 00000000..778734a1 Binary files /dev/null and b/2d/physics_platformer/.import/one_way_platform.png-af40161497fd0e8bfbc5d400c8bd650a.stex differ diff --git a/2d/physics_platformer/.import/osb_fire.png-e657a73546eb75918e9d9a3fea15cf70.stex b/2d/physics_platformer/.import/osb_fire.png-e657a73546eb75918e9d9a3fea15cf70.stex new file mode 100644 index 00000000..ac0dcb73 Binary files /dev/null and b/2d/physics_platformer/.import/osb_fire.png-e657a73546eb75918e9d9a3fea15cf70.stex differ diff --git a/2d/physics_platformer/.import/osb_jump.png-dbbef3b47abbb562ce6c81a9701121c6.stex b/2d/physics_platformer/.import/osb_jump.png-dbbef3b47abbb562ce6c81a9701121c6.stex new file mode 100644 index 00000000..0c4df3e3 Binary files /dev/null and b/2d/physics_platformer/.import/osb_jump.png-dbbef3b47abbb562ce6c81a9701121c6.stex differ diff --git a/2d/physics_platformer/.import/osb_left.png-fc7230aeb0eec74933ed08f89b893288.stex b/2d/physics_platformer/.import/osb_left.png-fc7230aeb0eec74933ed08f89b893288.stex new file mode 100644 index 00000000..eaa74665 Binary files /dev/null and b/2d/physics_platformer/.import/osb_left.png-fc7230aeb0eec74933ed08f89b893288.stex differ diff --git a/2d/physics_platformer/.import/osb_right.png-5cf5add2dbc1c8dde17173ac56f3a004.stex b/2d/physics_platformer/.import/osb_right.png-5cf5add2dbc1c8dde17173ac56f3a004.stex new file mode 100644 index 00000000..a4825d79 Binary files /dev/null and b/2d/physics_platformer/.import/osb_right.png-5cf5add2dbc1c8dde17173ac56f3a004.stex differ diff --git a/2d/physics_platformer/.import/plank.png-1bbc55bc0ea546386ad520f861cb9ff9.stex b/2d/physics_platformer/.import/plank.png-1bbc55bc0ea546386ad520f861cb9ff9.stex new file mode 100644 index 00000000..fafeec67 Binary files /dev/null and b/2d/physics_platformer/.import/plank.png-1bbc55bc0ea546386ad520f861cb9ff9.stex differ diff --git a/2d/physics_platformer/.import/plankpin.png-5a03e8bdc3cbf81fc9d7a4c7873b7dc0.stex b/2d/physics_platformer/.import/plankpin.png-5a03e8bdc3cbf81fc9d7a4c7873b7dc0.stex new file mode 100644 index 00000000..9d43b95d Binary files /dev/null and b/2d/physics_platformer/.import/plankpin.png-5a03e8bdc3cbf81fc9d7a4c7873b7dc0.stex differ diff --git a/2d/physics_platformer/.import/robot_demo.png-8502817e0037b3f31eaca3dae49dcfc5.stex b/2d/physics_platformer/.import/robot_demo.png-8502817e0037b3f31eaca3dae49dcfc5.stex new file mode 100644 index 00000000..6b029f37 Binary files /dev/null and b/2d/physics_platformer/.import/robot_demo.png-8502817e0037b3f31eaca3dae49dcfc5.stex differ diff --git a/2d/physics_platformer/.import/scroll_bg_cloud_1.png-bad76c04aedb60c1b863fc1c1c6387ee.stex b/2d/physics_platformer/.import/scroll_bg_cloud_1.png-bad76c04aedb60c1b863fc1c1c6387ee.stex new file mode 100644 index 00000000..3b2a0eef Binary files /dev/null and b/2d/physics_platformer/.import/scroll_bg_cloud_1.png-bad76c04aedb60c1b863fc1c1c6387ee.stex differ diff --git a/2d/physics_platformer/.import/scroll_bg_cloud_2.png-cb251e8e91cb5450d56a9d0584943db0.stex b/2d/physics_platformer/.import/scroll_bg_cloud_2.png-cb251e8e91cb5450d56a9d0584943db0.stex new file mode 100644 index 00000000..b7f0334f Binary files /dev/null and b/2d/physics_platformer/.import/scroll_bg_cloud_2.png-cb251e8e91cb5450d56a9d0584943db0.stex differ diff --git a/2d/physics_platformer/.import/scroll_bg_cloud_3.png-6bbd67870db2f55a0c1b4685aa91e57c.stex b/2d/physics_platformer/.import/scroll_bg_cloud_3.png-6bbd67870db2f55a0c1b4685aa91e57c.stex new file mode 100644 index 00000000..0a169a99 Binary files /dev/null and b/2d/physics_platformer/.import/scroll_bg_cloud_3.png-6bbd67870db2f55a0c1b4685aa91e57c.stex differ diff --git a/2d/physics_platformer/.import/scroll_bg_fg_1.png-af0d9d2847aea6e03f54efcc2d9b6f06.stex b/2d/physics_platformer/.import/scroll_bg_fg_1.png-af0d9d2847aea6e03f54efcc2d9b6f06.stex new file mode 100644 index 00000000..10845c0e Binary files /dev/null and b/2d/physics_platformer/.import/scroll_bg_fg_1.png-af0d9d2847aea6e03f54efcc2d9b6f06.stex differ diff --git a/2d/physics_platformer/.import/scroll_bg_fg_2.png-2419a5b3b81617ba71d0ad50d23bf6f1.stex b/2d/physics_platformer/.import/scroll_bg_fg_2.png-2419a5b3b81617ba71d0ad50d23bf6f1.stex new file mode 100644 index 00000000..706b6f46 Binary files /dev/null and b/2d/physics_platformer/.import/scroll_bg_fg_2.png-2419a5b3b81617ba71d0ad50d23bf6f1.stex differ diff --git a/2d/physics_platformer/.import/scroll_bg_sky.png-df3e8b7d076f566a7bd83c6d4f9b57cf.stex b/2d/physics_platformer/.import/scroll_bg_sky.png-df3e8b7d076f566a7bd83c6d4f9b57cf.stex new file mode 100644 index 00000000..cc87d7f9 Binary files /dev/null and b/2d/physics_platformer/.import/scroll_bg_sky.png-df3e8b7d076f566a7bd83c6d4f9b57cf.stex differ diff --git a/2d/physics_platformer/.import/sound_coin.wav-b4defacd1a1eab95585c7b5095506878.sample b/2d/physics_platformer/.import/sound_coin.wav-b4defacd1a1eab95585c7b5095506878.sample new file mode 100644 index 00000000..4b4e9cd7 Binary files /dev/null and b/2d/physics_platformer/.import/sound_coin.wav-b4defacd1a1eab95585c7b5095506878.sample differ diff --git a/2d/physics_platformer/.import/sound_explode.wav-23e94be75a4346bffb517c7e07035977.sample b/2d/physics_platformer/.import/sound_explode.wav-23e94be75a4346bffb517c7e07035977.sample new file mode 100644 index 00000000..e36026bb Binary files /dev/null and b/2d/physics_platformer/.import/sound_explode.wav-23e94be75a4346bffb517c7e07035977.sample differ diff --git a/2d/physics_platformer/.import/sound_hit.wav-d8455980ada2d4a9a73508948d7317cc.sample b/2d/physics_platformer/.import/sound_hit.wav-d8455980ada2d4a9a73508948d7317cc.sample new file mode 100644 index 00000000..199130d1 Binary files /dev/null and b/2d/physics_platformer/.import/sound_hit.wav-d8455980ada2d4a9a73508948d7317cc.sample differ diff --git a/2d/physics_platformer/.import/sound_jump.wav-4966d1f327e26a176b56ab335c03b5e1.sample b/2d/physics_platformer/.import/sound_jump.wav-4966d1f327e26a176b56ab335c03b5e1.sample new file mode 100644 index 00000000..ee69d06b Binary files /dev/null and b/2d/physics_platformer/.import/sound_jump.wav-4966d1f327e26a176b56ab335c03b5e1.sample differ diff --git a/2d/physics_platformer/.import/sound_shoot.wav-f0f26619cba21d411b53ad23b8788116.sample b/2d/physics_platformer/.import/sound_shoot.wav-f0f26619cba21d411b53ad23b8788116.sample new file mode 100644 index 00000000..c8b27015 Binary files /dev/null and b/2d/physics_platformer/.import/sound_shoot.wav-f0f26619cba21d411b53ad23b8788116.sample differ diff --git a/2d/physics_platformer/.import/tiles_demo.png-7ca5c7c5c02ab8abe0d585a6a8f086bd.stex b/2d/physics_platformer/.import/tiles_demo.png-7ca5c7c5c02ab8abe0d585a6a8f086bd.stex new file mode 100644 index 00000000..f463a61f Binary files /dev/null and b/2d/physics_platformer/.import/tiles_demo.png-7ca5c7c5c02ab8abe0d585a6a8f086bd.stex differ diff --git a/old/2d/platformer_dcc/bullet.gd b/2d/physics_platformer/bullet.gd similarity index 100% rename from old/2d/platformer_dcc/bullet.gd rename to 2d/physics_platformer/bullet.gd diff --git a/old/2d/platformer_dcc/bullet.png b/2d/physics_platformer/bullet.png similarity index 100% rename from old/2d/platformer_dcc/bullet.png rename to 2d/physics_platformer/bullet.png diff --git a/2d/physics_platformer/bullet.png.import b/2d/physics_platformer/bullet.png.import new file mode 100644 index 00000000..f7e5bdcf --- /dev/null +++ b/2d/physics_platformer/bullet.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/bullet.png-ff1424653e10246c11e3724e402c519e.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/physics_platformer/bullet.tscn b/2d/physics_platformer/bullet.tscn new file mode 100644 index 00000000..8ee281c4 --- /dev/null +++ b/2d/physics_platformer/bullet.tscn @@ -0,0 +1,93 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://bullet.gd" type="Script" id=1] +[ext_resource path="res://bullet.png" type="Texture" id=2] + +[sub_resource type="CircleShape2D" id=1] + +custom_solver_bias = 0.0 +radius = 10.0 + +[sub_resource type="Animation" id=2] + +length = 1.5 +loop = false +step = 0.0 +tracks/0/type = "method" +tracks/0/path = NodePath(".") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 1.31 ), +"transitions": PoolFloatArray( 1 ), +"values": [ { +"args": [ ], +"method": "queue_free" +} ] +} +tracks/1/type = "value" +tracks/1/path = NodePath("sprite:modulate") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/keys = { +"times": PoolFloatArray( 0, 1.03 ), +"transitions": PoolFloatArray( 1, 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ] +} + +[node name="bullet" type="RigidBody2D"] + +input_pickable = false +collision_layer = 1 +collision_mask = 1 +mode = 0 +mass = 1.0 +friction = 1.0 +bounce = 0.0 +gravity_scale = 1.0 +custom_integrator = false +continuous_cd = 2 +contacts_reported = 0 +contact_monitor = false +sleeping = false +can_sleep = true +linear_velocity = Vector2( 0, 0 ) +linear_damp = -1.0 +angular_velocity = 0.0 +angular_damp = -1.0 +script = ExtResource( 1 ) + +[node name="particles" type="Node2D" parent="."] + +[node name="sprite" type="Sprite" parent="."] + +texture = ExtResource( 2 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] + +shape = SubResource( 1 ) + +[node name="Timer" type="Timer" parent="."] + +process_mode = 1 +wait_time = 1.0 +one_shot = true +autostart = false + +[node name="anim" type="AnimationPlayer" parent="."] + +playback_process_mode = 1 +playback_default_blend_time = 0.0 +root_node = NodePath("..") +anims/shutdown = SubResource( 2 ) +playback/active = true +playback/speed = 1.0 +blend_times = [ ] +autoplay = "" + +[connection signal="timeout" from="Timer" to="." method="disable"] + + diff --git a/old/2d/platformer_dcc/coin.gd b/2d/physics_platformer/coin.gd similarity index 83% rename from old/2d/platformer_dcc/coin.gd rename to 2d/physics_platformer/coin.gd index 11187327..22ae5b86 100644 --- a/old/2d/platformer_dcc/coin.gd +++ b/2d/physics_platformer/coin.gd @@ -6,7 +6,7 @@ var taken = false func _on_body_enter( body ): - if (not taken and body extends preload("res://player.gd")): + if (not taken and body is preload("res://player.gd")): get_node("anim").play("taken") taken = true diff --git a/old/2d/platformer_dcc/coin.png b/2d/physics_platformer/coin.png similarity index 100% rename from old/2d/platformer_dcc/coin.png rename to 2d/physics_platformer/coin.png diff --git a/2d/physics_platformer/coin.png.import b/2d/physics_platformer/coin.png.import new file mode 100644 index 00000000..e65aaed2 --- /dev/null +++ b/2d/physics_platformer/coin.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/coin.png-7e710de472b75b3653c3283ef5153eb4.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/physics_platformer/coin.tscn b/2d/physics_platformer/coin.tscn new file mode 100644 index 00000000..26965998 --- /dev/null +++ b/2d/physics_platformer/coin.tscn @@ -0,0 +1,227 @@ +[gd_scene load_steps=12 format=2] + +[ext_resource path="res://coin.gd" type="Script" id=1] +[ext_resource path="res://coin.png" type="Texture" id=2] +[ext_resource path="res://sound_coin.wav" type="AudioStream" id=3] +[ext_resource path="res://bullet.png" type="Texture" id=4] + +[sub_resource type="Animation" id=1] + +resource_name = "spin" +length = 1.5 +loop = true +step = 0.25 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 0.25, 0.5, 0.75, 1, 1.25, 1.5 ), +"transitions": PoolFloatArray( 1, 1, 1, 1, 1, 1, 1 ), +"update": 1, +"values": [ 0, 1, 2, 3, 2, 1, 0 ] +} + +[sub_resource type="Animation" id=2] + +length = 8.0 +loop = false +step = 0.0 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0 ), +"transitions": PoolFloatArray( 1 ), +"update": 0, +"values": [ 0 ] +} +tracks/1/type = "value" +tracks/1/path = NodePath("particles:emitting") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/keys = { +"times": PoolFloatArray( 0 ), +"transitions": PoolFloatArray( 1 ), +"update": 1, +"values": [ true ] +} +tracks/2/type = "method" +tracks/2/path = NodePath(".") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/imported = false +tracks/2/keys = { +"times": PoolFloatArray( 2.7 ), +"transitions": PoolFloatArray( 1 ), +"values": [ { +"args": [ ], +"method": "queue_free" +} ] +} +tracks/3/type = "value" +tracks/3/path = NodePath("sound:playing") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/imported = false +tracks/3/keys = { +"times": PoolFloatArray( 0 ), +"transitions": PoolFloatArray( 1 ), +"update": 1, +"values": [ true ] +} +tracks/4/type = "value" +tracks/4/path = NodePath("sprite:self_modulate") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/imported = false +tracks/4/keys = { +"times": PoolFloatArray( 0, 0.41 ), +"transitions": PoolFloatArray( 1, 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ] +} + +[sub_resource type="CircleShape2D" id=3] + +custom_solver_bias = 0.0 +radius = 10.0 + +[sub_resource type="CanvasItemMaterial" id=4] + +blend_mode = 1 +light_mode = 0 + +[sub_resource type="Curve" id=5] + +bake_resolution = 100 +_data = [ Vector2( 0, 0.865234 ), 0.0, 0.0, Vector2( 1, 0 ), 0.0, 0.0 ] + +[sub_resource type="CurveTexture" id=6] + +min = 0.0 +max = 1.0 +width = 2048 +curve = SubResource( 5 ) + +[sub_resource type="ParticlesMaterial" id=7] + +trail_divisor = 1 +emission_shape = 1 +emission_sphere_radius = 20.0 +flag_align_y = false +flag_rotate_y = false +flag_disable_z = true +spread = 45.0 +flatness = 0.0 +gravity = Vector3( 0, 0, 0 ) +initial_velocity = 1.0 +initial_velocity_random = 0.0 +angular_velocity = 0.0 +angular_velocity_random = 0.0 +orbit_velocity = 0.0 +orbit_velocity_random = 0.0 +linear_accel = 0.0 +linear_accel_random = 0.0 +radial_accel = 0.0 +radial_accel_random = 0.0 +tangential_accel = 0.0 +tangential_accel_random = 0.0 +damping = 0.0 +damping_random = 0.0 +angle = 0.0 +angle_random = 0.0 +scale = 0.3 +scale_random = 0.0 +scale_curve = SubResource( 6 ) +color = Color( 1, 1, 1, 1 ) +hue_variation = 0.0 +hue_variation_random = 0.0 +anim_speed = 0.0 +anim_speed_random = 0.0 +anim_offset = 0.0 +anim_offset_random = 0.0 +anim_loop = false + +[node name="coin" type="Area2D"] + +input_pickable = true +gravity_vec = Vector2( 0, 1 ) +gravity = 98.0 +linear_damp = 0.1 +angular_damp = 1.0 +audio_bus_override = false +audio_bus_name = "Master" +script = ExtResource( 1 ) + +[node name="sprite" type="Sprite" parent="."] + +texture = ExtResource( 2 ) +hframes = 4 + +[node name="anim" type="AnimationPlayer" parent="."] + +playback_process_mode = 1 +playback_default_blend_time = 0.0 +root_node = NodePath("..") +anims/spin = SubResource( 1 ) +anims/taken = SubResource( 2 ) +playback/active = true +playback/speed = 3.0 +blend_times = [ ] +autoplay = "spin" + +[node name="collision" type="CollisionShape2D" parent="."] + +shape = SubResource( 3 ) + +[node name="sound" type="AudioStreamPlayer2D" parent="."] + +stream = ExtResource( 3 ) +volume_db = 0.0 +autoplay = false +max_distance = 2000.0 +attenuation = 1.0 +bus = "Master" +area_mask = 1 + +[node name="particles" type="Particles2D" parent="."] + +modulate = Color( 0.596863, 0.638745, 1, 1 ) +material = SubResource( 4 ) +emitting = false +amount = 8 +lifetime = 1.0 +one_shot = true +preprocess = 0.0 +speed_scale = 1.0 +explosiveness = 0.7 +randomness = 0.0 +visibility_rect = Rect2( -100, -100, 200, 200 ) +local_coords = true +fixed_fps = 0 +fract_delta = true +draw_order = 0 +process_material = SubResource( 7 ) +texture = ExtResource( 4 ) +normal_map = null +h_frames = 1 +v_frames = 1 + +[node name="enabler" type="VisibilityEnabler2D" parent="."] + +rect = Rect2( -10, -10, 20, 20 ) +pause_animations = true +freeze_bodies = true +pause_particles = false +pause_animated_sprites = true +process_parent = false +fixed_process_parent = false + +[connection signal="body_entered" from="." to="." method="_on_body_enter"] + + diff --git a/old/2d/platformer_dcc/enemy.gd b/2d/physics_platformer/enemy.gd similarity index 74% rename from old/2d/platformer_dcc/enemy.gd rename to 2d/physics_platformer/enemy.gd index 5a4d8af5..2fe7085f 100644 --- a/old/2d/platformer_dcc/enemy.gd +++ b/2d/physics_platformer/enemy.gd @@ -10,8 +10,9 @@ var state = STATE_WALKING var direction = -1 var anim = "" -var rc_left = null -var rc_right = null +onready var rc_left = get_node("raycast_left") +onready var rc_right = get_node("raycast_right") + var WALK_SPEED = 50 var bullet_class = preload("res://bullet.gd") @@ -22,10 +23,14 @@ func _die(): func _pre_explode(): + #make sure nothing collides against this + get_node("shape1").queue_free() + get_node("shape2").queue_free() + get_node("shape3").queue_free() + # Stay there - clear_shapes() set_mode(MODE_STATIC) - get_node("sound").play("explode") + get_node("sound_explode").play() func _integrate_forces(s): @@ -44,14 +49,14 @@ func _integrate_forces(s): var dp = s.get_contact_local_normal(i) if (cc): - if (cc extends bullet_class and not cc.disabled): + if (cc is 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") + get_node("sound_hit").play() break if (dp.x > 0.9): @@ -61,13 +66,13 @@ func _integrate_forces(s): if (wall_side != 0 and wall_side != direction): direction = -direction - get_node("sprite").set_scale(Vector2(-direction, 1)) + get_node("sprite").scale.x=-direction if (direction < 0 and not rc_left.is_colliding() and rc_right.is_colliding()): direction = -direction - get_node("sprite").set_scale(Vector2(-direction, 1)) + get_node("sprite").scale.x=-direction elif (direction > 0 and not rc_right.is_colliding() and rc_left.is_colliding()): direction = -direction - get_node("sprite").set_scale(Vector2(-direction, 1)) + get_node("sprite").scale.x=-direction lv.x = direction*WALK_SPEED @@ -78,6 +83,3 @@ func _integrate_forces(s): s.set_linear_velocity(lv) -func _ready(): - rc_left = get_node("raycast_left") - rc_right = get_node("raycast_right") diff --git a/old/2d/platformer_dcc/enemy.png b/2d/physics_platformer/enemy.png similarity index 100% rename from old/2d/platformer_dcc/enemy.png rename to 2d/physics_platformer/enemy.png diff --git a/2d/physics_platformer/enemy.png.import b/2d/physics_platformer/enemy.png.import new file mode 100644 index 00000000..b03b3af9 --- /dev/null +++ b/2d/physics_platformer/enemy.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/enemy.png-f7d9f81714867a24a08e299bb600e611.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/physics_platformer/enemy.tscn b/2d/physics_platformer/enemy.tscn new file mode 100644 index 00000000..83e758dd --- /dev/null +++ b/2d/physics_platformer/enemy.tscn @@ -0,0 +1,281 @@ +[gd_scene load_steps=13 format=2] + +[ext_resource path="res://enemy.gd" type="Script" id=1] +[ext_resource path="res://enemy.png" type="Texture" id=2] +[ext_resource path="res://bullet.png" type="Texture" id=3] +[ext_resource path="res://sound_hit.wav" type="AudioStream" id=4] +[ext_resource path="res://sound_explode.wav" type="AudioStream" id=5] + +[sub_resource type="Animation" id=1] + +resource_name = "explode" +length = 6.0 +loop = false +step = 0.0 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0 ), +"transitions": PoolFloatArray( 1 ), +"update": 0, +"values": [ 4 ] +} +tracks/1/type = "value" +tracks/1/path = NodePath("Particles2D:emitting") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/keys = { +"times": PoolFloatArray( 3.47394 ), +"transitions": PoolFloatArray( 1 ), +"update": 1, +"values": [ true ] +} +tracks/2/type = "method" +tracks/2/path = NodePath(".") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/imported = false +tracks/2/keys = { +"times": PoolFloatArray( 3.20357, 5.07305 ), +"transitions": PoolFloatArray( 1, 1 ), +"values": [ { +"args": [ ], +"method": "_pre_explode" +}, { +"args": [ ], +"method": "_die" +} ] +} +tracks/3/type = "value" +tracks/3/path = NodePath("sprite:self_modulate") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/imported = false +tracks/3/keys = { +"times": PoolFloatArray( 3.55, 4.32 ), +"transitions": PoolFloatArray( 1, 1 ), +"update": 0, +"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ] +} + +[sub_resource type="Animation" id=2] + +length = 6.75 +loop = true +step = 0.25 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 0.75, 1.5, 2.25, 3, 3.75, 4.5, 5.25, 6, 6.75 ), +"transitions": PoolFloatArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ), +"update": 1, +"values": [ 5, 6, 5, 6, 5, 6, 7, 6, 7, 5 ] +} + +[sub_resource type="Animation" id=3] + +resource_name = "walk" +length = 1.25 +loop = true +step = 0.25 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 0.25, 0.5, 0.75, 1, 1.25 ), +"transitions": PoolFloatArray( 1, 1, 1, 1, 1, 1 ), +"update": 1, +"values": [ 0, 1, 2, 3, 4, 0 ] +} + +[sub_resource type="CircleShape2D" id=4] + +custom_solver_bias = 0.0 +radius = 14.0 + +[sub_resource type="Gradient" id=6] + +offsets = PoolFloatArray( 0, 0.564972, 1 ) +colors = PoolColorArray( 1, 1, 1, 1, 1, 1, 1, 0.915254, 1, 1, 1, 0 ) + +[sub_resource type="GradientTexture" id=7] + +gradient = SubResource( 6 ) +width = 2048 + +[sub_resource type="ParticlesMaterial" id=8] + +trail_divisor = 1 +emission_shape = 1 +emission_sphere_radius = 20.0 +flag_align_y = false +flag_rotate_y = false +flag_disable_z = true +spread = 180.0 +flatness = 0.0 +gravity = Vector3( 0, 98, 0 ) +initial_velocity = 322.73 +initial_velocity_random = 0.0 +angular_velocity = 0.0 +angular_velocity_random = 0.0 +orbit_velocity = 0.0 +orbit_velocity_random = 0.0 +linear_accel = 0.0 +linear_accel_random = 0.0 +radial_accel = 0.0 +radial_accel_random = 0.0 +tangential_accel = 0.0 +tangential_accel_random = 0.0 +damping = 0.0 +damping_random = 0.0 +angle = 0.0 +angle_random = 0.0 +scale = 2.4 +scale_random = 0.0 +color_ramp = SubResource( 7 ) +hue_variation = 0.0 +hue_variation_random = 0.0 +anim_speed = 0.0 +anim_speed_random = 0.0 +anim_offset = 0.0 +anim_offset_random = 0.0 +anim_loop = false + +[node name="enemy" type="RigidBody2D"] + +input_pickable = false +collision_layer = 1 +collision_mask = 1 +mode = 2 +mass = 1.0 +friction = 0.0 +bounce = 0.0 +gravity_scale = 1.0 +custom_integrator = false +continuous_cd = 0 +contacts_reported = 4 +contact_monitor = false +sleeping = false +can_sleep = true +linear_velocity = Vector2( 0, 0 ) +linear_damp = -1.0 +angular_velocity = 0.0 +angular_damp = -1.0 +script = ExtResource( 1 ) + +[node name="enabler" type="VisibilityEnabler2D" parent="."] + +position = Vector2( 16.2569, 11.0034 ) +scale = Vector2( 23.5056, 10.8629 ) +rect = Rect2( -10, -10, 20, 20 ) +pause_animations = true +freeze_bodies = true +pause_particles = false +pause_animated_sprites = true +process_parent = false +fixed_process_parent = false + +[node name="anim" type="AnimationPlayer" parent="."] + +playback_process_mode = 1 +playback_default_blend_time = 0.0 +root_node = NodePath("..") +anims/explode = SubResource( 1 ) +anims/idle = SubResource( 2 ) +anims/walk = SubResource( 3 ) +playback/active = true +playback/speed = 3.0 +blend_times = [ ] +autoplay = "" + +[node name="sprite" type="Sprite" parent="."] + +texture = ExtResource( 2 ) +hframes = 8 +frame = 4 + +[node name="shape1" type="CollisionShape2D" parent="."] + +position = Vector2( -1.08072, -2.16144 ) +shape = SubResource( 4 ) + +[node name="shape2" type="CollisionShape2D" parent="."] + +position = Vector2( 6.48431, 3.24216 ) +shape = SubResource( 4 ) + +[node name="shape3" type="CollisionShape2D" parent="."] + +position = Vector2( -12.495, 3.53415 ) +shape = SubResource( 4 ) + +[node name="raycast_left" type="RayCast2D" parent="."] + +position = Vector2( -33.2868, -9.34363 ) +enabled = true +exclude_parent = true +cast_to = Vector2( 0, 45 ) +collision_layer = 1 +type_mask = 15 + +[node name="raycast_right" type="RayCast2D" parent="."] + +position = Vector2( 29.1987, -9.34363 ) +enabled = true +exclude_parent = true +cast_to = Vector2( 0, 45 ) +collision_layer = 1 +type_mask = 15 + +[node name="Particles2D" type="Particles2D" parent="."] + +modulate = Color( 1, 1, 1, 0.685843 ) +emitting = false +amount = 8 +lifetime = 0.5 +one_shot = true +preprocess = 0.0 +speed_scale = 1.0 +explosiveness = 0.86 +randomness = 0.0 +visibility_rect = Rect2( -100, -100, 200, 200 ) +local_coords = true +fixed_fps = 0 +fract_delta = true +draw_order = 4 +process_material = SubResource( 8 ) +texture = ExtResource( 3 ) +normal_map = null +h_frames = 1 +v_frames = 1 + +[node name="sound_hit" type="AudioStreamPlayer2D" parent="."] + +stream = ExtResource( 4 ) +volume_db = 0.0 +autoplay = false +max_distance = 2000.0 +attenuation = 1.0 +bus = "Master" +area_mask = 1 + +[node name="sound_explode" type="AudioStreamPlayer2D" parent="."] + +stream = ExtResource( 5 ) +volume_db = 0.0 +autoplay = false +max_distance = 2000.0 +attenuation = 1.0 +bus = "Master" +area_mask = 1 + + diff --git a/old/2d/platformer_dcc/icon.png b/2d/physics_platformer/icon.png similarity index 100% rename from old/2d/platformer_dcc/icon.png rename to 2d/physics_platformer/icon.png diff --git a/2d/physics_platformer/icon.png.import b/2d/physics_platformer/icon.png.import new file mode 100644 index 00000000..627820bd --- /dev/null +++ b/2d/physics_platformer/icon.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/moving_platform.gd b/2d/physics_platformer/moving_platform.gd similarity index 82% rename from old/2d/platformer_dcc/moving_platform.gd rename to 2d/physics_platformer/moving_platform.gd index 21c312d5..949f0e48 100644 --- a/old/2d/platformer_dcc/moving_platform.gd +++ b/2d/physics_platformer/moving_platform.gd @@ -11,9 +11,9 @@ 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() + var xf = Transform2D() xf[2]= motion*d - get_node("platform").set_transform(xf) + get_node("platform").transform=xf func _ready(): diff --git a/old/2d/platformer_dcc/moving_platform.png b/2d/physics_platformer/moving_platform.png similarity index 100% rename from old/2d/platformer_dcc/moving_platform.png rename to 2d/physics_platformer/moving_platform.png diff --git a/2d/physics_platformer/moving_platform.png.import b/2d/physics_platformer/moving_platform.png.import new file mode 100644 index 00000000..f8a15bce --- /dev/null +++ b/2d/physics_platformer/moving_platform.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/moving_platform.png-1ef2f9fd1684df90d6ad38a267c1201b.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/moving_platform.tscn b/2d/physics_platformer/moving_platform.tscn similarity index 71% rename from old/2d/platformer_dcc/moving_platform.tscn rename to 2d/physics_platformer/moving_platform.tscn index c6269d6e..b68dea80 100644 --- a/old/2d/platformer_dcc/moving_platform.tscn +++ b/2d/physics_platformer/moving_platform.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=4 format=1] +[gd_scene load_steps=5 format=2] [ext_resource path="res://moving_platform.gd" type="Script" id=1] [ext_resource path="res://moving_platform.png" type="Texture" id=2] @@ -6,22 +6,22 @@ [sub_resource type="ConvexPolygonShape2D" id=1] custom_solver_bias = 0.0 -points = Vector2Array( -88, 24, -88, -24, 88, -24, 88, 24 ) +points = PoolVector2Array( -88, 24, -88, -24, 88, -24, 88, 24 ) [node name="moving_platform" type="Node2D"] -script/script = ExtResource( 1 ) +script = ExtResource( 1 ) motion = Vector2( 0, 0 ) cycle = 1.0 [node name="platform" type="RigidBody2D" parent="."] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 mode = 3 mass = 1.0 friction = 1.0 @@ -33,8 +33,8 @@ contacts_reported = 0 contact_monitor = false sleeping = false can_sleep = true -velocity/linear = Vector2( 0, 0 ) -velocity/angular = 0.0 +linear_velocity = Vector2( 0, 0 ) +angular_velocity = 0.0 damp_override/linear = -1.0 damp_override/angular = -1.0 @@ -45,8 +45,6 @@ texture = ExtResource( 2 ) [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="platform"] build_mode = 0 -polygon = Vector2Array( -88, -24, 88, -24, 88, 24, -88, 24 ) +polygon = PoolVector2Array( -88, -24, 88, -24, 88, 24, -88, 24 ) shape_range = Vector2( -1, -1 ) trigger = false - - diff --git a/old/2d/platformer_dcc/music.ogg b/2d/physics_platformer/music.ogg similarity index 100% rename from old/2d/platformer_dcc/music.ogg rename to 2d/physics_platformer/music.ogg diff --git a/2d/physics_platformer/music.ogg.import b/2d/physics_platformer/music.ogg.import new file mode 100644 index 00000000..3695c7e2 --- /dev/null +++ b/2d/physics_platformer/music.ogg.import @@ -0,0 +1,9 @@ +[remap] + +importer="ogg_vorbis" +type="AudioStreamOGGVorbis" +path="res://.import/music.ogg-3bd46d3a4b41702b152014078d12a390.oggstr" + +[params] + +loop=true diff --git a/old/2d/platformer_dcc/one_way_platform.png b/2d/physics_platformer/one_way_platform.png similarity index 100% rename from old/2d/platformer_dcc/one_way_platform.png rename to 2d/physics_platformer/one_way_platform.png diff --git a/2d/physics_platformer/one_way_platform.png.import b/2d/physics_platformer/one_way_platform.png.import new file mode 100644 index 00000000..d845b9bf --- /dev/null +++ b/2d/physics_platformer/one_way_platform.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/one_way_platform.png-af40161497fd0e8bfbc5d400c8bd650a.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/one_way_platform.tscn b/2d/physics_platformer/one_way_platform.tscn similarity index 56% rename from old/2d/platformer_dcc/one_way_platform.tscn rename to 2d/physics_platformer/one_way_platform.tscn index 88c4b0d6..af66db05 100644 --- a/old/2d/platformer_dcc/one_way_platform.tscn +++ b/2d/physics_platformer/one_way_platform.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=3 format=1] +[gd_scene load_steps=3 format=2] [ext_resource path="res://one_way_platform.png" type="Texture" id=1] @@ -9,14 +9,9 @@ extents = Vector2( 100, 10 ) [node name="one_way_platform" type="StaticBody2D"] -input/pickable = false -shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 1.46304, -13.1672 ) -shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 -one_way_collision/direction = Vector2( 0, 1 ) -one_way_collision/max_depth = 20.0 +input_pickable = false +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -28,9 +23,8 @@ texture = ExtResource( 1 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] -transform/pos = Vector2( 1.46304, -13.1672 ) +position = Vector2( 1.46304, -13.1672 ) shape = SubResource( 1 ) -trigger = false -_update_shape_index = -1 +one_way_collision = true diff --git a/old/2d/platformer_dcc/osb_fire.png b/2d/physics_platformer/osb_fire.png similarity index 100% rename from old/2d/platformer_dcc/osb_fire.png rename to 2d/physics_platformer/osb_fire.png diff --git a/2d/physics_platformer/osb_fire.png.import b/2d/physics_platformer/osb_fire.png.import new file mode 100644 index 00000000..13fb7aa7 --- /dev/null +++ b/2d/physics_platformer/osb_fire.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/osb_fire.png-e657a73546eb75918e9d9a3fea15cf70.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/osb_jump.png b/2d/physics_platformer/osb_jump.png similarity index 100% rename from old/2d/platformer_dcc/osb_jump.png rename to 2d/physics_platformer/osb_jump.png diff --git a/2d/physics_platformer/osb_jump.png.import b/2d/physics_platformer/osb_jump.png.import new file mode 100644 index 00000000..7209cb23 --- /dev/null +++ b/2d/physics_platformer/osb_jump.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/osb_jump.png-dbbef3b47abbb562ce6c81a9701121c6.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/osb_left.png b/2d/physics_platformer/osb_left.png similarity index 100% rename from old/2d/platformer_dcc/osb_left.png rename to 2d/physics_platformer/osb_left.png diff --git a/2d/physics_platformer/osb_left.png.import b/2d/physics_platformer/osb_left.png.import new file mode 100644 index 00000000..d1c14226 --- /dev/null +++ b/2d/physics_platformer/osb_left.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/osb_left.png-fc7230aeb0eec74933ed08f89b893288.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/osb_right.png b/2d/physics_platformer/osb_right.png similarity index 100% rename from old/2d/platformer_dcc/osb_right.png rename to 2d/physics_platformer/osb_right.png diff --git a/2d/physics_platformer/osb_right.png.import b/2d/physics_platformer/osb_right.png.import new file mode 100644 index 00000000..1f0c9ae8 --- /dev/null +++ b/2d/physics_platformer/osb_right.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/osb_right.png-5cf5add2dbc1c8dde17173ac56f3a004.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/parallax_bg.tscn b/2d/physics_platformer/parallax_bg.tscn similarity index 67% rename from old/2d/platformer_dcc/parallax_bg.tscn rename to 2d/physics_platformer/parallax_bg.tscn index cf5815e2..cb41d2ac 100644 --- a/old/2d/platformer_dcc/parallax_bg.tscn +++ b/2d/physics_platformer/parallax_bg.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=1] +[gd_scene load_steps=14 format=2] [ext_resource path="res://scroll_bg_sky.png" type="Texture" id=1] [ext_resource path="res://scroll_bg_cloud_1.png" type="Texture" id=2] @@ -13,73 +13,73 @@ layer = -1 offset = Vector2( 0, 0 ) rotation = 0.0 scale = Vector2( 1, 1 ) -scroll/offset = Vector2( 0, 0 ) -scroll/base_offset = Vector2( 0, 0 ) -scroll/base_scale = Vector2( 0.7, 0 ) -scroll/limit_begin = Vector2( 0, 0 ) -scroll/limit_end = Vector2( 0, 0 ) -scroll/ignore_camera_zoom = false +scroll_offset = Vector2( 0, 0 ) +scroll_base_offset = Vector2( 0, 0 ) +scroll_base_scale = Vector2( 0.7, 0 ) +scroll_limit_begin = Vector2( 0, 0 ) +scroll_limit_end = Vector2( 0, 0 ) +scroll_ignore_camera_zoom = false [node name="sky" type="ParallaxLayer" parent="."] -motion/scale = Vector2( 1, 1 ) -motion/mirroring = Vector2( 800, 0 ) +motion_scale = Vector2( 1, 1 ) +motion_mirroring = Vector2( 800, 0 ) [node name="Sprite" type="Sprite" parent="sky"] -transform/scale = Vector2( 32, 0.94 ) +scale = Vector2( 32, 0.94 ) texture = ExtResource( 1 ) centered = false [node name="clouds" type="ParallaxLayer" parent="."] -motion/scale = Vector2( 0.1, 1 ) -motion/mirroring = Vector2( 800, 0 ) +motion_scale = Vector2( 0.1, 1 ) +motion_mirroring = Vector2( 800, 0 ) [node name="Sprite" type="Sprite" parent="clouds"] -transform/pos = Vector2( 28, 127 ) +position = Vector2( 28, 127 ) texture = ExtResource( 2 ) centered = false [node name="Sprite 2" type="Sprite" parent="clouds"] -transform/pos = Vector2( 404, 24 ) +position = Vector2( 404, 24 ) texture = ExtResource( 2 ) centered = false [node name="Sprite 3" type="Sprite" parent="clouds"] -transform/pos = Vector2( 154, 46 ) +position = Vector2( 154, 46 ) texture = ExtResource( 3 ) centered = false [node name="Sprite 4" type="Sprite" parent="clouds"] -transform/pos = Vector2( 525, 130 ) +position = Vector2( 525, 130 ) texture = ExtResource( 3 ) centered = false [node name="Sprite 5" type="Sprite" parent="clouds"] -transform/pos = Vector2( 255, 158 ) +position = Vector2( 255, 158 ) texture = ExtResource( 4 ) centered = false [node name="Sprite 6" type="Sprite" parent="clouds"] -transform/pos = Vector2( 674, 70 ) +position = Vector2( 674, 70 ) texture = ExtResource( 4 ) centered = false [node name="mount_ 2" type="ParallaxLayer" parent="."] -motion/scale = Vector2( 0.2, 1 ) -motion/mirroring = Vector2( 800, 0 ) +motion_scale = Vector2( 0.2, 1 ) +motion_mirroring = Vector2( 800, 0 ) [node name="Sprite" type="Sprite" parent="mount_ 2"] -transform/pos = Vector2( 0, 225 ) +position = Vector2( 0, 225 ) texture = ExtResource( 5 ) centered = false region = true @@ -87,15 +87,13 @@ region_rect = Rect2( 0, 0, 800, 256 ) [node name="mount_1" type="ParallaxLayer" parent="."] -motion/scale = Vector2( 0.4, 1 ) -motion/mirroring = Vector2( 800, 0 ) +motion_scale = Vector2( 0.4, 1 ) +motion_mirroring = Vector2( 800, 0 ) [node name="Sprite" type="Sprite" parent="mount_1"] -transform/pos = Vector2( 0, 225 ) +position = Vector2( 0, 225 ) texture = ExtResource( 6 ) centered = false region = true region_rect = Rect2( 0, 0, 800, 256 ) - - diff --git a/old/2d/platformer_dcc/plank.png b/2d/physics_platformer/plank.png similarity index 100% rename from old/2d/platformer_dcc/plank.png rename to 2d/physics_platformer/plank.png diff --git a/2d/physics_platformer/plank.png.import b/2d/physics_platformer/plank.png.import new file mode 100644 index 00000000..c3ed97ea --- /dev/null +++ b/2d/physics_platformer/plank.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/plank.png-1bbc55bc0ea546386ad520f861cb9ff9.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/plankpin.png b/2d/physics_platformer/plankpin.png similarity index 100% rename from old/2d/platformer_dcc/plankpin.png rename to 2d/physics_platformer/plankpin.png diff --git a/2d/physics_platformer/plankpin.png.import b/2d/physics_platformer/plankpin.png.import new file mode 100644 index 00000000..f3c63425 --- /dev/null +++ b/2d/physics_platformer/plankpin.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/plankpin.png-5a03e8bdc3cbf81fc9d7a4c7873b7dc0.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/player.gd b/2d/physics_platformer/player.gd similarity index 84% rename from old/2d/platformer_dcc/player.gd rename to 2d/physics_platformer/player.gd index 8cafd8b9..7fc0a8e8 100644 --- a/old/2d/platformer_dcc/player.gd +++ b/2d/physics_platformer/player.gd @@ -50,7 +50,7 @@ var MAX_SHOOT_POSE_TIME = 0.3 var bullet = preload("res://bullet.tscn") var floor_h_velocity = 0.0 -var enemy +onready var enemy = load("res://enemy.tscn") func _integrate_forces(s): @@ -69,9 +69,9 @@ func _integrate_forces(s): if spawn: var e = enemy.instance() - var p = get_pos() + var p = position p.y = p.y - 100 - e.set_pos(p) + e.position=p get_parent().add_child(e) # Deapply prev floor velocity @@ -98,15 +98,17 @@ func _integrate_forces(s): ss = -1.0 else: ss = 1.0 - var pos = get_pos() + get_node("bullet_shoot").get_pos()*Vector2(ss, 1.0) + var pos = position + get_node("bullet_shoot").position*Vector2(ss, 1.0) - bi.set_pos(pos) + bi.position=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 + bi.linear_velocity=Vector2(800.0*ss, -80) + + get_node("sprite/smoke").restart() + get_node("sound_shoot").play() + + add_collision_exception_with(bi) # Make bullet and this not collide else: shoot_time += step @@ -148,7 +150,7 @@ func _integrate_forces(s): lv.y = -JUMP_VELOCITY jumping = true stopping_jump = false - get_node("sound").play("jump") + get_node("sound_jump").play() # Check siding if (lv.x < 0 and move_left): @@ -196,9 +198,9 @@ func _integrate_forces(s): # Update siding if (new_siding_left != siding_left): if (new_siding_left): - get_node("sprite").set_scale(Vector2(-1, 1)) + get_node("sprite").scale.x=-1 else: - get_node("sprite").set_scale(Vector2(1, 1)) + get_node("sprite").scale.x=1 siding_left = new_siding_left @@ -219,14 +221,3 @@ func _integrate_forces(s): s.set_linear_velocity(lv) -func _ready(): - enemy = ResourceLoader.load("res://enemy.tscn") - -# 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/2d/physics_platformer/player.tscn b/2d/physics_platformer/player.tscn new file mode 100644 index 00000000..e10979bb --- /dev/null +++ b/2d/physics_platformer/player.tscn @@ -0,0 +1,425 @@ +[gd_scene load_steps=24 format=2] + +[ext_resource path="res://player.gd" type="Script" id=1] +[ext_resource path="res://robot_demo.png" type="Texture" id=2] +[ext_resource path="res://bullet.png" type="Texture" id=3] +[ext_resource path="res://osb_left.png" type="Texture" id=4] +[ext_resource path="res://osb_right.png" type="Texture" id=5] +[ext_resource path="res://osb_jump.png" type="Texture" id=6] +[ext_resource path="res://osb_fire.png" type="Texture" id=7] +[ext_resource path="res://sound_shoot.wav" type="AudioStream" id=8] +[ext_resource path="res://sound_jump.wav" type="AudioStream" id=9] + +[sub_resource type="Gradient" id=1] + +offsets = PoolFloatArray( 0, 1 ) +colors = PoolColorArray( 0.708353, 0.72498, 1, 1, 1, 1, 1, 0 ) + +[sub_resource type="GradientTexture" id=2] + +gradient = SubResource( 1 ) +width = 2048 + +[sub_resource type="ParticlesMaterial" id=3] + +trail_divisor = 1 +emission_shape = 0 +flag_align_y = false +flag_rotate_y = false +flag_disable_z = true +spread = 65.84 +flatness = 0.0 +gravity = Vector3( 0, -15, 0 ) +initial_velocity = 10.14 +initial_velocity_random = 0.0 +angular_velocity = 200.0 +angular_velocity_random = 1.0 +orbit_velocity = 0.0 +orbit_velocity_random = 0.0 +linear_accel = 100.0 +linear_accel_random = 0.0 +radial_accel = 0.0 +radial_accel_random = 0.0 +tangential_accel = 0.0 +tangential_accel_random = 0.0 +damping = 0.0 +damping_random = 0.0 +angle = 0.0 +angle_random = 0.0 +scale = 1.0 +scale_random = 0.0 +color_ramp = SubResource( 2 ) +hue_variation = 0.0 +hue_variation_random = 0.0 +anim_speed = 0.0 +anim_speed_random = 0.0 +anim_offset = 0.0 +anim_offset_random = 0.0 +anim_loop = false + +[sub_resource type="Animation" id=4] + +length = 0.01 +loop = true +step = 0.25 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0 ), +"transitions": PoolFloatArray( 1 ), +"update": 1, +"values": [ 22 ] +} + +[sub_resource type="Animation" id=5] + +length = 0.01 +loop = true +step = 0.25 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0 ), +"transitions": PoolFloatArray( 1 ), +"update": 1, +"values": [ 21 ] +} + +[sub_resource type="Animation" id=6] + +length = 0.5 +loop = true +step = 0.25 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0 ), +"transitions": PoolFloatArray( 1 ), +"update": 1, +"values": [ 26 ] +} + +[sub_resource type="Animation" id=7] + +length = 7.0 +loop = true +step = 0.25 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 1.25, 1.5, 2, 4.5, 4.75, 5, 5.25 ), +"transitions": PoolFloatArray( 1, 1, 1, 1, 1, 1, 1, 1 ), +"update": 1, +"values": [ 16, 17, 18, 16, 19, 20, 19, 16 ] +} + +[sub_resource type="Animation" id=8] + +length = 0.5 +loop = true +step = 0.25 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0 ), +"transitions": PoolFloatArray( 1 ), +"update": 1, +"values": [ 25 ] +} + +[sub_resource type="Animation" id=9] + +length = 0.5 +loop = true +step = 0.25 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 0.25, 0.5 ), +"transitions": PoolFloatArray( 1, 1, 1 ), +"update": 1, +"values": [ 23, 24, 23 ] +} + +[sub_resource type="Animation" id=10] + +length = 0.5 +loop = true +step = 0.25 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0 ), +"transitions": PoolFloatArray( 1 ), +"update": 1, +"values": [ 26 ] +} + +[sub_resource type="Animation" id=11] + +length = 1.25 +loop = true +step = 0.25 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 0.25, 0.5, 0.75, 1, 1.25 ), +"transitions": PoolFloatArray( 1, 1, 1, 1, 1, 1 ), +"update": 1, +"values": [ 0, 1, 2, 3, 4, 0 ] +} + +[sub_resource type="Animation" id=12] + +length = 1.25 +loop = true +step = 0.25 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 0.25, 0.5, 0.75, 1, 1.25 ), +"transitions": PoolFloatArray( 1, 1, 1, 1, 1, 1 ), +"update": 1, +"values": [ 5, 6, 7, 8, 9, 5 ] +} + +[sub_resource type="Animation" id=13] + +length = 1.25 +loop = true +step = 0.25 +tracks/0/type = "value" +tracks/0/path = NodePath("sprite:frame") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/imported = false +tracks/0/keys = { +"times": PoolFloatArray( 0, 0.25, 0.5, 0.75, 1, 1.25 ), +"transitions": PoolFloatArray( 1, 1, 1, 1, 1, 1 ), +"update": 1, +"values": [ 10, 11, 12, 13, 14, 5 ] +} + +[sub_resource type="RayShape2D" id=14] + +custom_solver_bias = 0.5 +length = 20.0 + +[node name="player" type="RigidBody2D"] + +input_pickable = false +collision_layer = 1 +collision_mask = 1 +mode = 2 +mass = 3.0 +friction = 0.0 +bounce = 0.0 +gravity_scale = 1.0 +custom_integrator = true +continuous_cd = 0 +contacts_reported = 3 +contact_monitor = false +sleeping = false +can_sleep = true +linear_velocity = Vector2( 0, 0 ) +linear_damp = -1.0 +angular_velocity = 0.0 +angular_damp = -1.0 +script = ExtResource( 1 ) + +[node name="sprite" type="Sprite" parent="."] + +texture = ExtResource( 2 ) +vframes = 2 +hframes = 16 + +[node name="smoke" type="Particles2D" parent="sprite"] + +self_modulate = Color( 1, 1, 1, 0.26702 ) +position = Vector2( 20.7312, 3.21187 ) +rotation = -1.45648 +emitting = true +amount = 8 +lifetime = 0.3 +one_shot = true +preprocess = 0.0 +speed_scale = 1.0 +explosiveness = 1.0 +randomness = 0.0 +visibility_rect = Rect2( -100, -100, 200, 200 ) +local_coords = false +fixed_fps = 0 +fract_delta = true +draw_order = 97 +process_material = SubResource( 3 ) +texture = ExtResource( 3 ) +normal_map = null +h_frames = 1 +v_frames = 1 + +[node name="anim" type="AnimationPlayer" parent="."] + +playback_process_mode = 1 +playback_default_blend_time = 0.0 +root_node = NodePath("..") +anims/crouch = SubResource( 4 ) +anims/falling = SubResource( 5 ) +anims/falling_weapon = SubResource( 6 ) +anims/idle = SubResource( 7 ) +anims/idle_weapon = SubResource( 8 ) +anims/jumping = SubResource( 9 ) +anims/jumping_weapon = SubResource( 10 ) +anims/run = SubResource( 11 ) +anims/run_weapon = SubResource( 12 ) +anims/standing_weapon_ready = SubResource( 13 ) +playback/active = true +playback/speed = 2.0 +blend_times = [ ] +autoplay = "" + +[node name="camera" type="Camera2D" parent="."] + +anchor_mode = 1 +rotating = false +current = true +zoom = Vector2( 1, 1 ) +limit_left = 0 +limit_top = 0 +limit_right = 10000000 +limit_bottom = 10000000 +limit_smoothed = false +drag_margin_h_enabled = true +drag_margin_v_enabled = true +smoothing_enabled = false +smoothing_speed = 5.0 +drag_margin_left = 0.2 +drag_margin_top = 0.2 +drag_margin_right = 0.2 +drag_margin_bottom = 0.2 + +[node name="bullet_shoot" type="Position2D" parent="."] + +position = Vector2( 31.2428, 4.08784 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] + +position = Vector2( 0.291992, -12.1587 ) +scale = Vector2( 1, 1.76469 ) +shape = SubResource( 14 ) + +[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."] + +build_mode = 0 +polygon = PoolVector2Array( -0.138023, 16.5036, -19.902, -24.8691, 19.3625, -24.6056 ) + +[node name="ui" type="CanvasLayer" parent="."] + +layer = 0 +offset = Vector2( 0, 0 ) +rotation = 0.0 +scale = Vector2( 1, 1 ) + +[node name="left" type="TouchScreenButton" parent="ui"] + +position = Vector2( 27.7593, 360.87 ) +scale = Vector2( 1.49157, 1.46265 ) +normal = ExtResource( 4 ) +pressed = null +bitmask = null +shape = null +shape_centered = true +shape_visible = true +passby_press = true +action = "move_left" +visibility_mode = 1 + +[node name="right" type="TouchScreenButton" parent="ui"] + +position = Vector2( 121.542, 361.415 ) +scale = Vector2( 1.49157, 1.46265 ) +normal = ExtResource( 5 ) +pressed = null +bitmask = null +shape = null +shape_centered = true +shape_visible = true +passby_press = true +action = "move_right" +visibility_mode = 1 + +[node name="jump" type="TouchScreenButton" parent="ui"] + +position = Vector2( 666.224, 359.02 ) +scale = Vector2( 1.49157, 1.46265 ) +normal = ExtResource( 6 ) +pressed = null +bitmask = null +shape = null +shape_centered = true +shape_visible = true +passby_press = false +action = "jump" +visibility_mode = 1 + +[node name="fire" type="TouchScreenButton" parent="ui"] + +position = Vector2( 668.073, 262.788 ) +scale = Vector2( 1.49157, 1.46265 ) +normal = ExtResource( 7 ) +pressed = null +bitmask = null +shape = null +shape_centered = true +shape_visible = true +passby_press = false +action = "shoot" +visibility_mode = 1 + +[node name="sound_shoot" type="AudioStreamPlayer2D" parent="."] + +stream = ExtResource( 8 ) +volume_db = 0.0 +autoplay = false +max_distance = 2000.0 +attenuation = 1.0 +bus = "Master" +area_mask = 1 + +[node name="sound_jump" type="AudioStreamPlayer2D" parent="."] + +stream = ExtResource( 9 ) +volume_db = 0.0 +autoplay = false +max_distance = 2000.0 +attenuation = 1.0 +bus = "Master" +area_mask = 1 + + diff --git a/2d/physics_platformer/project.godot b/2d/physics_platformer/project.godot new file mode 100644 index 00000000..b9f04c5d --- /dev/null +++ b/2d/physics_platformer/project.godot @@ -0,0 +1,43 @@ +[application] + +icon = "res://icon.png" +main_scene = "res://stage.tscn" +name = "Dynamic Character Control-Based Platformer" +name_es = "Plataformero" +target_fps = "60" + +[display] + +stretch/aspect = "keep_height" +stretch/mode = "2d" +window/height = 480 +window/width = 800 + +[image_loader] + +repeat = false + +[input] + +jump = [ InputEvent(KEY,16777232), InputEvent(JBUTTON,0) ] +move_left = [ InputEvent(KEY,16777231), InputEvent(JBUTTON,14) ] +move_right = [ InputEvent(KEY,16777233), InputEvent(JBUTTON,15) ] +shoot = [ InputEvent(KEY,32), InputEvent(JBUTTON,2) ] +spawn = [ InputEvent(KEY,16777244), InputEvent(JBUTTON,11) ] + +[physics] + +2d/default_gravity = 700 + +[rasterizer] + +use_pixel_snap = true + +[render] + +mipmap_policy = 1 + +[texture_import] + +filter = false + diff --git a/old/2d/platformer_dcc/robot_demo.png b/2d/physics_platformer/robot_demo.png similarity index 100% rename from old/2d/platformer_dcc/robot_demo.png rename to 2d/physics_platformer/robot_demo.png diff --git a/2d/physics_platformer/robot_demo.png.import b/2d/physics_platformer/robot_demo.png.import new file mode 100644 index 00000000..7ede098d --- /dev/null +++ b/2d/physics_platformer/robot_demo.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/robot_demo.png-8502817e0037b3f31eaca3dae49dcfc5.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/scroll_bg_cloud_1.png b/2d/physics_platformer/scroll_bg_cloud_1.png similarity index 100% rename from old/2d/platformer_dcc/scroll_bg_cloud_1.png rename to 2d/physics_platformer/scroll_bg_cloud_1.png diff --git a/2d/physics_platformer/scroll_bg_cloud_1.png.import b/2d/physics_platformer/scroll_bg_cloud_1.png.import new file mode 100644 index 00000000..19980f5a --- /dev/null +++ b/2d/physics_platformer/scroll_bg_cloud_1.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/scroll_bg_cloud_1.png-bad76c04aedb60c1b863fc1c1c6387ee.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/scroll_bg_cloud_2.png b/2d/physics_platformer/scroll_bg_cloud_2.png similarity index 100% rename from old/2d/platformer_dcc/scroll_bg_cloud_2.png rename to 2d/physics_platformer/scroll_bg_cloud_2.png diff --git a/2d/physics_platformer/scroll_bg_cloud_2.png.import b/2d/physics_platformer/scroll_bg_cloud_2.png.import new file mode 100644 index 00000000..704d0753 --- /dev/null +++ b/2d/physics_platformer/scroll_bg_cloud_2.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/scroll_bg_cloud_2.png-cb251e8e91cb5450d56a9d0584943db0.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/scroll_bg_cloud_3.png b/2d/physics_platformer/scroll_bg_cloud_3.png similarity index 100% rename from old/2d/platformer_dcc/scroll_bg_cloud_3.png rename to 2d/physics_platformer/scroll_bg_cloud_3.png diff --git a/2d/physics_platformer/scroll_bg_cloud_3.png.import b/2d/physics_platformer/scroll_bg_cloud_3.png.import new file mode 100644 index 00000000..c8ce61e7 --- /dev/null +++ b/2d/physics_platformer/scroll_bg_cloud_3.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/scroll_bg_cloud_3.png-6bbd67870db2f55a0c1b4685aa91e57c.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/scroll_bg_fg_1.png b/2d/physics_platformer/scroll_bg_fg_1.png similarity index 100% rename from old/2d/platformer_dcc/scroll_bg_fg_1.png rename to 2d/physics_platformer/scroll_bg_fg_1.png diff --git a/2d/physics_platformer/scroll_bg_fg_1.png.import b/2d/physics_platformer/scroll_bg_fg_1.png.import new file mode 100644 index 00000000..7c9a93dd --- /dev/null +++ b/2d/physics_platformer/scroll_bg_fg_1.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/scroll_bg_fg_1.png-af0d9d2847aea6e03f54efcc2d9b6f06.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/scroll_bg_fg_2.png b/2d/physics_platformer/scroll_bg_fg_2.png similarity index 100% rename from old/2d/platformer_dcc/scroll_bg_fg_2.png rename to 2d/physics_platformer/scroll_bg_fg_2.png diff --git a/2d/physics_platformer/scroll_bg_fg_2.png.import b/2d/physics_platformer/scroll_bg_fg_2.png.import new file mode 100644 index 00000000..ab8a7592 --- /dev/null +++ b/2d/physics_platformer/scroll_bg_fg_2.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/scroll_bg_fg_2.png-2419a5b3b81617ba71d0ad50d23bf6f1.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/scroll_bg_sky.png b/2d/physics_platformer/scroll_bg_sky.png similarity index 100% rename from old/2d/platformer_dcc/scroll_bg_sky.png rename to 2d/physics_platformer/scroll_bg_sky.png diff --git a/2d/physics_platformer/scroll_bg_sky.png.import b/2d/physics_platformer/scroll_bg_sky.png.import new file mode 100644 index 00000000..1b5544ee --- /dev/null +++ b/2d/physics_platformer/scroll_bg_sky.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/scroll_bg_sky.png-df3e8b7d076f566a7bd83c6d4f9b57cf.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/seesaw.tscn b/2d/physics_platformer/seesaw.tscn similarity index 77% rename from old/2d/platformer_dcc/seesaw.tscn rename to 2d/physics_platformer/seesaw.tscn index 9af07dc0..c28963b8 100644 --- a/old/2d/platformer_dcc/seesaw.tscn +++ b/2d/physics_platformer/seesaw.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=4 format=1] +[gd_scene load_steps=7 format=2] [ext_resource path="res://plank.png" type="Texture" id=1] [ext_resource path="res://plankpin.png" type="Texture" id=2] @@ -10,14 +10,15 @@ extents = Vector2( 128, 8 ) [node name="seesaw" type="Node2D"] + [node name="plank" type="RigidBody2D" parent="."] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 mode = 0 mass = 5.10204 friction = 1.0 @@ -29,8 +30,8 @@ contacts_reported = 0 contact_monitor = false sleeping = false can_sleep = true -velocity/linear = Vector2( 0, 0 ) -velocity/angular = 0.0 +linear_velocity = Vector2( 0, 0 ) +angular_velocity = 0.0 damp_override/linear = -1.0 damp_override/angular = -1.0 @@ -48,13 +49,11 @@ _update_shape_index = -1 node_a = NodePath("../plank") node_b = NodePath("") -bias/bias = 0.0 -collision/exclude_nodes = true +bias = 0.0 +disable_collision = true softness = 0.0 [node name="Sprite" type="Sprite" parent="."] -transform/pos = Vector2( -0.290825, 20.2425 ) +position = Vector2( -0.290825, 20.2425 ) texture = ExtResource( 2 ) - - diff --git a/old/2d/platformer_dcc/sound_coin.wav b/2d/physics_platformer/sound_coin.wav similarity index 100% rename from old/2d/platformer_dcc/sound_coin.wav rename to 2d/physics_platformer/sound_coin.wav diff --git a/2d/physics_platformer/sound_coin.wav.import b/2d/physics_platformer/sound_coin.wav.import new file mode 100644 index 00000000..519f6477 --- /dev/null +++ b/2d/physics_platformer/sound_coin.wav.import @@ -0,0 +1,16 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/sound_coin.wav-b4defacd1a1eab95585c7b5095506878.sample" + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=true +edit/normalize=true +edit/loop=false +compress/mode=0 diff --git a/old/2d/platformer_dcc/sound_explode.wav b/2d/physics_platformer/sound_explode.wav similarity index 100% rename from old/2d/platformer_dcc/sound_explode.wav rename to 2d/physics_platformer/sound_explode.wav diff --git a/2d/physics_platformer/sound_explode.wav.import b/2d/physics_platformer/sound_explode.wav.import new file mode 100644 index 00000000..ebb5011d --- /dev/null +++ b/2d/physics_platformer/sound_explode.wav.import @@ -0,0 +1,16 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/sound_explode.wav-23e94be75a4346bffb517c7e07035977.sample" + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=true +edit/normalize=true +edit/loop=false +compress/mode=0 diff --git a/old/2d/platformer_dcc/sound_hit.wav b/2d/physics_platformer/sound_hit.wav similarity index 100% rename from old/2d/platformer_dcc/sound_hit.wav rename to 2d/physics_platformer/sound_hit.wav diff --git a/2d/physics_platformer/sound_hit.wav.import b/2d/physics_platformer/sound_hit.wav.import new file mode 100644 index 00000000..b0c43155 --- /dev/null +++ b/2d/physics_platformer/sound_hit.wav.import @@ -0,0 +1,16 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/sound_hit.wav-d8455980ada2d4a9a73508948d7317cc.sample" + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=true +edit/normalize=true +edit/loop=false +compress/mode=0 diff --git a/old/2d/platformer_dcc/sound_jump.wav b/2d/physics_platformer/sound_jump.wav similarity index 100% rename from old/2d/platformer_dcc/sound_jump.wav rename to 2d/physics_platformer/sound_jump.wav diff --git a/2d/physics_platformer/sound_jump.wav.import b/2d/physics_platformer/sound_jump.wav.import new file mode 100644 index 00000000..620760ca --- /dev/null +++ b/2d/physics_platformer/sound_jump.wav.import @@ -0,0 +1,16 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/sound_jump.wav-4966d1f327e26a176b56ab335c03b5e1.sample" + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=true +edit/normalize=true +edit/loop=false +compress/mode=0 diff --git a/old/2d/platformer_dcc/sound_shoot.wav b/2d/physics_platformer/sound_shoot.wav similarity index 100% rename from old/2d/platformer_dcc/sound_shoot.wav rename to 2d/physics_platformer/sound_shoot.wav diff --git a/2d/physics_platformer/sound_shoot.wav.import b/2d/physics_platformer/sound_shoot.wav.import new file mode 100644 index 00000000..2dd34178 --- /dev/null +++ b/2d/physics_platformer/sound_shoot.wav.import @@ -0,0 +1,16 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/sound_shoot.wav-f0f26619cba21d411b53ad23b8788116.sample" + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=true +edit/normalize=true +edit/loop=false +compress/mode=0 diff --git a/2d/physics_platformer/stage.tscn b/2d/physics_platformer/stage.tscn new file mode 100644 index 00000000..7bcf652d --- /dev/null +++ b/2d/physics_platformer/stage.tscn @@ -0,0 +1,385 @@ +[gd_scene load_steps=9 format=2] + +[ext_resource path="res://tileset.tres" type="TileSet" id=1] +[ext_resource path="res://coin.tscn" type="PackedScene" id=2] +[ext_resource path="res://moving_platform.tscn" type="PackedScene" id=3] +[ext_resource path="res://seesaw.tscn" type="PackedScene" id=4] +[ext_resource path="res://one_way_platform.tscn" type="PackedScene" id=5] +[ext_resource path="res://player.tscn" type="PackedScene" id=6] +[ext_resource path="res://enemy.tscn" type="PackedScene" id=7] +[ext_resource path="res://parallax_bg.tscn" type="PackedScene" id=8] + +[node name="stage" type="Node"] + +[node name="tile_map" type="TileMap" parent="."] + +mode = 0 +tile_set = ExtResource( 1 ) +cell_size = Vector2( 64, 64 ) +cell_quadrant_size = 8 +cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +cell_half_offset = 2 +cell_tile_origin = 0 +cell_y_sort = false +collision_use_kinematic = false +collision_friction = 1.0 +collision_bounce = 0.0 +collision_layer = 1 +collision_mask = 1 +occluder_light_mask = 1 +tile_data = PoolIntArray( 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 ) +__meta__ = { +"_edit_lock_": true +} + +[node name="coins" type="Node" parent="."] + +[node name="coin" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 672, 1179 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 2" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 704, 1179 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 3" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 736, 1179 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 4" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1120, 992 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 5" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1152, 992 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 6" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1184, 992 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 7" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1216, 992 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 8" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1248, 992 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 9" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1568, 864 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 10" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1632, 864 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 11" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1824, 768 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 12" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1888, 768 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 13" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 2080, 672 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 14" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 2144, 672 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 15" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1792, 1248 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 16" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1856, 1248 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 17" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1920, 1248 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 18" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1920, 1184 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 19" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1856, 1184 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 20" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 1792, 1184 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 21" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 98.8868, 488.515 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 22" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 89.5989, 481.217 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 23" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 108.175, 481.217 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 24" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 116.136, 469.939 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 25" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 117.463, 457.997 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 26" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 106.184, 449.373 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 27" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 98.2234, 458.661 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 28" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 88.272, 448.71 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 29" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 79.6476, 457.334 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 30" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 82.9647, 468.612 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 31" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 3357.42, 465.288 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 31 2" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 3421.42, 465.288 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 31 3" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 3485.42, 465.288 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 31 4" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 3485.42, 401.288 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 31 5" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 3421.42, 401.288 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 31 6" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 3357.42, 401.288 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 32" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 4172.75, 605.058 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 31 7" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 4236.75, 605.058 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 31 7 2" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 4300.75, 605.058 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 31 7 3" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 4300.75, 541.058 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 31 7 4" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 4236.75, 541.058 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="coin 31 7 5" parent="coins" instance=ExtResource( 2 )] + +position = Vector2( 4172.75, 541.058 ) +audio_bus_override = false +audio_bus_name = "Master" + +[node name="props" type="Node" parent="."] + +[node name="moving_platform" parent="props" instance=ExtResource( 3 )] + +position = Vector2( 1451.86, 742.969 ) +motion = Vector2( 0, 140 ) +cycle = 5.0 + +[node name="moving_platform 2" parent="props" instance=ExtResource( 3 )] + +position = Vector2( 624.824, 545.544 ) +motion = Vector2( 300, 0 ) +cycle = 10.0 + +[node name="moving_platform 3" parent="props" instance=ExtResource( 3 )] + +position = Vector2( 3419.86, 739.662 ) +motion = Vector2( 450, 0 ) +cycle = 10.0 + +[node name="seesaw" parent="props" instance=ExtResource( 4 )] + +position = Vector2( 2402.79, 849.52 ) + +[node name="one_way_platform" parent="props" instance=ExtResource( 5 )] + +position = Vector2( 927.698, 1120.81 ) + +[node name="player" parent="." instance=ExtResource( 6 )] + +position = Vector2( 251.684, 1045.6 ) + +[node name="enemies" type="Node" parent="."] + +[node name="enemy 5" parent="enemies" instance=ExtResource( 7 )] + +position = Vector2( 834.664, 1309.6 ) + +[node name="enemy 6" parent="enemies" instance=ExtResource( 7 )] + +position = Vector2( 707.665, 1225.05 ) + +[node name="enemy 7" parent="enemies" instance=ExtResource( 7 )] + +position = Vector2( 1125.21, 1053.06 ) + +[node name="enemy 8" parent="enemies" instance=ExtResource( 7 )] + +position = Vector2( 1292.11, 1059.24 ) + +[node name="enemy 9" parent="enemies" instance=ExtResource( 7 )] + +position = Vector2( 1607.38, 923.239 ) + +[node name="enemy 10" parent="enemies" instance=ExtResource( 7 )] + +position = Vector2( 2586.9, 939.059 ) + +[node name="enemy 11" parent="enemies" instance=ExtResource( 7 )] + +position = Vector2( 1457.6, 688.741 ) + +[node name="enemy 12" parent="enemies" instance=ExtResource( 7 )] + +position = Vector2( 1193.63, 460.381 ) + +[node name="enemy 13" parent="enemies" instance=ExtResource( 7 )] + +position = Vector2( 3429.73, 540.865 ) + +[node name="enemy 14" parent="enemies" instance=ExtResource( 7 )] + +position = Vector2( 3546.2, 1356.19 ) + +[node name="enemy 15" parent="enemies" instance=ExtResource( 7 )] + +position = Vector2( 2406.63, 815.115 ) + +[node name="parallax_bg" parent="." instance=ExtResource( 8 )] + +[node name="Label" type="Label" parent="."] + +margin_left = 12.0 +margin_top = -202.0 +margin_right = 358.0 +margin_bottom = -10.0 +rect_clip_content = false +mouse_filter = 2 +size_flags_horizontal = 2 +size_flags_vertical = 0 +text = "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.tscn file and follow \"instructions.\"" +autowrap = true +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 + + diff --git a/2d/physics_platformer/stage2.tscn b/2d/physics_platformer/stage2.tscn new file mode 100644 index 00000000..641dc3eb --- /dev/null +++ b/2d/physics_platformer/stage2.tscn @@ -0,0 +1,52 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://tileset.tres" type="TileSet" id=1] +[ext_resource path="res://player.tscn" type="PackedScene" id=2] +[ext_resource path="res://parallax_bg.tscn" type="PackedScene" id=3] + +[node name="stage" type="Node"] + +[node name="tile_map" type="TileMap" parent="."] + +mode = 0 +tile_set = ExtResource( 1 ) +cell_size = Vector2( 64, 64 ) +cell_quadrant_size = 8 +cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +cell_half_offset = 2 +cell_tile_origin = 0 +cell_y_sort = false +collision_use_kinematic = false +collision_friction = 1.0 +collision_bounce = 0.0 +collision_layer = 1 +collision_mask = 1 +occluder_light_mask = 1 +tile_data = PoolIntArray( 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 ) +__meta__ = { +"_edit_lock_": true +} + +[node name="player" parent="." instance=ExtResource( 2 )] + +position = Vector2( 251.684, 1045.6 ) + +[node name="parallax_bg" parent="." instance=ExtResource( 3 )] + +[node name="Label" type="Label" parent="."] + +margin_left = 12.0 +margin_top = -202.0 +margin_right = 358.0 +margin_bottom = -10.0 +rect_clip_content = false +mouse_filter = 2 +size_flags_horizontal = 2 +size_flags_vertical = 0 +text = "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.tscn file and follow \"instructions.\"" +autowrap = true +percent_visible = 1.0 +lines_skipped = 0 +max_lines_visible = -1 + + diff --git a/old/2d/platformer_dcc/tiles_demo.png b/2d/physics_platformer/tiles_demo.png similarity index 100% rename from old/2d/platformer_dcc/tiles_demo.png rename to 2d/physics_platformer/tiles_demo.png diff --git a/2d/physics_platformer/tiles_demo.png.import b/2d/physics_platformer/tiles_demo.png.import new file mode 100644 index 00000000..c4f02f44 --- /dev/null +++ b/2d/physics_platformer/tiles_demo.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/tiles_demo.png-7ca5c7c5c02ab8abe0d585a6a8f086bd.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/platformer_dcc/tileset.tres b/2d/physics_platformer/tileset.tres similarity index 79% rename from old/2d/platformer_dcc/tileset.tres rename to 2d/physics_platformer/tileset.tres index 17b7dd3b..0ea77c2f 100644 --- a/old/2d/platformer_dcc/tileset.tres +++ b/2d/physics_platformer/tileset.tres @@ -1,72 +1,73 @@ -[gd_resource type="TileSet" load_steps=14 format=1] +[gd_resource type="TileSet" load_steps=14 format=2] [ext_resource path="res://tiles_demo.png" type="Texture" id=1] [sub_resource type="ConvexPolygonShape2D" id=1] custom_solver_bias = 0.0 -points = Vector2Array( -32, -24, 32, -24, 32, 32, -32, 32 ) +points = PoolVector2Array( -32, -24, 32, -24, 32, 32, -32, 32 ) [sub_resource type="ConvexPolygonShape2D" id=2] custom_solver_bias = 0.0 -points = Vector2Array( -32, 32, -32, -24, 24, -24, 24, 32 ) +points = PoolVector2Array( -32, 32, -32, -24, 24, -24, 24, 32 ) [sub_resource type="ConvexPolygonShape2D" id=3] custom_solver_bias = 0.0 -points = Vector2Array( -32, -32, 32, -32, 32, 32, -32, 32 ) +points = PoolVector2Array( -32, -32, 32, -32, 32, 32, -32, 32 ) [sub_resource type="ConvexPolygonShape2D" id=4] custom_solver_bias = 0.0 -points = Vector2Array( -32, -56, 32, 8, 32, 64, -32, 64 ) +points = PoolVector2Array( -32, -56, 32, 8, 32, 64, -32, 64 ) [sub_resource type="ConvexPolygonShape2D" id=5] custom_solver_bias = 0.0 -points = Vector2Array( -32, 32, -32, -32, 24, -32, 24, 32 ) +points = PoolVector2Array( -32, 32, -32, -32, 24, -32, 24, 32 ) [sub_resource type="ConvexPolygonShape2D" id=6] custom_solver_bias = 0.0 -points = Vector2Array( -32, -24, 32, -24, 32, 24, -32, 24 ) +points = PoolVector2Array( -32, -24, 32, -24, 32, 24, -32, 24 ) [sub_resource type="ConvexPolygonShape2D" id=7] custom_solver_bias = 0.0 -points = Vector2Array( -32, -24, 24, -24, 24, 24, -32, 24 ) +points = PoolVector2Array( -32, -24, 24, -24, 24, 24, -32, 24 ) [sub_resource type="ConvexPolygonShape2D" id=8] custom_solver_bias = 0.0 -points = Vector2Array( -32, 32, -32, -32, 24, -32, 24, 32 ) +points = PoolVector2Array( -32, 32, -32, -32, 24, -32, 24, 32 ) [sub_resource type="ConvexPolygonShape2D" id=9] custom_solver_bias = 0.0 -points = Vector2Array( -64, 32, -64, -32, -8, -32, -8, 32 ) +points = PoolVector2Array( -64, 32, -64, -32, -8, -32, -8, 32 ) [sub_resource type="ConvexPolygonShape2D" id=10] custom_solver_bias = 0.0 -points = Vector2Array( -32, 32, -32, -32, 24, -32, 32, -24, 32, 32 ) +points = PoolVector2Array( -32, 32, -32, -32, 24, -32, 32, -24, 32, 32 ) [sub_resource type="ConvexPolygonShape2D" id=11] custom_solver_bias = 0.0 -points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) +points = PoolVector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) [sub_resource type="ConvexPolygonShape2D" id=12] custom_solver_bias = 0.0 -points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) +points = PoolVector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) [resource] 0/name = "floor" 0/texture = ExtResource( 1 ) 0/tex_offset = Vector2( 0, 0 ) +0/modulate = Color( 1, 1, 1, 1 ) 0/region = Rect2( 0, 0, 64, 64 ) 0/occluder_offset = Vector2( 32, 32 ) 0/navigation_offset = Vector2( 32, 32 ) @@ -75,6 +76,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 1/name = "edge" 1/texture = ExtResource( 1 ) 1/tex_offset = Vector2( 0, 0 ) +1/modulate = Color( 1, 1, 1, 1 ) 1/region = Rect2( 64, 0, 64, 64 ) 1/occluder_offset = Vector2( 32, 32 ) 1/navigation_offset = Vector2( 32, 32 ) @@ -83,6 +85,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 2/name = "wall" 2/texture = ExtResource( 1 ) 2/tex_offset = Vector2( 0, 0 ) +2/modulate = Color( 1, 1, 1, 1 ) 2/region = Rect2( 64, 64, 64, 64 ) 2/occluder_offset = Vector2( 32, 32 ) 2/navigation_offset = Vector2( 32, 32 ) @@ -91,6 +94,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 3/name = "wall_deco" 3/texture = ExtResource( 1 ) 3/tex_offset = Vector2( 0, 0 ) +3/modulate = Color( 1, 1, 1, 1 ) 3/region = Rect2( 320, 128, 128, 64 ) 3/occluder_offset = Vector2( 64, 32 ) 3/navigation_offset = Vector2( 64, 32 ) @@ -99,6 +103,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 4/name = "corner" 4/texture = ExtResource( 1 ) 4/tex_offset = Vector2( 0, 0 ) +4/modulate = Color( 1, 1, 1, 1 ) 4/region = Rect2( 64, 128, 64, 64 ) 4/occluder_offset = Vector2( 32, 32 ) 4/navigation_offset = Vector2( 32, 32 ) @@ -107,6 +112,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 5/name = "flowers" 5/texture = ExtResource( 1 ) 5/tex_offset = Vector2( 0, 0 ) +5/modulate = Color( 1, 1, 1, 1 ) 5/region = Rect2( 192, 192, 64, 64 ) 5/occluder_offset = Vector2( 32, 32 ) 5/navigation_offset = Vector2( 32, 32 ) @@ -115,6 +121,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 6/name = "tree_base" 6/texture = ExtResource( 1 ) 6/tex_offset = Vector2( 0, 0 ) +6/modulate = Color( 1, 1, 1, 1 ) 6/region = Rect2( 256, 192, 64, 64 ) 6/occluder_offset = Vector2( 32, 32 ) 6/navigation_offset = Vector2( 32, 32 ) @@ -123,6 +130,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 7/name = "tree_mid" 7/texture = ExtResource( 1 ) 7/tex_offset = Vector2( 0, 0 ) +7/modulate = Color( 1, 1, 1, 1 ) 7/region = Rect2( 256, 128, 64, 64 ) 7/occluder_offset = Vector2( 32, 32 ) 7/navigation_offset = Vector2( 32, 32 ) @@ -131,6 +139,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 8/name = "tree_mid 2" 8/texture = ExtResource( 1 ) 8/tex_offset = Vector2( 0, 0 ) +8/modulate = Color( 1, 1, 1, 1 ) 8/region = Rect2( 256, 64, 64, 64 ) 8/occluder_offset = Vector2( 32, 32 ) 8/navigation_offset = Vector2( 32, 32 ) @@ -139,6 +148,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 9/name = "tree_top" 9/texture = ExtResource( 1 ) 9/tex_offset = Vector2( 0, 0 ) +9/modulate = Color( 1, 1, 1, 1 ) 9/region = Rect2( 256, 0, 64, 64 ) 9/occluder_offset = Vector2( 32, 32 ) 9/navigation_offset = Vector2( 32, 32 ) @@ -147,6 +157,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 10/name = "solid" 10/texture = ExtResource( 1 ) 10/tex_offset = Vector2( 0, 0 ) +10/modulate = Color( 1, 1, 1, 1 ) 10/region = Rect2( 0, 64, 64, 64 ) 10/occluder_offset = Vector2( 32, 32 ) 10/navigation_offset = Vector2( 32, 32 ) @@ -155,6 +166,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 11/name = "ceiling" 11/texture = ExtResource( 1 ) 11/tex_offset = Vector2( 0, 0 ) +11/modulate = Color( 1, 1, 1, 1 ) 11/region = Rect2( 384, 64, 64, 64 ) 11/occluder_offset = Vector2( 32, 32 ) 11/navigation_offset = Vector2( 32, 32 ) @@ -163,6 +175,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 12/name = "ramp" 12/texture = ExtResource( 1 ) 12/tex_offset = Vector2( 0, 0 ) +12/modulate = Color( 1, 1, 1, 1 ) 12/region = Rect2( 128, 128, 64, 128 ) 12/occluder_offset = Vector2( 32, 64 ) 12/navigation_offset = Vector2( 32, 64 ) @@ -171,6 +184,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 13/name = "ceiling2wall" 13/texture = ExtResource( 1 ) 13/tex_offset = Vector2( 0, 0 ) +13/modulate = Color( 1, 1, 1, 1 ) 13/region = Rect2( 448, 64, 64, 64 ) 13/occluder_offset = Vector2( 32, 32 ) 13/navigation_offset = Vector2( 32, 32 ) @@ -179,6 +193,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 14/name = "platform_floor" 14/texture = ExtResource( 1 ) 14/tex_offset = Vector2( 0, 0 ) +14/modulate = Color( 1, 1, 1, 1 ) 14/region = Rect2( 128, 0, 64, 64 ) 14/occluder_offset = Vector2( 32, 32 ) 14/navigation_offset = Vector2( 32, 32 ) @@ -187,6 +202,7 @@ points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) 15/name = "platform_edge" 15/texture = ExtResource( 1 ) 15/tex_offset = Vector2( 0, 0 ) +15/modulate = Color( 1, 1, 1, 1 ) 15/region = Rect2( 192, 0, 64, 64 ) 15/occluder_offset = Vector2( 32, 32 ) 15/navigation_offset = Vector2( 32, 32 ) diff --git a/old/2d/platformer_dcc/tileset_edit.tscn b/2d/physics_platformer/tileset_edit.tscn similarity index 65% rename from old/2d/platformer_dcc/tileset_edit.tscn rename to 2d/physics_platformer/tileset_edit.tscn index 733fada5..e7632d1f 100644 --- a/old/2d/platformer_dcc/tileset_edit.tscn +++ b/2d/physics_platformer/tileset_edit.tscn @@ -1,69 +1,70 @@ -[gd_scene load_steps=14 format=1] +[gd_scene load_steps=54 format=2] [ext_resource path="res://tiles_demo.png" type="Texture" id=1] [sub_resource type="ConvexPolygonShape2D" id=1] custom_solver_bias = 0.0 -points = Vector2Array( -32, -24, 32, -24, 32, 32, -32, 32 ) +points = PoolVector2Array( -32, -24, 32, -24, 32, 32, -32, 32 ) [sub_resource type="ConvexPolygonShape2D" id=2] custom_solver_bias = 0.0 -points = Vector2Array( -32, 32, -32, -24, 24, -24, 24, 32 ) +points = PoolVector2Array( -32, 32, -32, -24, 24, -24, 24, 32 ) [sub_resource type="ConvexPolygonShape2D" id=3] custom_solver_bias = 0.0 -points = Vector2Array( -32, 32, -32, -32, 24, -32, 24, 32 ) +points = PoolVector2Array( -32, 32, -32, -32, 24, -32, 24, 32 ) [sub_resource type="ConvexPolygonShape2D" id=4] custom_solver_bias = 0.0 -points = Vector2Array( -64, 32, -64, -32, -8, -32, -8, 32 ) +points = PoolVector2Array( -64, 32, -64, -32, -8, -32, -8, 32 ) [sub_resource type="ConvexPolygonShape2D" id=5] custom_solver_bias = 0.0 -points = Vector2Array( -32, 32, -32, -32, 24, -32, 32, -24, 32, 32 ) +points = PoolVector2Array( -32, 32, -32, -32, 24, -32, 32, -24, 32, 32 ) [sub_resource type="ConvexPolygonShape2D" id=6] custom_solver_bias = 0.0 -points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) +points = PoolVector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) [sub_resource type="ConvexPolygonShape2D" id=7] custom_solver_bias = 0.0 -points = Vector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) +points = PoolVector2Array( -32, 32, -32, -24, 32, -24, 32, 32 ) [sub_resource type="ConvexPolygonShape2D" id=8] custom_solver_bias = 0.0 -points = Vector2Array( -32, -32, 32, -32, 32, 32, -32, 32 ) +points = PoolVector2Array( -32, -32, 32, -32, 32, 32, -32, 32 ) [sub_resource type="ConvexPolygonShape2D" id=9] custom_solver_bias = 0.0 -points = Vector2Array( -32, -56, 32, 8, 32, 64, -32, 64 ) +points = PoolVector2Array( -32, -56, 32, 8, 32, 64, -32, 64 ) [sub_resource type="ConvexPolygonShape2D" id=10] custom_solver_bias = 0.0 -points = Vector2Array( -32, 32, -32, -32, 24, -32, 24, 32 ) +points = PoolVector2Array( -32, 32, -32, -32, 24, -32, 24, 32 ) [sub_resource type="ConvexPolygonShape2D" id=11] custom_solver_bias = 0.0 -points = Vector2Array( -32, -24, 32, -24, 32, 24, -32, 24 ) +points = PoolVector2Array( -32, -24, 32, -24, 32, 24, -32, 24 ) [sub_resource type="ConvexPolygonShape2D" id=12] custom_solver_bias = 0.0 -points = Vector2Array( -32, -24, 24, -24, 24, 24, -32, 24 ) +points = PoolVector2Array( -32, -24, 24, -24, 24, 24, -32, 24 ) [node name="Node" type="Node"] + [node name="floor" type="Sprite" parent="."] texture = ExtResource( 1 ) @@ -72,12 +73,12 @@ region_rect = Rect2( 0, 0, 64, 64 ) [node name="collision" type="StaticBody2D" parent="floor"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -86,25 +87,25 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="floor/collision"] build_mode = 0 -polygon = Vector2Array( 32, -24, 32, 32, -32, 32, -32, -24 ) +polygon = PoolVector2Array( 32, -24, 32, 32, -32, 32, -32, -24 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="edge" type="Sprite" parent="."] -transform/pos = Vector2( 64, 0 ) +position = Vector2( 64, 0 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 64, 0, 64, 64 ) [node name="collision" type="StaticBody2D" parent="edge"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 2 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -113,25 +114,25 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="edge/collision"] build_mode = 0 -polygon = Vector2Array( -32, -24, 24, -24, 24, 32, -32, 32 ) +polygon = PoolVector2Array( -32, -24, 24, -24, 24, 32, -32, 32 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="wall" type="Sprite" parent="."] -transform/pos = Vector2( 64, 64 ) +position = Vector2( 64, 64 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 64, 64, 64, 64 ) [node name="collision" type="StaticBody2D" parent="wall"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 3 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -140,25 +141,25 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="wall/collision"] build_mode = 0 -polygon = Vector2Array( -32, -32, 24, -32, 24, 32, -32, 32 ) +polygon = PoolVector2Array( -32, -32, 24, -32, 24, 32, -32, 32 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="wall_deco" type="Sprite" parent="."] -transform/pos = Vector2( 96, 128 ) +position = Vector2( 96, 128 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 320, 128, 128, 64 ) [node name="collision" type="StaticBody2D" parent="wall_deco"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 4 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -167,25 +168,25 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="wall_deco/collision"] build_mode = 0 -polygon = Vector2Array( -64, -32, -8, -32, -8, 32, -64, 32 ) +polygon = PoolVector2Array( -64, -32, -8, -32, -8, 32, -64, 32 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="corner" type="Sprite" parent="."] -transform/pos = Vector2( 64, 192 ) +position = Vector2( 64, 192 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 64, 128, 64, 64 ) [node name="collision" type="StaticBody2D" parent="corner"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 5 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -194,25 +195,25 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="corner/collision"] build_mode = 0 -polygon = Vector2Array( -32, -32, 24, -32, 32, -24, 32, 32, -32, 32 ) +polygon = PoolVector2Array( -32, -32, 24, -32, 32, -24, 32, 32, -32, 32 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="flowers" type="Sprite" parent="."] -transform/pos = Vector2( 128, 192 ) +position = Vector2( 128, 192 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 192, 192, 64, 64 ) [node name="collision" type="StaticBody2D" parent="flowers"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 6 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -221,25 +222,25 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="flowers/collision"] build_mode = 0 -polygon = Vector2Array( -32, 32, 32, 32, 32, -24, -32, -24 ) +polygon = PoolVector2Array( -32, 32, 32, 32, 32, -24, -32, -24 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="tree_base" type="Sprite" parent="."] -transform/pos = Vector2( 192, 192 ) +position = Vector2( 192, 192 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 256, 192, 64, 64 ) [node name="collision" type="StaticBody2D" parent="tree_base"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 7 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -248,53 +249,53 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="tree_base/collision"] build_mode = 0 -polygon = Vector2Array( -32, 32, 32, 32, 32, -24, -32, -24 ) +polygon = PoolVector2Array( -32, 32, 32, 32, 32, -24, -32, -24 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="tree_mid" type="Sprite" parent="."] -transform/pos = Vector2( 192, 128 ) +position = Vector2( 192, 128 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 256, 128, 64, 64 ) [node name="tree_mid 2" type="Sprite" parent="."] -transform/pos = Vector2( 192, 64 ) +position = Vector2( 192, 64 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 256, 64, 64, 64 ) [node name="tree_top" type="Sprite" parent="."] -transform/pos = Vector2( 192, 0 ) +position = Vector2( 192, 0 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 256, 0, 64, 64 ) [node name="solid" type="Sprite" parent="."] -transform/pos = Vector2( 0, 64 ) +position = Vector2( 0, 64 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 0, 64, 64, 64 ) [node name="ceiling" type="Sprite" parent="."] -transform/pos = Vector2( 0, 128 ) +position = Vector2( 0, 128 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 384, 64, 64, 64 ) [node name="collision" type="StaticBody2D" parent="ceiling"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 8 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -303,25 +304,25 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="ceiling/collision"] build_mode = 0 -polygon = Vector2Array( 32, -32, 32, 32, -32, 32, -32, -32 ) +polygon = PoolVector2Array( 32, -32, 32, 32, -32, 32, -32, -32 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="ramp" type="Sprite" parent="."] -transform/pos = Vector2( 256, 224 ) +position = Vector2( 256, 224 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 128, 128, 64, 128 ) [node name="collision" type="StaticBody2D" parent="ramp"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 9 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -330,25 +331,25 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="ramp/collision"] build_mode = 0 -polygon = Vector2Array( -32, -56, 32, 8, 32, 64, -32, 64 ) +polygon = PoolVector2Array( -32, -56, 32, 8, 32, 64, -32, 64 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="ceiling2wall" type="Sprite" parent="."] -transform/pos = Vector2( 0, 192 ) +position = Vector2( 0, 192 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 448, 64, 64, 64 ) [node name="collision" type="StaticBody2D" parent="ceiling2wall"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 10 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -357,25 +358,25 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="ceiling2wall/collision"] build_mode = 0 -polygon = Vector2Array( -32, -32, 24, -32, 24, 32, -32, 32 ) +polygon = PoolVector2Array( -32, -32, 24, -32, 24, 32, -32, 32 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="platform_floor" type="Sprite" parent="."] -transform/pos = Vector2( 0, 256 ) +position = Vector2( 0, 256 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 128, 0, 64, 64 ) [node name="collision" type="StaticBody2D" parent="platform_floor"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 11 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -384,25 +385,25 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="platform_floor/collision"] build_mode = 0 -polygon = Vector2Array( 32, -24, 32, 24, -32, 24, -32, -24 ) +polygon = PoolVector2Array( 32, -24, 32, 24, -32, 24, -32, -24 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="platform_edge" type="Sprite" parent="."] -transform/pos = Vector2( 64, 256 ) +position = Vector2( 64, 256 ) texture = ExtResource( 1 ) region = true region_rect = Rect2( 192, 0, 64, 64 ) [node name="collision" type="StaticBody2D" parent="platform_edge"] -input/pickable = false +input_pickable = false shapes/0/shape = SubResource( 12 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) +shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 ) shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 +collision_layer = 1 +collision_mask = 1 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -411,22 +412,26 @@ bounce = 0.0 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="platform_edge/collision"] build_mode = 0 -polygon = Vector2Array( 24, -24, 24, 24, -32, 24, -32, -24 ) +polygon = PoolVector2Array( 24, -24, 24, 24, -32, 24, -32, -24 ) shape_range = Vector2( -1, -1 ) trigger = false [node name="help" type="Label" parent="."] -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 1.0 -margin/top = 331.0 -margin/right = 727.0 -margin/bottom = 422.0 -text = "This scene serves as a tool for editing the tileset.\nNodes (sprites) and their respective collisionsare edited here.\n\nTo create a tileset from this, a \"TileSet\" resoucre must be created. Use the helper in: Scene -> Convert To -> TileSet.\nThis will save a tileset. Saving over it will merge your changes.\n\nFinally, the saved tileset resource (tileset.tres in this case), can be opened to be used into a TileMap node for editing a tile map." +focus_ignore_mouse = true +focus_stop_mouse = true +size_flags_horizontal = 2 +margin_left = 1.0 +margin_top = 331.0 +margin_right = 727.0 +margin_bottom = 422.0 +text = "This scene serves as a tool for editing the tileset. +Nodes (sprites) and their respective collisionsare 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.tres in this case), can be opened to be used into a TileMap node for editing a tile map." percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 - - diff --git a/2d/platformer/.import/bullet.png-ff1424653e10246c11e3724e402c519e.stex b/2d/platformer/.import/bullet.png-ff1424653e10246c11e3724e402c519e.stex new file mode 100644 index 00000000..80ad9eb9 Binary files /dev/null and b/2d/platformer/.import/bullet.png-ff1424653e10246c11e3724e402c519e.stex differ diff --git a/2d/platformer/.import/coin.png-7e710de472b75b3653c3283ef5153eb4.stex b/2d/platformer/.import/coin.png-7e710de472b75b3653c3283ef5153eb4.stex new file mode 100644 index 00000000..a418a891 Binary files /dev/null and b/2d/platformer/.import/coin.png-7e710de472b75b3653c3283ef5153eb4.stex differ diff --git a/2d/platformer/.import/enemy.png-f7d9f81714867a24a08e299bb600e611.stex b/2d/platformer/.import/enemy.png-f7d9f81714867a24a08e299bb600e611.stex new file mode 100644 index 00000000..9af7760a Binary files /dev/null and b/2d/platformer/.import/enemy.png-f7d9f81714867a24a08e299bb600e611.stex differ diff --git a/2d/platformer/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex b/2d/platformer/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex new file mode 100644 index 00000000..c7d691ef Binary files /dev/null and b/2d/platformer/.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex differ diff --git a/2d/platformer/.import/moving_platform.png-1ef2f9fd1684df90d6ad38a267c1201b.stex b/2d/platformer/.import/moving_platform.png-1ef2f9fd1684df90d6ad38a267c1201b.stex new file mode 100644 index 00000000..c4d18143 Binary files /dev/null and b/2d/platformer/.import/moving_platform.png-1ef2f9fd1684df90d6ad38a267c1201b.stex differ diff --git a/2d/platformer/.import/music.ogg-3bd46d3a4b41702b152014078d12a390.oggstr b/2d/platformer/.import/music.ogg-3bd46d3a4b41702b152014078d12a390.oggstr new file mode 100644 index 00000000..8b67ac15 Binary files /dev/null and b/2d/platformer/.import/music.ogg-3bd46d3a4b41702b152014078d12a390.oggstr differ diff --git a/2d/platformer/.import/one_way_platform.png-af40161497fd0e8bfbc5d400c8bd650a.stex b/2d/platformer/.import/one_way_platform.png-af40161497fd0e8bfbc5d400c8bd650a.stex new file mode 100644 index 00000000..1a6cd4c4 Binary files /dev/null and b/2d/platformer/.import/one_way_platform.png-af40161497fd0e8bfbc5d400c8bd650a.stex differ diff --git a/2d/platformer/.import/osb_fire.png-e657a73546eb75918e9d9a3fea15cf70.stex b/2d/platformer/.import/osb_fire.png-e657a73546eb75918e9d9a3fea15cf70.stex new file mode 100644 index 00000000..ac0dcb73 Binary files /dev/null and b/2d/platformer/.import/osb_fire.png-e657a73546eb75918e9d9a3fea15cf70.stex differ diff --git a/2d/platformer/.import/osb_jump.png-dbbef3b47abbb562ce6c81a9701121c6.stex b/2d/platformer/.import/osb_jump.png-dbbef3b47abbb562ce6c81a9701121c6.stex new file mode 100644 index 00000000..0c4df3e3 Binary files /dev/null and b/2d/platformer/.import/osb_jump.png-dbbef3b47abbb562ce6c81a9701121c6.stex differ diff --git a/2d/platformer/.import/osb_left.png-fc7230aeb0eec74933ed08f89b893288.stex b/2d/platformer/.import/osb_left.png-fc7230aeb0eec74933ed08f89b893288.stex new file mode 100644 index 00000000..eaa74665 Binary files /dev/null and b/2d/platformer/.import/osb_left.png-fc7230aeb0eec74933ed08f89b893288.stex differ diff --git a/2d/platformer/.import/osb_right.png-5cf5add2dbc1c8dde17173ac56f3a004.stex b/2d/platformer/.import/osb_right.png-5cf5add2dbc1c8dde17173ac56f3a004.stex new file mode 100644 index 00000000..a4825d79 Binary files /dev/null and b/2d/platformer/.import/osb_right.png-5cf5add2dbc1c8dde17173ac56f3a004.stex differ diff --git a/2d/platformer/.import/robot_demo.png-8502817e0037b3f31eaca3dae49dcfc5.stex b/2d/platformer/.import/robot_demo.png-8502817e0037b3f31eaca3dae49dcfc5.stex new file mode 100644 index 00000000..ed5728d3 Binary files /dev/null and b/2d/platformer/.import/robot_demo.png-8502817e0037b3f31eaca3dae49dcfc5.stex differ diff --git a/2d/platformer/.import/scroll_bg_cloud_1.png-bad76c04aedb60c1b863fc1c1c6387ee.stex b/2d/platformer/.import/scroll_bg_cloud_1.png-bad76c04aedb60c1b863fc1c1c6387ee.stex new file mode 100644 index 00000000..3b2a0eef Binary files /dev/null and b/2d/platformer/.import/scroll_bg_cloud_1.png-bad76c04aedb60c1b863fc1c1c6387ee.stex differ diff --git a/2d/platformer/.import/scroll_bg_cloud_2.png-cb251e8e91cb5450d56a9d0584943db0.stex b/2d/platformer/.import/scroll_bg_cloud_2.png-cb251e8e91cb5450d56a9d0584943db0.stex new file mode 100644 index 00000000..b7f0334f Binary files /dev/null and b/2d/platformer/.import/scroll_bg_cloud_2.png-cb251e8e91cb5450d56a9d0584943db0.stex differ diff --git a/2d/platformer/.import/scroll_bg_cloud_3.png-6bbd67870db2f55a0c1b4685aa91e57c.stex b/2d/platformer/.import/scroll_bg_cloud_3.png-6bbd67870db2f55a0c1b4685aa91e57c.stex new file mode 100644 index 00000000..0a169a99 Binary files /dev/null and b/2d/platformer/.import/scroll_bg_cloud_3.png-6bbd67870db2f55a0c1b4685aa91e57c.stex differ diff --git a/2d/platformer/.import/scroll_bg_fg_1.png-af0d9d2847aea6e03f54efcc2d9b6f06.stex b/2d/platformer/.import/scroll_bg_fg_1.png-af0d9d2847aea6e03f54efcc2d9b6f06.stex new file mode 100644 index 00000000..3bbaa627 Binary files /dev/null and b/2d/platformer/.import/scroll_bg_fg_1.png-af0d9d2847aea6e03f54efcc2d9b6f06.stex differ diff --git a/2d/platformer/.import/scroll_bg_fg_2.png-2419a5b3b81617ba71d0ad50d23bf6f1.stex b/2d/platformer/.import/scroll_bg_fg_2.png-2419a5b3b81617ba71d0ad50d23bf6f1.stex new file mode 100644 index 00000000..8fd5c498 Binary files /dev/null and b/2d/platformer/.import/scroll_bg_fg_2.png-2419a5b3b81617ba71d0ad50d23bf6f1.stex differ diff --git a/2d/platformer/.import/scroll_bg_sky.png-df3e8b7d076f566a7bd83c6d4f9b57cf.stex b/2d/platformer/.import/scroll_bg_sky.png-df3e8b7d076f566a7bd83c6d4f9b57cf.stex new file mode 100644 index 00000000..cc87d7f9 Binary files /dev/null and b/2d/platformer/.import/scroll_bg_sky.png-df3e8b7d076f566a7bd83c6d4f9b57cf.stex differ diff --git a/2d/platformer/.import/sound_coin.wav-b4defacd1a1eab95585c7b5095506878.sample b/2d/platformer/.import/sound_coin.wav-b4defacd1a1eab95585c7b5095506878.sample new file mode 100644 index 00000000..4b4e9cd7 Binary files /dev/null and b/2d/platformer/.import/sound_coin.wav-b4defacd1a1eab95585c7b5095506878.sample differ diff --git a/2d/platformer/.import/sound_explode.wav-23e94be75a4346bffb517c7e07035977.sample b/2d/platformer/.import/sound_explode.wav-23e94be75a4346bffb517c7e07035977.sample new file mode 100644 index 00000000..e36026bb Binary files /dev/null and b/2d/platformer/.import/sound_explode.wav-23e94be75a4346bffb517c7e07035977.sample differ diff --git a/2d/platformer/.import/sound_hit.wav-d8455980ada2d4a9a73508948d7317cc.sample b/2d/platformer/.import/sound_hit.wav-d8455980ada2d4a9a73508948d7317cc.sample new file mode 100644 index 00000000..199130d1 Binary files /dev/null and b/2d/platformer/.import/sound_hit.wav-d8455980ada2d4a9a73508948d7317cc.sample differ diff --git a/2d/platformer/.import/sound_jump.wav-4966d1f327e26a176b56ab335c03b5e1.sample b/2d/platformer/.import/sound_jump.wav-4966d1f327e26a176b56ab335c03b5e1.sample new file mode 100644 index 00000000..ee69d06b Binary files /dev/null and b/2d/platformer/.import/sound_jump.wav-4966d1f327e26a176b56ab335c03b5e1.sample differ diff --git a/2d/platformer/.import/sound_shoot.wav-f0f26619cba21d411b53ad23b8788116.sample b/2d/platformer/.import/sound_shoot.wav-f0f26619cba21d411b53ad23b8788116.sample new file mode 100644 index 00000000..c8b27015 Binary files /dev/null and b/2d/platformer/.import/sound_shoot.wav-f0f26619cba21d411b53ad23b8788116.sample differ diff --git a/2d/platformer/.import/tiles_demo.png-7ca5c7c5c02ab8abe0d585a6a8f086bd.stex b/2d/platformer/.import/tiles_demo.png-7ca5c7c5c02ab8abe0d585a6a8f086bd.stex new file mode 100644 index 00000000..b26ddc08 Binary files /dev/null and b/2d/platformer/.import/tiles_demo.png-7ca5c7c5c02ab8abe0d585a6a8f086bd.stex differ diff --git a/2d/platformer/bullet.png.import b/2d/platformer/bullet.png.import new file mode 100644 index 00000000..f7e5bdcf --- /dev/null +++ b/2d/platformer/bullet.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/bullet.png-ff1424653e10246c11e3724e402c519e.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/coin.png.import b/2d/platformer/coin.png.import new file mode 100644 index 00000000..e65aaed2 --- /dev/null +++ b/2d/platformer/coin.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/coin.png-7e710de472b75b3653c3283ef5153eb4.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/enemy.gd b/2d/platformer/enemy.gd index b92f368c..b91d546c 100644 --- a/2d/platformer/enemy.gd +++ b/2d/platformer/enemy.gd @@ -43,6 +43,7 @@ func _fixed_process(delta): else: new_anim="explode" + if (anim!=new_anim): anim=new_anim get_node("anim").play(anim) diff --git a/2d/platformer/enemy.png.import b/2d/platformer/enemy.png.import new file mode 100644 index 00000000..6196f766 --- /dev/null +++ b/2d/platformer/enemy.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/enemy.png-f7d9f81714867a24a08e299bb600e611.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/icon.png.import b/2d/platformer/icon.png.import new file mode 100644 index 00000000..627820bd --- /dev/null +++ b/2d/platformer/icon.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/moving_platform.png.import b/2d/platformer/moving_platform.png.import new file mode 100644 index 00000000..f8a15bce --- /dev/null +++ b/2d/platformer/moving_platform.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/moving_platform.png-1ef2f9fd1684df90d6ad38a267c1201b.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/music.ogg.import b/2d/platformer/music.ogg.import new file mode 100644 index 00000000..3695c7e2 --- /dev/null +++ b/2d/platformer/music.ogg.import @@ -0,0 +1,9 @@ +[remap] + +importer="ogg_vorbis" +type="AudioStreamOGGVorbis" +path="res://.import/music.ogg-3bd46d3a4b41702b152014078d12a390.oggstr" + +[params] + +loop=true diff --git a/2d/platformer/one_way_platform.png.import b/2d/platformer/one_way_platform.png.import new file mode 100644 index 00000000..d845b9bf --- /dev/null +++ b/2d/platformer/one_way_platform.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/one_way_platform.png-af40161497fd0e8bfbc5d400c8bd650a.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/one_way_platform.tscn b/2d/platformer/one_way_platform.tscn index e30cf83c..af66db05 100644 --- a/2d/platformer/one_way_platform.tscn +++ b/2d/platformer/one_way_platform.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=3 format=2] [ext_resource path="res://one_way_platform.png" type="Texture" id=1] @@ -10,13 +10,8 @@ extents = Vector2( 100, 10 ) [node name="one_way_platform" type="StaticBody2D"] input_pickable = false -shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Transform2D( 1, 0, 0, 1, 1.46304, -13.1672 ) -shapes/0/trigger = false collision_layer = 1 collision_mask = 1 -one_way_collision/direction = Vector2( 0, 1 ) -one_way_collision/max_depth = 20.0 constant_linear_velocity = Vector2( 0, 0 ) constant_angular_velocity = 0.0 friction = 1.0 @@ -30,5 +25,6 @@ texture = ExtResource( 1 ) position = Vector2( 1.46304, -13.1672 ) shape = SubResource( 1 ) -trigger = false -_update_shape_index = -1 +one_way_collision = true + + diff --git a/2d/platformer/osb_fire.png.import b/2d/platformer/osb_fire.png.import new file mode 100644 index 00000000..13fb7aa7 --- /dev/null +++ b/2d/platformer/osb_fire.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/osb_fire.png-e657a73546eb75918e9d9a3fea15cf70.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/osb_jump.png.import b/2d/platformer/osb_jump.png.import new file mode 100644 index 00000000..7209cb23 --- /dev/null +++ b/2d/platformer/osb_jump.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/osb_jump.png-dbbef3b47abbb562ce6c81a9701121c6.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/osb_left.png.import b/2d/platformer/osb_left.png.import new file mode 100644 index 00000000..d1c14226 --- /dev/null +++ b/2d/platformer/osb_left.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/osb_left.png-fc7230aeb0eec74933ed08f89b893288.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/osb_right.png.import b/2d/platformer/osb_right.png.import new file mode 100644 index 00000000..1f0c9ae8 --- /dev/null +++ b/2d/platformer/osb_right.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/osb_right.png-5cf5add2dbc1c8dde17173ac56f3a004.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/player.gd b/2d/platformer/player.gd index 8dc12a55..2a048c0b 100644 --- a/2d/platformer/player.gd +++ b/2d/platformer/player.gd @@ -36,7 +36,7 @@ func _fixed_process(delta): # Move and Slide linear_vel = move_and_slide( linear_vel, FLOOR_NORMAL, SLOPE_SLIDE_STOP ) # Detect Floor - if (is_move_and_slide_on_floor()): + if (is_on_floor()): onair_time=0 on_floor = onair_time < MIN_ONAIR_TIME diff --git a/2d/platformer/project.godot b/2d/platformer/project.godot new file mode 100644 index 00000000..eb2a68e9 --- /dev/null +++ b/2d/platformer/project.godot @@ -0,0 +1,43 @@ +[application] + +icon = "res://icon.png" +main_scene = "res://stage.tscn" +name = "Platformer" +name_es = "Plataformero" +target_fps = "60" + +[display] + +stretch/aspect = "keep_height" +stretch/mode = "2d" +window/height = 480 +window/width = 800 + +[image_loader] + +repeat = false + +[input] + +jump = [ InputEvent(KEY,16777232), InputEvent(JBUTTON,0) ] +move_left = [ InputEvent(KEY,16777231), InputEvent(JBUTTON,14) ] +move_right = [ InputEvent(KEY,16777233), InputEvent(JBUTTON,15) ] +shoot = [ InputEvent(KEY,32), InputEvent(JBUTTON,2) ] +spawn = [ InputEvent(KEY,16777244), InputEvent(JBUTTON,11) ] + +[physics] + +2d/default_gravity = 700 + +[rasterizer] + +use_pixel_snap = true + +[render] + +mipmap_policy = 1 + +[texture_import] + +filter = false + diff --git a/2d/platformer/robot_demo.png.import b/2d/platformer/robot_demo.png.import new file mode 100644 index 00000000..a2513f73 --- /dev/null +++ b/2d/platformer/robot_demo.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/robot_demo.png-8502817e0037b3f31eaca3dae49dcfc5.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/scroll_bg_cloud_1.png.import b/2d/platformer/scroll_bg_cloud_1.png.import new file mode 100644 index 00000000..19980f5a --- /dev/null +++ b/2d/platformer/scroll_bg_cloud_1.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/scroll_bg_cloud_1.png-bad76c04aedb60c1b863fc1c1c6387ee.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/scroll_bg_cloud_2.png.import b/2d/platformer/scroll_bg_cloud_2.png.import new file mode 100644 index 00000000..704d0753 --- /dev/null +++ b/2d/platformer/scroll_bg_cloud_2.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/scroll_bg_cloud_2.png-cb251e8e91cb5450d56a9d0584943db0.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/scroll_bg_cloud_3.png.import b/2d/platformer/scroll_bg_cloud_3.png.import new file mode 100644 index 00000000..c8ce61e7 --- /dev/null +++ b/2d/platformer/scroll_bg_cloud_3.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/scroll_bg_cloud_3.png-6bbd67870db2f55a0c1b4685aa91e57c.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/scroll_bg_fg_1.png.import b/2d/platformer/scroll_bg_fg_1.png.import new file mode 100644 index 00000000..7c9a93dd --- /dev/null +++ b/2d/platformer/scroll_bg_fg_1.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/scroll_bg_fg_1.png-af0d9d2847aea6e03f54efcc2d9b6f06.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/scroll_bg_fg_2.png.import b/2d/platformer/scroll_bg_fg_2.png.import new file mode 100644 index 00000000..ab8a7592 --- /dev/null +++ b/2d/platformer/scroll_bg_fg_2.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/scroll_bg_fg_2.png-2419a5b3b81617ba71d0ad50d23bf6f1.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/scroll_bg_sky.png.import b/2d/platformer/scroll_bg_sky.png.import new file mode 100644 index 00000000..1b5544ee --- /dev/null +++ b/2d/platformer/scroll_bg_sky.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/scroll_bg_sky.png-df3e8b7d076f566a7bd83c6d4f9b57cf.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/2d/platformer/sound_coin.wav.import b/2d/platformer/sound_coin.wav.import new file mode 100644 index 00000000..519f6477 --- /dev/null +++ b/2d/platformer/sound_coin.wav.import @@ -0,0 +1,16 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/sound_coin.wav-b4defacd1a1eab95585c7b5095506878.sample" + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=true +edit/normalize=true +edit/loop=false +compress/mode=0 diff --git a/2d/platformer/sound_explode.wav.import b/2d/platformer/sound_explode.wav.import new file mode 100644 index 00000000..ebb5011d --- /dev/null +++ b/2d/platformer/sound_explode.wav.import @@ -0,0 +1,16 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/sound_explode.wav-23e94be75a4346bffb517c7e07035977.sample" + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=true +edit/normalize=true +edit/loop=false +compress/mode=0 diff --git a/2d/platformer/sound_hit.wav.import b/2d/platformer/sound_hit.wav.import new file mode 100644 index 00000000..b0c43155 --- /dev/null +++ b/2d/platformer/sound_hit.wav.import @@ -0,0 +1,16 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/sound_hit.wav-d8455980ada2d4a9a73508948d7317cc.sample" + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=true +edit/normalize=true +edit/loop=false +compress/mode=0 diff --git a/2d/platformer/sound_jump.wav.import b/2d/platformer/sound_jump.wav.import new file mode 100644 index 00000000..620760ca --- /dev/null +++ b/2d/platformer/sound_jump.wav.import @@ -0,0 +1,16 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/sound_jump.wav-4966d1f327e26a176b56ab335c03b5e1.sample" + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=true +edit/normalize=true +edit/loop=false +compress/mode=0 diff --git a/2d/platformer/sound_shoot.wav.import b/2d/platformer/sound_shoot.wav.import new file mode 100644 index 00000000..2dd34178 --- /dev/null +++ b/2d/platformer/sound_shoot.wav.import @@ -0,0 +1,16 @@ +[remap] + +importer="wav" +type="AudioStreamSample" +path="res://.import/sound_shoot.wav-f0f26619cba21d411b53ad23b8788116.sample" + +[params] + +force/8_bit=false +force/mono=false +force/max_rate=false +force/max_rate_hz=44100 +edit/trim=true +edit/normalize=true +edit/loop=false +compress/mode=0 diff --git a/2d/platformer/stage.tscn b/2d/platformer/stage.tscn index e184273f..25a67797 100644 --- a/2d/platformer/stage.tscn +++ b/2d/platformer/stage.tscn @@ -26,15 +26,13 @@ collision_bounce = 0.0 collision_layer = 1 collision_mask = 1 occluder_light_mask = 1 -tile_data = PoolIntArray( 0, 2, 65536, 2, 131072, 2, 196608, 2, 196626, 9, 262144, 2, 262162, 8, 327680, 2, 327697, 536870921, 327698, 7, 393216, 2, 393276, 536870914, 393277, 536870922, 393278, 536870922, 393279, 536870922, 393280, 536870922, 393281, 536870922, 393282, 536870922, 393283, 536870922, 393284, 536870922, 393285, 536870922, 458752, 2, 458812, 536870914, 458813, 536870922, 458814, 536870922, 458815, 536870922, 458816, 536870922, 458817, 536870922, 458818, 536870922, 458819, 536870922, 458820, 536870922, 458821, 536870922, 524288, 4, 524289, 1, 524348, 536870914, 524349, 536870922, 524350, 536870922, 524351, 536870922, 524352, 536870922, 524353, 536870922, 524354, 536870922, 524355, 536870922, 524356, 536870922, 524357, 536870922, 589824, 10, 589825, 13, 589860, 536870914, 589861, 10, 589862, 10, 589863, 10, 589864, 10, 589865, 10, 589866, 10, 589867, 10, 589868, 10, 589869, 2, 589884, 536870914, 589885, 536870922, 589886, 536870922, 589887, 536870922, 589888, 536870922, 589889, 536870922, 589890, 536870922, 589891, 536870922, 589892, 536870922, 589893, 536870922, 655360, 2, 655396, 536870914, 655397, 10, 655398, 10, 655399, 10, 655400, 10, 655401, 10, 655402, 10, 655403, 10, 655404, 10, 655405, 2, 655420, 536870914, 655421, 536870922, 655422, 536870922, 655423, 536870922, 655424, 536870922, 655425, 536870922, 655426, 536870922, 655427, 536870922, 655428, 536870922, 655429, 536870922, 720896, 2, 720932, 536870914, 720933, 10, 720934, 10, 720935, 10, 720936, 10, 720937, 10, 720938, 10, 720939, 10, 720940, 10, 720941, 2, 720956, 536870914, 720957, 536870922, 720958, 536870922, 720959, 536870922, 720960, 536870922, 720961, 536870922, 720962, 536870922, 720963, 536870922, 720964, 536870922, 720965, 536870922, 786432, 2, 786437, 9, 786468, 536870914, 786469, 10, 786470, 10, 786471, 10, 786472, 10, 786473, 10, 786474, 10, 786475, 10, 786476, 10, 786477, 2, 786492, 536870914, 786493, 536870922, 786494, 536870922, 786495, 536870922, 786496, 536870922, 786497, 536870922, 786498, 536870922, 786499, 536870922, 786500, 536870922, 786501, 536870922, 851968, 2, 851973, 7, 852004, 536870914, 852005, 10, 852006, 10, 852007, 10, 852008, 10, 852009, 10, 852010, 10, 852011, 10, 852012, 10, 852013, 2, 852028, 536870914, 852029, 536870922, 852030, 536870922, 852031, 536870922, 852032, 536870922, 852033, 536870922, 852034, 536870922, 852035, 536870922, 852036, 536870922, 852037, 536870922, 917504, 2, 917506, 9, 917509, 7, 917512, 536870921, 917540, 536870914, 917541, 10, 917542, 10, 917543, 10, 917544, 10, 917545, 10, 917546, 10, 917547, 10, 917548, 10, 917549, 2, 917564, 536870914, 917565, 536870922, 917566, 536870922, 917567, 536870922, 917568, 536870922, 917569, 536870922, 917570, 536870922, 917571, 536870922, 917572, 536870922, 917573, 536870922, 983040, 2, 983042, 7, 983045, 7, 983048, 536870920, 983076, 536870914, 983077, 10, 983078, 10, 983079, 10, 983080, 10, 983081, 10, 983082, 10, 983083, 10, 983084, 10, 983085, 2, 983100, 536870914, 983101, 536870922, 983102, 536870922, 983103, 536870922, 983104, 536870922, 983105, 536870922, 983106, 536870922, 983107, 536870922, 983108, 536870922, 983109, 536870922, 1048576, 2, 1048578, 8, 1048581, 8, 1048584, 536870919, 1048612, 536870914, 1048613, 10, 1048614, 10, 1048615, 10, 1048616, 10, 1048617, 10, 1048618, 10, 1048619, 10, 1048620, 10, 1048621, 2, 1048636, 536870914, 1048637, 536870922, 1048638, 536870922, 1048639, 536870922, 1048640, 536870922, 1048641, 536870922, 1048642, 536870922, 1048643, 536870922, 1048644, 536870922, 1048645, 536870922, 1114112, 4, 1114113, 0, 1114114, 6, 1114115, 0, 1114116, 0, 1114117, 6, 1114118, 1, 1114127, 536870913, 1114128, 0, 1114129, 15, 1114139, 536870927, 1114140, 0, 1114141, 536870912, 1114142, 536870912, 1114143, 536870912, 1114144, 15, 1114148, 536870925, 1114149, 536870923, 1114150, 536870923, 1114151, 536870923, 1114152, 536870923, 1114153, 536870923, 1114154, 536870923, 1114155, 536870923, 1114156, 536870923, 1114157, 13, 1114172, 536870914, 1114173, 536870922, 1114174, 536870922, 1114175, 536870922, 1114176, 536870922, 1114177, 536870922, 1114178, 536870922, 1114179, 536870922, 1114180, 536870922, 1114181, 536870922, 1179648, 10, 1179649, 10, 1179650, 10, 1179651, 10, 1179652, 10, 1179653, 10, 1179654, 2, 1179656, 536870919, 1179663, 536870914, 1179664, 2, 1179676, 536870914, 1179677, 536870922, 1179678, 536870922, 1179679, 2, 1179700, 536870913, 1179701, 536870912, 1179702, 536870912, 1179703, 536870912, 1179704, 536870912, 1179705, 536870912, 1179706, 536870912, 1179707, 536870912, 1179708, 536870916, 1179709, 536870922, 1179710, 536870922, 1179711, 536870922, 1179712, 536870922, 1179713, 536870922, 1179714, 536870922, 1179715, 536870922, 1179716, 536870922, 1179717, 536870922, 1245184, 10, 1245185, 10, 1245186, 10, 1245187, 10, 1245188, 10, 1245189, 10, 1245190, 4, 1245191, 1, 1245192, 536870919, 1245199, 536870914, 1245200, 2, 1245212, 536870914, 1245213, 536870922, 1245214, 536870922, 1245215, 2, 1245236, 536870914, 1245237, 536870922, 1245238, 536870922, 1245239, 536870922, 1245240, 536870922, 1245241, 536870922, 1245242, 536870922, 1245243, 536870922, 1245244, 536870922, 1245245, 536870922, 1245246, 536870922, 1245247, 536870922, 1245248, 536870922, 1245249, 536870922, 1245250, 536870922, 1245251, 536870922, 1245252, 536870922, 1245253, 536870922, 1310720, 10, 1310721, 10, 1310722, 10, 1310723, 10, 1310724, 10, 1310725, 10, 1310726, 10, 1310727, 4, 1310728, 1, 1310735, 536870914, 1310736, 2, 1310748, 536870914, 1310749, 536870922, 1310750, 536870922, 1310751, 2, 1310772, 536870914, 1310773, 536870922, 1310774, 536870922, 1310775, 536870922, 1310776, 536870922, 1310777, 536870922, 1310778, 536870922, 1310779, 536870922, 1310780, 536870922, 1310781, 536870922, 1310782, 536870922, 1310783, 536870922, 1310784, 536870922, 1310785, 536870922, 1310786, 536870922, 1310787, 536870922, 1310788, 536870922, 1310789, 536870922, 1376256, 10, 1376257, 10, 1376258, 10, 1376259, 10, 1376260, 10, 1376261, 10, 1376262, 10, 1376263, 10, 1376264, 4, 1376265, 0, 1376266, 0, 1376267, 0, 1376268, 0, 1376269, 0, 1376270, 0, 1376271, 536870916, 1376272, 2, 1376284, 536870914, 1376285, 536870922, 1376286, 536870922, 1376287, 2, 1376308, 536870914, 1376309, 536870922, 1376310, 536870922, 1376311, 536870922, 1376312, 536870922, 1376313, 536870922, 1376314, 536870922, 1376315, 536870922, 1376316, 536870922, 1376317, 536870922, 1376318, 536870922, 1376319, 536870922, 1376320, 536870922, 1376321, 536870922, 1376322, 536870922, 1376323, 536870922, 1376324, 536870922, 1376325, 536870922, 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, 2, 1441820, 536870914, 1441821, 536870922, 1441822, 536870922, 1441823, 2, 1441844, 536870914, 1441845, 536870922, 1441846, 536870922, 1441847, 536870922, 1441848, 536870922, 1441849, 536870922, 1441850, 536870922, 1441851, 536870922, 1441852, 536870922, 1441853, 536870922, 1441854, 536870922, 1441855, 536870922, 1441856, 536870922, 1441857, 536870922, 1441858, 536870922, 1441859, 536870922, 1441860, 536870922, 1441861, 536870922, 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, 2, 1507356, 536870914, 1507357, 536870922, 1507358, 536870922, 1507359, 4, 1507360, 0, 1507361, 0, 1507362, 0, 1507363, 0, 1507364, 0, 1507365, 0, 1507366, 12, 1507380, 536870914, 1507381, 536870922, 1507382, 536870922, 1507383, 536870922, 1507384, 536870922, 1507385, 536870922, 1507386, 536870922, 1507387, 536870922, 1507388, 536870922, 1507389, 536870922, 1507390, 536870922, 1507391, 536870922, 1507392, 536870922, 1507393, 536870922, 1507394, 536870922, 1507395, 536870922, 1507396, 536870922, 1507397, 536870922, 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, 2, 1572892, 536870922, 1572893, 536870922, 1572894, 536870922, 1572895, 536870922, 1572896, 536870922, 1572897, 536870922, 1572898, 536870922, 1572899, 536870922, 1572900, 536870922, 1572901, 536870922, 1572902, 4, 1572903, 12, 1572916, 536870914, 1572917, 536870922, 1572918, 536870922, 1572919, 536870922, 1572920, 536870922, 1572921, 536870922, 1572922, 536870922, 1572923, 536870922, 1572924, 536870922, 1572925, 536870922, 1572926, 536870922, 1572927, 536870922, 1572928, 536870922, 1572929, 536870922, 1572930, 536870922, 1572931, 536870922, 1572932, 536870922, 1572933, 536870922, 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, 2, 1638428, 536870922, 1638429, 536870922, 1638430, 536870922, 1638431, 536870922, 1638432, 536870922, 1638433, 536870922, 1638434, 536870922, 1638435, 536870922, 1638436, 536870922, 1638437, 536870922, 1638438, 536870922, 1638439, 4, 1638440, 12, 1638452, 536870914, 1638453, 536870922, 1638454, 536870922, 1638455, 536870922, 1638456, 536870922, 1638457, 536870922, 1638458, 536870922, 1638459, 536870922, 1638460, 536870922, 1638461, 536870922, 1638462, 536870922, 1638463, 536870922, 1638464, 536870922, 1638465, 536870922, 1638466, 536870922, 1638467, 536870922, 1638468, 536870922, 1638469, 536870922, 1703964, 536870922, 1703965, 536870922, 1703966, 536870922, 1703967, 536870922, 1703968, 536870922, 1703969, 536870922, 1703970, 536870922, 1703971, 536870922, 1703972, 536870922, 1703973, 536870922, 1703974, 536870922, 1703975, 536870922, 1703976, 4, 1703977, 12, 1703988, 536870914, 1703989, 536870922, 1703990, 536870922, 1703991, 536870922, 1703992, 536870922, 1703993, 536870922, 1703994, 536870922, 1703995, 536870922, 1703996, 536870922, 1703997, 536870922, 1703998, 536870922, 1703999, 536870922, 1704000, 536870922, 1704001, 536870922, 1704002, 536870922, 1704003, 536870922, 1704004, 536870922, 1704005, 536870922, 1769499, 536870922, 1769500, 536870922, 1769501, 536870922, 1769502, 536870922, 1769503, 536870922, 1769504, 536870922, 1769505, 536870922, 1769506, 536870922, 1769507, 536870922, 1769508, 536870922, 1769509, 536870922, 1769510, 536870922, 1769511, 536870922, 1769512, 536870922, 1769513, 4, 1769514, 12, 1769524, 536870914, 1769525, 536870922, 1769526, 536870922, 1769527, 536870922, 1769528, 536870922, 1769529, 536870922, 1769530, 536870922, 1769531, 536870922, 1769532, 536870922, 1769533, 536870922, 1769534, 536870922, 1769535, 536870922, 1769536, 536870922, 1769537, 536870922, 1769538, 536870922, 1769539, 536870922, 1769540, 536870922, 1769541, 536870922, 1835035, 536870922, 1835036, 536870922, 1835037, 536870922, 1835038, 536870922, 1835039, 536870922, 1835040, 536870922, 1835041, 536870922, 1835042, 536870922, 1835043, 536870922, 1835044, 536870922, 1835045, 536870922, 1835046, 536870922, 1835047, 536870922, 1835048, 536870922, 1835049, 536870922, 1835050, 4, 1835051, 12, 1835060, 536870914, 1835061, 536870922, 1835062, 536870922, 1835063, 536870922, 1835064, 536870922, 1835065, 536870922, 1835066, 536870922, 1835067, 536870922, 1835068, 536870922, 1835069, 536870922, 1835070, 536870922, 1835071, 536870922, 1835072, 536870922, 1835073, 536870922, 1835074, 536870922, 1835075, 536870922, 1835076, 536870922, 1835077, 536870922, 1900571, 536870922, 1900572, 536870922, 1900573, 536870922, 1900574, 536870922, 1900575, 536870922, 1900576, 536870922, 1900577, 536870922, 1900578, 536870922, 1900579, 536870922, 1900580, 536870922, 1900581, 536870922, 1900582, 536870922, 1900583, 536870922, 1900584, 536870922, 1900585, 536870922, 1900586, 536870922, 1900587, 4, 1900588, 14, 1900589, 14, 1900590, 14, 1900591, 14, 1900592, 14, 1900593, 14, 1900594, 14, 1900595, 14, 1900596, 536870916, 1900597, 536870922, 1900598, 536870922, 1900599, 536870922, 1900600, 536870922, 1900601, 536870922, 1900602, 536870922, 1900603, 536870922, 1900604, 536870922, 1900605, 536870922, 1900606, 536870922, 1900607, 536870922, 1900608, 536870922, 1900609, 536870922, 1900610, 536870922, 1900611, 536870922, 1900612, 536870922, 1900613, 536870922, 1966107, 536870922, 1966108, 536870922, 1966109, 536870922, 1966110, 536870922, 1966111, 536870922, 1966112, 536870922, 1966113, 536870922, 1966114, 536870922, 1966115, 536870922, 1966116, 536870922, 1966117, 536870922, 1966118, 536870922, 1966119, 536870922, 1966120, 536870922, 1966121, 536870922, 1966122, 536870922, 1966123, 536870922, 1966124, 536870922, 1966125, 536870922, 1966126, 536870922, 1966127, 536870922, 1966128, 536870922, 1966129, 536870922, 1966130, 536870922, 1966131, 536870922, 1966132, 536870922, 1966133, 536870922, 1966134, 536870922, 1966135, 536870922, 1966136, 536870922, 1966137, 536870922, 1966138, 536870922, 1966139, 536870922, 1966140, 536870922, 1966141, 536870922, 1966142, 536870922, 1966143, 536870922, 1966144, 536870922, 1966145, 536870922, 1966146, 536870922, 1966147, 536870922, 1966148, 536870922, 1966149, 536870922, 2031643, 536870922, 2031644, 536870922, 2031645, 536870922, 2031646, 536870922, 2031647, 536870922, 2031648, 536870922, 2031649, 536870922, 2031650, 536870922, 2031651, 536870922, 2031652, 536870922, 2031653, 536870922, 2031654, 536870922, 2031655, 536870922, 2031656, 536870922, 2031657, 536870922, 2031658, 536870922, 2031659, 536870922, 2031660, 536870922, 2031661, 536870922, 2031662, 536870922, 2031663, 536870922, 2031664, 536870922, 2031665, 536870922, 2031666, 536870922, 2031667, 536870922, 2031668, 536870922, 2031669, 536870922, 2031670, 536870922, 2031671, 536870922, 2031672, 536870922, 2031673, 536870922, 2031674, 536870922, 2031675, 536870922, 2031676, 536870922, 2031677, 536870922, 2031678, 536870922, 2031679, 536870922, 2031680, 536870922, 2031681, 536870922, 2031682, 536870922, 2031683, 536870922, 2031684, 536870922, 2031685, 536870922, 2097179, 536870922, 2097180, 536870922, 2097181, 536870922, 2097182, 536870922, 2097183, 536870922, 2097184, 536870922, 2097185, 536870922, 2097186, 536870922, 2097187, 536870922, 2097188, 536870922, 2097189, 536870922, 2097190, 536870922, 2097191, 536870922, 2097192, 536870922, 2097193, 536870922, 2097194, 536870922, 2097195, 536870922, 2097196, 536870922, 2097197, 536870922, 2097198, 536870922, 2097199, 536870922, 2097200, 536870922, 2097201, 536870922, 2097202, 536870922, 2097203, 536870922, 2097204, 536870922, 2097205, 536870922, 2097206, 536870922, 2097207, 536870922, 2097208, 536870922, 2097209, 536870922, 2097210, 536870922, 2097211, 536870922, 2097212, 536870922, 2097213, 536870922, 2097214, 536870922, 2097215, 536870922, 2097216, 536870922, 2097217, 536870922, 2097218, 536870922, 2097219, 536870922, 2097220, 536870922, 2097221, 536870922, 2162716, 536870922, 2162717, 536870922, 2162718, 536870922, 2162719, 536870922, 2162720, 536870922, 2162721, 536870922, 2162722, 536870922, 2162723, 536870922, 2162724, 536870922, 2162725, 536870922, 2162726, 536870922, 2162727, 536870922, 2162728, 536870922, 2162729, 536870922, 2162730, 536870922, 2162731, 536870922, 2162732, 536870922, 2162733, 536870922, 2162734, 536870922, 2162735, 536870922, 2162736, 536870922, 2162737, 536870922, 2162738, 536870922, 2162739, 536870922, 2162740, 536870922, 2162741, 536870922, 2162742, 536870922, 2162743, 536870922, 2162744, 536870922, 2162745, 536870922, 2162746, 536870922, 2162747, 536870922, 2162748, 536870922, 2162749, 536870922, 2162750, 536870922, 2162751, 536870922, 2162752, 536870922, 2162753, 536870922, 2162754, 536870922, 2162755, 536870922, 2162756, 536870922, 2162757, 536870922, 2228252, 536870922, 2228253, 536870922, 2228254, 536870922, 2228255, 536870922, 2228256, 536870922, 2228257, 536870922, 2228258, 536870922, 2228259, 536870922, 2228260, 536870922, 2228261, 536870922, 2228262, 536870922, 2228263, 536870922, 2228264, 536870922, 2228265, 536870922, 2228266, 536870922, 2228267, 536870922, 2228268, 536870922, 2228269, 536870922, 2228270, 536870922, 2228271, 536870922, 2228272, 536870922, 2228273, 536870922, 2228274, 536870922, 2228275, 536870922, 2228276, 536870922, 2228277, 536870922, 2228278, 536870922, 2228279, 536870922, 2228280, 536870922, 2228281, 536870922, 2228282, 536870922, 2228283, 536870922, 2228284, 536870922, 2228285, 536870922, 2228286, 536870922, 2228287, 536870922, 2228288, 536870922, 2228289, 536870922, 2228290, 536870922, 2228291, 536870922, 2228292, 536870922, 2228293, 536870922, 2293788, 536870922, 2293789, 536870922, 2293790, 536870922, 2293791, 536870922, 2293792, 536870922, 2293793, 536870922, 2293794, 536870922, 2293795, 536870922, 2293796, 536870922, 2293797, 536870922, 2293798, 536870922, 2293799, 536870922, 2293800, 536870922, 2293801, 536870922, 2293802, 536870922, 2293803, 536870922, 2293804, 536870922, 2293805, 536870922, 2293806, 536870922, 2293807, 536870922, 2293808, 536870922, 2293809, 536870922, 2293810, 536870922, 2293811, 536870922, 2293812, 536870922, 2293813, 536870922, 2293814, 536870922, 2293815, 536870922, 2293816, 536870922, 2293817, 536870922, 2293818, 536870922, 2293819, 536870922, 2293820, 536870922, 2293821, 536870922, 2293822, 536870922, 2293823, 536870922, 2293824, 536870922, 2293825, 536870922, 2293826, 536870922, 2293827, 536870922, 2293828, 536870922, 2293829, 536870922, 2293830, 536870922, 2359324, 536870922, 2359325, 536870922, 2359326, 536870922, 2359327, 536870922, 2359328, 536870922, 2359329, 536870922, 2359330, 536870922, 2359331, 536870922, 2359332, 536870922, 2359333, 536870922, 2359334, 536870922, 2359335, 536870922, 2359336, 536870922, 2359337, 536870922, 2359338, 536870922, 2359339, 536870922, 2359340, 536870922, 2359341, 536870922, 2359342, 536870922, 2359343, 536870922, 2359344, 536870922, 2359345, 536870922, 2359346, 536870922, 2359347, 536870922, 2359348, 536870922, 2359349, 536870922, 2359350, 536870922, 2359351, 536870922, 2359352, 536870922, 2359353, 536870922, 2359354, 536870922, 2359355, 536870922, 2359356, 536870922, 2359357, 536870922, 2359358, 536870922, 2359359, 536870922, 2359360, 536870922, 2359361, 536870922, 2359362, 536870922, 2359363, 536870922, 2359364, 536870922, 2359365, 536870922, 2359366, 536870922, 2424860, 536870922, 2424861, 536870922, 2424862, 536870922, 2424863, 536870922, 2424864, 536870922, 2424865, 536870922, 2424866, 536870922, 2424867, 536870922, 2424868, 536870922, 2424869, 536870922, 2424870, 536870922, 2424871, 536870922, 2424872, 536870922, 2424873, 536870922, 2424874, 536870922, 2424875, 536870922, 2424876, 536870922, 2424877, 536870922, 2424878, 536870922, 2424879, 536870922, 2424880, 536870922, 2424881, 536870922, 2424882, 536870922, 2424883, 536870922, 2424884, 536870922, 2424885, 536870922, 2424886, 536870922, 2424887, 536870922, 2424888, 536870922, 2424889, 536870922, 2424890, 536870922, 2424891, 536870922, 2424892, 536870922, 2424893, 536870922, 2424894, 536870922, 2424895, 536870922, 2424896, 536870922, 2424897, 536870922, 2424898, 536870922, 2424899, 536870922, 2424900, 536870922, 2424901, 536870922, 2424902, 536870922, 2490397, 536870922, 2490398, 536870922, 2490399, 536870922, 2490400, 536870922, 2490401, 536870922, 2490402, 536870922, 2490403, 536870922, 2490404, 536870922, 2490405, 536870922, 2490406, 536870922, 2490407, 536870922, 2490408, 536870922, 2490409, 536870922, 2490410, 536870922, 2490411, 536870922, 2490412, 536870922, 2490413, 536870922, 2490414, 536870922, 2490415, 536870922, 2490416, 536870922, 2490417, 536870922, 2490418, 536870922, 2490419, 536870922, 2490420, 536870922, 2490421, 536870922, 2490422, 536870922, 2490423, 536870922, 2490424, 536870922, 2490425, 536870922, 2490426, 536870922, 2490427, 536870922, 2490428, 536870922, 2490429, 536870922, 2490430, 536870922, 2490431, 536870922, 2490432, 536870922, 2490433, 536870922, 2490434, 536870922, 2490435, 536870922, 2490436, 536870922, 2490437, 536870922, 2555933, 536870922, 2555934, 536870922, 2555935, 536870922, 2555936, 536870922, 2555937, 536870922, 2555938, 536870922, 2555939, 536870922, 2555940, 536870922, 2555941, 536870922, 2555942, 536870922, 2555943, 536870922, 2555944, 536870922, 2555945, 536870922, 2555946, 536870922, 2555947, 536870922, 2555948, 536870922, 2555949, 536870922, 2555950, 536870922, 2555951, 536870922, 2555952, 536870922, 2555953, 536870922, 2555954, 536870922, 2555955, 536870922, 2555956, 536870922, 2555957, 536870922, 2555958, 536870922, 2555959, 536870922, 2555960, 536870922, 2555961, 536870922, 2555962, 536870922, 2555963, 536870922, 2555964, 536870922, 2555965, 536870922, 2555966, 536870922, 2555967, 536870922, 2555968, 536870922, 2555969, 536870922, 2555970, 536870922, 2555971, 536870922, 2555972, 536870922, 2555973, 536870922, 2621469, 536870922, 2621470, 536870922, 2621471, 536870922, 2621472, 536870922, 2621473, 536870922, 2621474, 536870922, 2621475, 536870922, 2621476, 536870922, 2621477, 536870922, 2621478, 536870922, 2621479, 536870922, 2621480, 536870922, 2621481, 536870922, 2621482, 536870922, 2621483, 536870922, 2621484, 536870922, 2621485, 536870922, 2621486, 536870922, 2621487, 536870922, 2621488, 536870922, 2621489, 536870922, 2621490, 536870922, 2621491, 536870922, 2621492, 536870922, 2621493, 536870922, 2621494, 536870922, 2621495, 536870922, 2621496, 536870922, 2621497, 536870922, 2621498, 536870922, 2621499, 536870922, 2621500, 536870922, 2621501, 536870922, 2621502, 536870922, 2621503, 536870922, 2621504, 536870922, 2621505, 536870922, 2621506, 536870922, 2621507, 536870922, 2621508, 536870922, 2687006, 536870922, 2687007, 536870922, 2687008, 536870922, 2687009, 536870922, 2687010, 536870922, 2687011, 536870922, 2687012, 536870922, 2687013, 536870922, 2687014, 536870922, 2687015, 536870922, 2687016, 536870922, 2687017, 536870922, 2687018, 536870922, 2687019, 536870922, 2687020, 536870922, 2687021, 536870922, 2687022, 536870922, 2687023, 536870922, 2687024, 536870922, 2687025, 536870922, 2687026, 536870922, 2687027, 536870922, 2687028, 536870922, 2687029, 536870922, 2687030, 536870922, 2687031, 536870922, 2687032, 536870922, 2687033, 536870922, 2687034, 536870922, 2687035, 536870922, 2687036, 536870922, 2687037, 536870922, 2687038, 536870922, 2687039, 536870922, 2687040, 536870922, 2687041, 536870922, 2687042, 536870922, 2687043, 536870922, 2687044, 536870922, 2752543, 536870922, 2752544, 536870922, 2752545, 536870922, 2752546, 536870922, 2752547, 536870922, 2752548, 536870922, 2752549, 536870922, 2752550, 536870922, 2752551, 536870922, 2752552, 536870922, 2752553, 536870922, 2752554, 536870922, 2752555, 536870922, 2752556, 536870922, 2752557, 536870922, 2752558, 536870922, 2752559, 536870922, 2752560, 536870922, 2752561, 536870922, 2752562, 536870922, 2752563, 536870922, 2752564, 536870922, 2752565, 536870922, 2752566, 536870922, 2752567, 536870922, 2752568, 536870922, 2752569, 536870922, 2752570, 536870922, 2752571, 536870922, 2752572, 536870922, 2752573, 536870922, 2752574, 536870922, 2752575, 536870922, 2752576, 536870922, 2752577, 536870922, 2752578, 536870922, 2752579, 536870922, 2818083, 536870922, 2818084, 536870922, 2818085, 536870922, 2818086, 536870922, 2818087, 536870922, 2818088, 536870922, 2818089, 536870922, 2818090, 536870922, 2818091, 536870922, 2818092, 536870922, 2818093, 536870922, 2818094, 536870922, 2818095, 536870922, 2818096, 536870922, 2818097, 536870922, 2818098, 536870922, 2818099, 536870922, 2818100, 536870922, 2818101, 536870922, 2818102, 536870922, 2818103, 536870922, 2818104, 536870922, 2818105, 536870922, 2818106, 536870922, 2818107, 536870922, 2818108, 536870922, 2818109, 536870922, 2818110, 536870922, 2818111, 536870922, 2818112, 536870922, 2818113, 536870922 ) +tile_data = PoolIntArray( 0, 2, 65536, 2, 131072, 2, 196608, 2, 196626, 9, 262144, 2, 262162, 8, 327680, 2, 327697, 536870921, 327698, 7, 393216, 2, 393234, 7, 393276, 536870914, 393277, 536870922, 393278, 536870922, 393279, 536870922, 393280, 536870922, 393281, 536870922, 393282, 536870922, 393283, 536870922, 393284, 536870922, 393285, 536870922, 458752, 2, 458770, 8, 458812, 536870914, 458813, 536870922, 458814, 536870922, 458815, 536870922, 458816, 536870922, 458817, 536870922, 458818, 536870922, 458819, 536870922, 458820, 536870922, 458821, 536870922, 524288, 4, 524289, 1, 524348, 536870914, 524349, 536870922, 524350, 536870922, 524351, 536870922, 524352, 536870922, 524353, 536870922, 524354, 536870922, 524355, 536870922, 524356, 536870922, 524357, 536870922, 589824, 10, 589825, 13, 589860, 536870914, 589861, 10, 589862, 10, 589863, 10, 589864, 10, 589865, 10, 589866, 10, 589867, 10, 589868, 10, 589869, 2, 589884, 536870914, 589885, 536870922, 589886, 536870922, 589887, 536870922, 589888, 536870922, 589889, 536870922, 589890, 536870922, 589891, 536870922, 589892, 536870922, 589893, 536870922, 655360, 2, 655396, 536870914, 655397, 10, 655398, 10, 655399, 10, 655400, 10, 655401, 10, 655402, 10, 655403, 10, 655404, 10, 655405, 2, 655420, 536870914, 655421, 536870922, 655422, 536870922, 655423, 536870922, 655424, 536870922, 655425, 536870922, 655426, 536870922, 655427, 536870922, 655428, 536870922, 655429, 536870922, 720896, 2, 720932, 536870914, 720933, 10, 720934, 10, 720935, 10, 720936, 10, 720937, 10, 720938, 10, 720939, 10, 720940, 10, 720941, 2, 720956, 536870914, 720957, 536870922, 720958, 536870922, 720959, 536870922, 720960, 536870922, 720961, 536870922, 720962, 536870922, 720963, 536870922, 720964, 536870922, 720965, 536870922, 786432, 2, 786437, 9, 786468, 536870914, 786469, 10, 786470, 10, 786471, 10, 786472, 10, 786473, 10, 786474, 10, 786475, 10, 786476, 10, 786477, 2, 786492, 536870914, 786493, 536870922, 786494, 536870922, 786495, 536870922, 786496, 536870922, 786497, 536870922, 786498, 536870922, 786499, 536870922, 786500, 536870922, 786501, 536870922, 851968, 2, 851973, 7, 852004, 536870914, 852005, 10, 852006, 10, 852007, 10, 852008, 10, 852009, 10, 852010, 10, 852011, 10, 852012, 10, 852013, 2, 852028, 536870914, 852029, 536870922, 852030, 536870922, 852031, 536870922, 852032, 536870922, 852033, 536870922, 852034, 536870922, 852035, 536870922, 852036, 536870922, 852037, 536870922, 917504, 2, 917506, 9, 917509, 7, 917512, 536870921, 917540, 536870914, 917541, 10, 917542, 10, 917543, 10, 917544, 10, 917545, 10, 917546, 10, 917547, 10, 917548, 10, 917549, 2, 917564, 536870914, 917565, 536870922, 917566, 536870922, 917567, 536870922, 917568, 536870922, 917569, 536870922, 917570, 536870922, 917571, 536870922, 917572, 536870922, 917573, 536870922, 983040, 2, 983042, 7, 983045, 7, 983048, 536870920, 983076, 536870914, 983077, 10, 983078, 10, 983079, 10, 983080, 10, 983081, 10, 983082, 10, 983083, 10, 983084, 10, 983085, 2, 983100, 536870914, 983101, 536870922, 983102, 536870922, 983103, 536870922, 983104, 536870922, 983105, 536870922, 983106, 536870922, 983107, 536870922, 983108, 536870922, 983109, 536870922, 1048576, 2, 1048578, 8, 1048581, 8, 1048584, 536870919, 1048612, 536870914, 1048613, 10, 1048614, 10, 1048615, 10, 1048616, 10, 1048617, 10, 1048618, 10, 1048619, 10, 1048620, 10, 1048621, 2, 1048636, 536870914, 1048637, 536870922, 1048638, 536870922, 1048639, 536870922, 1048640, 536870922, 1048641, 536870922, 1048642, 536870922, 1048643, 536870922, 1048644, 536870922, 1048645, 536870922, 1114112, 4, 1114113, 0, 1114114, 6, 1114115, 0, 1114116, 0, 1114117, 6, 1114118, 1, 1114120, 536870919, 1114127, 536870913, 1114128, 0, 1114129, 15, 1114139, 536870927, 1114140, 0, 1114141, 536870912, 1114142, 536870912, 1114143, 536870912, 1114144, 15, 1114148, 536870925, 1114149, 536870923, 1114150, 536870923, 1114151, 536870923, 1114152, 536870923, 1114153, 536870923, 1114154, 536870923, 1114155, 536870923, 1114156, 536870923, 1114157, 13, 1114172, 536870914, 1114173, 536870922, 1114174, 536870922, 1114175, 536870922, 1114176, 536870922, 1114177, 536870922, 1114178, 536870922, 1114179, 536870922, 1114180, 536870922, 1114181, 536870922, 1179648, 10, 1179649, 10, 1179650, 10, 1179651, 10, 1179652, 10, 1179653, 10, 1179654, 2, 1179656, 536870919, 1179663, 536870914, 1179664, 2, 1179676, 536870914, 1179677, 536870922, 1179678, 536870922, 1179679, 2, 1179700, 536870913, 1179701, 536870912, 1179702, 536870912, 1179703, 536870912, 1179704, 536870912, 1179705, 536870912, 1179706, 536870912, 1179707, 536870912, 1179708, 536870916, 1179709, 536870922, 1179710, 536870922, 1179711, 536870922, 1179712, 536870922, 1179713, 536870922, 1179714, 536870922, 1179715, 536870922, 1179716, 536870922, 1179717, 536870922, 1245184, 10, 1245185, 10, 1245186, 10, 1245187, 10, 1245188, 10, 1245189, 10, 1245190, 4, 1245191, 1, 1245192, 536870919, 1245199, 536870914, 1245200, 2, 1245212, 536870914, 1245213, 536870922, 1245214, 536870922, 1245215, 2, 1245236, 536870914, 1245237, 536870922, 1245238, 536870922, 1245239, 536870922, 1245240, 536870922, 1245241, 536870922, 1245242, 536870922, 1245243, 536870922, 1245244, 536870922, 1245245, 536870922, 1245246, 536870922, 1245247, 536870922, 1245248, 536870922, 1245249, 536870922, 1245250, 536870922, 1245251, 536870922, 1245252, 536870922, 1245253, 536870922, 1310720, 10, 1310721, 10, 1310722, 10, 1310723, 10, 1310724, 10, 1310725, 10, 1310726, 10, 1310727, 4, 1310728, 1, 1310735, 536870914, 1310736, 2, 1310748, 536870914, 1310749, 536870922, 1310750, 536870922, 1310751, 2, 1310772, 536870914, 1310773, 536870922, 1310774, 536870922, 1310775, 536870922, 1310776, 536870922, 1310777, 536870922, 1310778, 536870922, 1310779, 536870922, 1310780, 536870922, 1310781, 536870922, 1310782, 536870922, 1310783, 536870922, 1310784, 536870922, 1310785, 536870922, 1310786, 536870922, 1310787, 536870922, 1310788, 536870922, 1310789, 536870922, 1376256, 10, 1376257, 10, 1376258, 10, 1376259, 10, 1376260, 10, 1376261, 10, 1376262, 10, 1376263, 10, 1376264, 4, 1376265, 0, 1376266, 0, 1376267, 0, 1376268, 0, 1376269, 0, 1376270, 0, 1376271, 536870916, 1376272, 2, 1376284, 536870914, 1376285, 536870922, 1376286, 536870922, 1376287, 2, 1376308, 536870914, 1376309, 536870922, 1376310, 536870922, 1376311, 536870922, 1376312, 536870922, 1376313, 536870922, 1376314, 536870922, 1376315, 536870922, 1376316, 536870922, 1376317, 536870922, 1376318, 536870922, 1376319, 536870922, 1376320, 536870922, 1376321, 536870922, 1376322, 536870922, 1376323, 536870922, 1376324, 536870922, 1376325, 536870922, 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, 2, 1441820, 536870914, 1441821, 536870922, 1441822, 536870922, 1441823, 2, 1441844, 536870914, 1441845, 536870922, 1441846, 536870922, 1441847, 536870922, 1441848, 536870922, 1441849, 536870922, 1441850, 536870922, 1441851, 536870922, 1441852, 536870922, 1441853, 536870922, 1441854, 536870922, 1441855, 536870922, 1441856, 536870922, 1441857, 536870922, 1441858, 536870922, 1441859, 536870922, 1441860, 536870922, 1441861, 536870922, 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, 2, 1507356, 536870914, 1507357, 536870922, 1507358, 536870922, 1507359, 4, 1507360, 0, 1507361, 0, 1507362, 0, 1507363, 0, 1507364, 0, 1507365, 0, 1507366, 12, 1507380, 536870914, 1507381, 536870922, 1507382, 536870922, 1507383, 536870922, 1507384, 536870922, 1507385, 536870922, 1507386, 536870922, 1507387, 536870922, 1507388, 536870922, 1507389, 536870922, 1507390, 536870922, 1507391, 536870922, 1507392, 536870922, 1507393, 536870922, 1507394, 536870922, 1507395, 536870922, 1507396, 536870922, 1507397, 536870922, 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, 2, 1572892, 536870922, 1572893, 536870922, 1572894, 536870922, 1572895, 536870922, 1572896, 536870922, 1572897, 536870922, 1572898, 536870922, 1572899, 536870922, 1572900, 536870922, 1572901, 536870922, 1572902, 4, 1572903, 12, 1572916, 536870914, 1572917, 536870922, 1572918, 536870922, 1572919, 536870922, 1572920, 536870922, 1572921, 536870922, 1572922, 536870922, 1572923, 536870922, 1572924, 536870922, 1572925, 536870922, 1572926, 536870922, 1572927, 536870922, 1572928, 536870922, 1572929, 536870922, 1572930, 536870922, 1572931, 536870922, 1572932, 536870922, 1572933, 536870922, 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, 2, 1638428, 536870922, 1638429, 536870922, 1638430, 536870922, 1638431, 536870922, 1638432, 536870922, 1638433, 536870922, 1638434, 536870922, 1638435, 536870922, 1638436, 536870922, 1638437, 536870922, 1638438, 536870922, 1638439, 4, 1638440, 12, 1638452, 536870914, 1638453, 536870922, 1638454, 536870922, 1638455, 536870922, 1638456, 536870922, 1638457, 536870922, 1638458, 536870922, 1638459, 536870922, 1638460, 536870922, 1638461, 536870922, 1638462, 536870922, 1638463, 536870922, 1638464, 536870922, 1638465, 536870922, 1638466, 536870922, 1638467, 536870922, 1638468, 536870922, 1638469, 536870922, 1703964, 536870922, 1703965, 536870922, 1703966, 536870922, 1703967, 536870922, 1703968, 536870922, 1703969, 536870922, 1703970, 536870922, 1703971, 536870922, 1703972, 536870922, 1703973, 536870922, 1703974, 536870922, 1703975, 536870922, 1703976, 4, 1703977, 12, 1703988, 536870914, 1703989, 536870922, 1703990, 536870922, 1703991, 536870922, 1703992, 536870922, 1703993, 536870922, 1703994, 536870922, 1703995, 536870922, 1703996, 536870922, 1703997, 536870922, 1703998, 536870922, 1703999, 536870922, 1704000, 536870922, 1704001, 536870922, 1704002, 536870922, 1704003, 536870922, 1704004, 536870922, 1704005, 536870922, 1769499, 536870922, 1769500, 536870922, 1769501, 536870922, 1769502, 536870922, 1769503, 536870922, 1769504, 536870922, 1769505, 536870922, 1769506, 536870922, 1769507, 536870922, 1769508, 536870922, 1769509, 536870922, 1769510, 536870922, 1769511, 536870922, 1769512, 536870922, 1769513, 4, 1769514, 12, 1769524, 536870914, 1769525, 536870922, 1769526, 536870922, 1769527, 536870922, 1769528, 536870922, 1769529, 536870922, 1769530, 536870922, 1769531, 536870922, 1769532, 536870922, 1769533, 536870922, 1769534, 536870922, 1769535, 536870922, 1769536, 536870922, 1769537, 536870922, 1769538, 536870922, 1769539, 536870922, 1769540, 536870922, 1769541, 536870922, 1835035, 536870922, 1835036, 536870922, 1835037, 536870922, 1835038, 536870922, 1835039, 536870922, 1835040, 536870922, 1835041, 536870922, 1835042, 536870922, 1835043, 536870922, 1835044, 536870922, 1835045, 536870922, 1835046, 536870922, 1835047, 536870922, 1835048, 536870922, 1835049, 536870922, 1835050, 4, 1835051, 12, 1835060, 536870914, 1835061, 536870922, 1835062, 536870922, 1835063, 536870922, 1835064, 536870922, 1835065, 536870922, 1835066, 536870922, 1835067, 536870922, 1835068, 536870922, 1835069, 536870922, 1835070, 536870922, 1835071, 536870922, 1835072, 536870922, 1835073, 536870922, 1835074, 536870922, 1835075, 536870922, 1835076, 536870922, 1835077, 536870922, 1900571, 536870922, 1900572, 536870922, 1900573, 536870922, 1900574, 536870922, 1900575, 536870922, 1900576, 536870922, 1900577, 536870922, 1900578, 536870922, 1900579, 536870922, 1900580, 536870922, 1900581, 536870922, 1900582, 536870922, 1900583, 536870922, 1900584, 536870922, 1900585, 536870922, 1900586, 536870922, 1900587, 4, 1900588, 14, 1900589, 14, 1900590, 14, 1900591, 14, 1900592, 14, 1900593, 14, 1900594, 14, 1900595, 14, 1900596, 536870916, 1900597, 536870922, 1900598, 536870922, 1900599, 536870922, 1900600, 536870922, 1900601, 536870922, 1900602, 536870922, 1900603, 536870922, 1900604, 536870922, 1900605, 536870922, 1900606, 536870922, 1900607, 536870922, 1900608, 536870922, 1900609, 536870922, 1900610, 536870922, 1900611, 536870922, 1900612, 536870922, 1900613, 536870922, 1966107, 536870922, 1966108, 536870922, 1966109, 536870922, 1966110, 536870922, 1966111, 536870922, 1966112, 536870922, 1966113, 536870922, 1966114, 536870922, 1966115, 536870922, 1966116, 536870922, 1966117, 536870922, 1966118, 536870922, 1966119, 536870922, 1966120, 536870922, 1966121, 536870922, 1966122, 536870922, 1966123, 536870922, 1966124, 536870922, 1966125, 536870922, 1966126, 536870922, 1966127, 536870922, 1966128, 536870922, 1966129, 536870922, 1966130, 536870922, 1966131, 536870922, 1966132, 536870922, 1966133, 536870922, 1966134, 536870922, 1966135, 536870922, 1966136, 536870922, 1966137, 536870922, 1966138, 536870922, 1966139, 536870922, 1966140, 536870922, 1966141, 536870922, 1966142, 536870922, 1966143, 536870922, 1966144, 536870922, 1966145, 536870922, 1966146, 536870922, 1966147, 536870922, 1966148, 536870922, 1966149, 536870922, 2031643, 536870922, 2031644, 536870922, 2031645, 536870922, 2031646, 536870922, 2031647, 536870922, 2031648, 536870922, 2031649, 536870922, 2031650, 536870922, 2031651, 536870922, 2031652, 536870922, 2031653, 536870922, 2031654, 536870922, 2031655, 536870922, 2031656, 536870922, 2031657, 536870922, 2031658, 536870922, 2031659, 536870922, 2031660, 536870922, 2031661, 536870922, 2031662, 536870922, 2031663, 536870922, 2031664, 536870922, 2031665, 536870922, 2031666, 536870922, 2031667, 536870922, 2031668, 536870922, 2031669, 536870922, 2031670, 536870922, 2031671, 536870922, 2031672, 536870922, 2031673, 536870922, 2031674, 536870922, 2031675, 536870922, 2031676, 536870922, 2031677, 536870922, 2031678, 536870922, 2031679, 536870922, 2031680, 536870922, 2031681, 536870922, 2031682, 536870922, 2031683, 536870922, 2031684, 536870922, 2031685, 536870922, 2097179, 536870922, 2097180, 536870922, 2097181, 536870922, 2097182, 536870922, 2097183, 536870922, 2097184, 536870922, 2097185, 536870922, 2097186, 536870922, 2097187, 536870922, 2097188, 536870922, 2097189, 536870922, 2097190, 536870922, 2097191, 536870922, 2097192, 536870922, 2097193, 536870922, 2097194, 536870922, 2097195, 536870922, 2097196, 536870922, 2097197, 536870922, 2097198, 536870922, 2097199, 536870922, 2097200, 536870922, 2097201, 536870922, 2097202, 536870922, 2097203, 536870922, 2097204, 536870922, 2097205, 536870922, 2097206, 536870922, 2097207, 536870922, 2097208, 536870922, 2097209, 536870922, 2097210, 536870922, 2097211, 536870922, 2097212, 536870922, 2097213, 536870922, 2097214, 536870922, 2097215, 536870922, 2097216, 536870922, 2097217, 536870922, 2097218, 536870922, 2097219, 536870922, 2097220, 536870922, 2097221, 536870922, 2162716, 536870922, 2162717, 536870922, 2162718, 536870922, 2162719, 536870922, 2162720, 536870922, 2162721, 536870922, 2162722, 536870922, 2162723, 536870922, 2162724, 536870922, 2162725, 536870922, 2162726, 536870922, 2162727, 536870922, 2162728, 536870922, 2162729, 536870922, 2162730, 536870922, 2162731, 536870922, 2162732, 536870922, 2162733, 536870922, 2162734, 536870922, 2162735, 536870922, 2162736, 536870922, 2162737, 536870922, 2162738, 536870922, 2162739, 536870922, 2162740, 536870922, 2162741, 536870922, 2162742, 536870922, 2162743, 536870922, 2162744, 536870922, 2162745, 536870922, 2162746, 536870922, 2162747, 536870922, 2162748, 536870922, 2162749, 536870922, 2162750, 536870922, 2162751, 536870922, 2162752, 536870922, 2162753, 536870922, 2162754, 536870922, 2162755, 536870922, 2162756, 536870922, 2162757, 536870922, 2228252, 536870922, 2228253, 536870922, 2228254, 536870922, 2228255, 536870922, 2228256, 536870922, 2228257, 536870922, 2228258, 536870922, 2228259, 536870922, 2228260, 536870922, 2228261, 536870922, 2228262, 536870922, 2228263, 536870922, 2228264, 536870922, 2228265, 536870922, 2228266, 536870922, 2228267, 536870922, 2228268, 536870922, 2228269, 536870922, 2228270, 536870922, 2228271, 536870922, 2228272, 536870922, 2228273, 536870922, 2228274, 536870922, 2228275, 536870922, 2228276, 536870922, 2228277, 536870922, 2228278, 536870922, 2228279, 536870922, 2228280, 536870922, 2228281, 536870922, 2228282, 536870922, 2228283, 536870922, 2228284, 536870922, 2228285, 536870922, 2228286, 536870922, 2228287, 536870922, 2228288, 536870922, 2228289, 536870922, 2228290, 536870922, 2228291, 536870922, 2228292, 536870922, 2228293, 536870922, 2293788, 536870922, 2293789, 536870922, 2293790, 536870922, 2293791, 536870922, 2293792, 536870922, 2293793, 536870922, 2293794, 536870922, 2293795, 536870922, 2293796, 536870922, 2293797, 536870922, 2293798, 536870922, 2293799, 536870922, 2293800, 536870922, 2293801, 536870922, 2293802, 536870922, 2293803, 536870922, 2293804, 536870922, 2293805, 536870922, 2293806, 536870922, 2293807, 536870922, 2293808, 536870922, 2293809, 536870922, 2293810, 536870922, 2293811, 536870922, 2293812, 536870922, 2293813, 536870922, 2293814, 536870922, 2293815, 536870922, 2293816, 536870922, 2293817, 536870922, 2293818, 536870922, 2293819, 536870922, 2293820, 536870922, 2293821, 536870922, 2293822, 536870922, 2293823, 536870922, 2293824, 536870922, 2293825, 536870922, 2293826, 536870922, 2293827, 536870922, 2293828, 536870922, 2293829, 536870922, 2293830, 536870922, 2359324, 536870922, 2359325, 536870922, 2359326, 536870922, 2359327, 536870922, 2359328, 536870922, 2359329, 536870922, 2359330, 536870922, 2359331, 536870922, 2359332, 536870922, 2359333, 536870922, 2359334, 536870922, 2359335, 536870922, 2359336, 536870922, 2359337, 536870922, 2359338, 536870922, 2359339, 536870922, 2359340, 536870922, 2359341, 536870922, 2359342, 536870922, 2359343, 536870922, 2359344, 536870922, 2359345, 536870922, 2359346, 536870922, 2359347, 536870922, 2359348, 536870922, 2359349, 536870922, 2359350, 536870922, 2359351, 536870922, 2359352, 536870922, 2359353, 536870922, 2359354, 536870922, 2359355, 536870922, 2359356, 536870922, 2359357, 536870922, 2359358, 536870922, 2359359, 536870922, 2359360, 536870922, 2359361, 536870922, 2359362, 536870922, 2359363, 536870922, 2359364, 536870922, 2359365, 536870922, 2359366, 536870922, 2424860, 536870922, 2424861, 536870922, 2424862, 536870922, 2424863, 536870922, 2424864, 536870922, 2424865, 536870922, 2424866, 536870922, 2424867, 536870922, 2424868, 536870922, 2424869, 536870922, 2424870, 536870922, 2424871, 536870922, 2424872, 536870922, 2424873, 536870922, 2424874, 536870922, 2424875, 536870922, 2424876, 536870922, 2424877, 536870922, 2424878, 536870922, 2424879, 536870922, 2424880, 536870922, 2424881, 536870922, 2424882, 536870922, 2424883, 536870922, 2424884, 536870922, 2424885, 536870922, 2424886, 536870922, 2424887, 536870922, 2424888, 536870922, 2424889, 536870922, 2424890, 536870922, 2424891, 536870922, 2424892, 536870922, 2424893, 536870922, 2424894, 536870922, 2424895, 536870922, 2424896, 536870922, 2424897, 536870922, 2424898, 536870922, 2424899, 536870922, 2424900, 536870922, 2424901, 536870922, 2424902, 536870922, 2490397, 536870922, 2490398, 536870922, 2490399, 536870922, 2490400, 536870922, 2490401, 536870922, 2490402, 536870922, 2490403, 536870922, 2490404, 536870922, 2490405, 536870922, 2490406, 536870922, 2490407, 536870922, 2490408, 536870922, 2490409, 536870922, 2490410, 536870922, 2490411, 536870922, 2490412, 536870922, 2490413, 536870922, 2490414, 536870922, 2490415, 536870922, 2490416, 536870922, 2490417, 536870922, 2490418, 536870922, 2490419, 536870922, 2490420, 536870922, 2490421, 536870922, 2490422, 536870922, 2490423, 536870922, 2490424, 536870922, 2490425, 536870922, 2490426, 536870922, 2490427, 536870922, 2490428, 536870922, 2490429, 536870922, 2490430, 536870922, 2490431, 536870922, 2490432, 536870922, 2490433, 536870922, 2490434, 536870922, 2490435, 536870922, 2490436, 536870922, 2490437, 536870922, 2555933, 536870922, 2555934, 536870922, 2555935, 536870922, 2555936, 536870922, 2555937, 536870922, 2555938, 536870922, 2555939, 536870922, 2555940, 536870922, 2555941, 536870922, 2555942, 536870922, 2555943, 536870922, 2555944, 536870922, 2555945, 536870922, 2555946, 536870922, 2555947, 536870922, 2555948, 536870922, 2555949, 536870922, 2555950, 536870922, 2555951, 536870922, 2555952, 536870922, 2555953, 536870922, 2555954, 536870922, 2555955, 536870922, 2555956, 536870922, 2555957, 536870922, 2555958, 536870922, 2555959, 536870922, 2555960, 536870922, 2555961, 536870922, 2555962, 536870922, 2555963, 536870922, 2555964, 536870922, 2555965, 536870922, 2555966, 536870922, 2555967, 536870922, 2555968, 536870922, 2555969, 536870922, 2555970, 536870922, 2555971, 536870922, 2555972, 536870922, 2555973, 536870922, 2621469, 536870922, 2621470, 536870922, 2621471, 536870922, 2621472, 536870922, 2621473, 536870922, 2621474, 536870922, 2621475, 536870922, 2621476, 536870922, 2621477, 536870922, 2621478, 536870922, 2621479, 536870922, 2621480, 536870922, 2621481, 536870922, 2621482, 536870922, 2621483, 536870922, 2621484, 536870922, 2621485, 536870922, 2621486, 536870922, 2621487, 536870922, 2621488, 536870922, 2621489, 536870922, 2621490, 536870922, 2621491, 536870922, 2621492, 536870922, 2621493, 536870922, 2621494, 536870922, 2621495, 536870922, 2621496, 536870922, 2621497, 536870922, 2621498, 536870922, 2621499, 536870922, 2621500, 536870922, 2621501, 536870922, 2621502, 536870922, 2621503, 536870922, 2621504, 536870922, 2621505, 536870922, 2621506, 536870922, 2621507, 536870922, 2621508, 536870922, 2687006, 536870922, 2687007, 536870922, 2687008, 536870922, 2687009, 536870922, 2687010, 536870922, 2687011, 536870922, 2687012, 536870922, 2687013, 536870922, 2687014, 536870922, 2687015, 536870922, 2687016, 536870922, 2687017, 536870922, 2687018, 536870922, 2687019, 536870922, 2687020, 536870922, 2687021, 536870922, 2687022, 536870922, 2687023, 536870922, 2687024, 536870922, 2687025, 536870922, 2687026, 536870922, 2687027, 536870922, 2687028, 536870922, 2687029, 536870922, 2687030, 536870922, 2687031, 536870922, 2687032, 536870922, 2687033, 536870922, 2687034, 536870922, 2687035, 536870922, 2687036, 536870922, 2687037, 536870922, 2687038, 536870922, 2687039, 536870922, 2687040, 536870922, 2687041, 536870922, 2687042, 536870922, 2687043, 536870922, 2687044, 536870922, 2752543, 536870922, 2752544, 536870922, 2752545, 536870922, 2752546, 536870922, 2752547, 536870922, 2752548, 536870922, 2752549, 536870922, 2752550, 536870922, 2752551, 536870922, 2752552, 536870922, 2752553, 536870922, 2752554, 536870922, 2752555, 536870922, 2752556, 536870922, 2752557, 536870922, 2752558, 536870922, 2752559, 536870922, 2752560, 536870922, 2752561, 536870922, 2752562, 536870922, 2752563, 536870922, 2752564, 536870922, 2752565, 536870922, 2752566, 536870922, 2752567, 536870922, 2752568, 536870922, 2752569, 536870922, 2752570, 536870922, 2752571, 536870922, 2752572, 536870922, 2752573, 536870922, 2752574, 536870922, 2752575, 536870922, 2752576, 536870922, 2752577, 536870922, 2752578, 536870922, 2752579, 536870922, 2818083, 536870922, 2818084, 536870922, 2818085, 536870922, 2818086, 536870922, 2818087, 536870922, 2818088, 536870922, 2818089, 536870922, 2818090, 536870922, 2818091, 536870922, 2818092, 536870922, 2818093, 536870922, 2818094, 536870922, 2818095, 536870922, 2818096, 536870922, 2818097, 536870922, 2818098, 536870922, 2818099, 536870922, 2818100, 536870922, 2818101, 536870922, 2818102, 536870922, 2818103, 536870922, 2818104, 536870922, 2818105, 536870922, 2818106, 536870922, 2818107, 536870922, 2818108, 536870922, 2818109, 536870922, 2818110, 536870922, 2818111, 536870922, 2818112, 536870922, 2818113, 536870922 ) __meta__ = { "_edit_lock_": true } [node name="coins" type="Node" parent="."] -editor/display_folded = true - [node name="coin" parent="coins" instance=ExtResource( 2 )] position = Vector2( 672, 1179 ) @@ -239,6 +237,10 @@ rotation = 0.547997 position = Vector2( 1099.56, 940.804 ) +[node name="one_way_platform13" parent="props" instance=ExtResource( 4 )] + +position = Vector2( 1339.63, 967.879 ) + [node name="one_way_platform1" parent="props" instance=ExtResource( 4 )] position = Vector2( 967.609, 836.547 ) @@ -286,52 +288,66 @@ position = Vector2( 1039.29, 409.746 ) [node name="player" parent="." instance=ExtResource( 5 )] position = Vector2( 251.684, 1045.6 ) +collision/safe_margin = 0.08 [node name="enemies" type="Node" parent="."] +editor/display_folded = true + [node name="enemy 5" parent="enemies" instance=ExtResource( 6 )] position = Vector2( 734.693, 1064.22 ) +collision/safe_margin = 0.08 [node name="enemy 6" parent="enemies" instance=ExtResource( 6 )] position = Vector2( 707.665, 1225.05 ) +collision/safe_margin = 0.08 [node name="enemy 7" parent="enemies" instance=ExtResource( 6 )] position = Vector2( 1125.21, 1053.06 ) +collision/safe_margin = 0.08 [node name="enemy 8" parent="enemies" instance=ExtResource( 6 )] position = Vector2( 1292.11, 1059.24 ) +collision/safe_margin = 0.08 [node name="enemy 9" parent="enemies" instance=ExtResource( 6 )] position = Vector2( 968.927, 766.466 ) +collision/safe_margin = 0.08 [node name="enemy 10" parent="enemies" instance=ExtResource( 6 )] position = Vector2( 3080.34, 1807.61 ) +collision/safe_margin = 0.08 [node name="enemy 11" parent="enemies" instance=ExtResource( 6 )] position = Vector2( 1457.6, 688.741 ) +collision/safe_margin = 0.08 [node name="enemy 12" parent="enemies" instance=ExtResource( 6 )] position = Vector2( 1264.06, 571.713 ) +collision/safe_margin = 0.08 [node name="enemy 13" parent="enemies" instance=ExtResource( 6 )] position = Vector2( 3590.85, 1114.86 ) +collision/safe_margin = 0.08 [node name="enemy 14" parent="enemies" instance=ExtResource( 6 )] position = Vector2( 3546.2, 1356.19 ) +collision/safe_margin = 0.08 [node name="enemy 15" parent="enemies" instance=ExtResource( 6 )] position = Vector2( 2215.3, 1429.39 ) +collision/safe_margin = 0.08 [node name="parallax_bg" parent="." instance=ExtResource( 7 )] diff --git a/2d/platformer/tiles_demo.png.import b/2d/platformer/tiles_demo.png.import new file mode 100644 index 00000000..2c9bc2b2 --- /dev/null +++ b/2d/platformer/tiles_demo.png.import @@ -0,0 +1,23 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/tiles_demo.png-7ca5c7c5c02ab8abe0d585a6a8f086bd.stex" + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=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 +stream=false +size_limit=0 +detect_3d=true diff --git a/old/2d/area_input/input.tscn b/old/2d/area_input/input.tscn index 81c0ed91..16e1d215 100644 --- a/old/2d/area_input/input.tscn +++ b/old/2d/area_input/input.tscn @@ -39,6 +39,7 @@ texture = ExtResource( 2 ) focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 +size_flags/vertical = 0 margin/left = -43.0 margin/top = 71.0 margin/right = 43.0 @@ -77,6 +78,7 @@ texture = ExtResource( 3 ) focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 +size_flags/vertical = 0 margin/left = -43.0 margin/top = 71.0 margin/right = 43.0 @@ -97,11 +99,13 @@ _update_shape_index = -1 focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 +size_flags/vertical = 0 margin/left = 0.0 margin/top = 0.0 margin/right = 40.0 margin/bottom = 13.0 -text = "This demo shows how to use a regular Area2D to get input events, and how to convert the input events to local coordinates of the node.\nUnlike controls, Input on Area2D or PhysicsBody2D nodes only works properly (with scrolling) on canvas layer 0." +text = "This demo shows how to use a regular Area2D to get input events, and how to convert the input events to local coordinates of the node. +Unlike controls, Input on Area2D or PhysicsBody2D nodes only works properly (with scrolling) on canvas layer 0." percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 diff --git a/old/2d/dynamic_collision_shapes/dynamic_colobjs.tscn b/old/2d/dynamic_collision_shapes/dynamic_colobjs.tscn index 61af0b8e..96d7cd92 100644 --- a/old/2d/dynamic_collision_shapes/dynamic_colobjs.tscn +++ b/old/2d/dynamic_collision_shapes/dynamic_colobjs.tscn @@ -44,19 +44,43 @@ step = 0.1 tracks/0/type = "value" tracks/0/path = NodePath("base/circle:transform/pos") tracks/0/interp = 1 -tracks/0/keys = { "cont":true, "times":FloatArray( 0, 2 ), "transitions":FloatArray( 1, 1 ), "values":[ Vector2( 0, 0 ), Vector2( 52.7569, -70.845 ) ] } +tracks/0/imported = false +tracks/0/keys = { +"times": FloatArray( 0, 2 ), +"transitions": FloatArray( 1, 1 ), +"update": 0, +"values": [ Vector2( 0, 0 ), Vector2( 52.7569, -70.845 ) ] +} tracks/1/type = "value" tracks/1/path = NodePath("base/box:transform/pos") tracks/1/interp = 1 -tracks/1/keys = { "cont":true, "times":FloatArray( 0, 2 ), "transitions":FloatArray( 1, 1 ), "values":[ Vector2( 193.173, -2.72076 ), Vector2( 195.894, -72.0999 ) ] } +tracks/1/imported = false +tracks/1/keys = { +"times": FloatArray( 0, 2 ), +"transitions": FloatArray( 1, 1 ), +"update": 0, +"values": [ Vector2( 193.173, -2.72076 ), Vector2( 195.894, -72.0999 ) ] +} tracks/2/type = "value" tracks/2/path = NodePath("base/box:transform/rot") tracks/2/interp = 1 -tracks/2/keys = { "cont":true, "times":FloatArray( 0, 2 ), "transitions":FloatArray( 1, 1 ), "values":[ 0.0, 92.8111 ] } +tracks/2/imported = false +tracks/2/keys = { +"times": FloatArray( 0, 2 ), +"transitions": FloatArray( 1, 1 ), +"update": 0, +"values": [ 0.0, 92.8111 ] +} tracks/3/type = "value" tracks/3/path = NodePath("base/polygon:transform/pos") tracks/3/interp = 1 -tracks/3/keys = { "cont":true, "times":FloatArray( 0, 2 ), "transitions":FloatArray( 1, 1 ), "values":[ Vector2( 382.265, -2.72076 ), Vector2( 495.176, -10.883 ) ] } +tracks/3/imported = false +tracks/3/keys = { +"times": FloatArray( 0, 2 ), +"transitions": FloatArray( 1, 1 ), +"update": 0, +"values": [ Vector2( 382.265, -2.72076 ), Vector2( 495.176, -10.883 ) ] +} [sub_resource type="Animation" id=8] @@ -67,11 +91,23 @@ step = 0.1 tracks/0/type = "value" tracks/0/path = NodePath("base/box:trigger") tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0, 4 ), "transitions":FloatArray( 1, 1 ), "values":[ false, true ] } +tracks/0/imported = false +tracks/0/keys = { +"times": FloatArray( 0, 4 ), +"transitions": FloatArray( 1, 1 ), +"update": 1, +"values": [ false, true ] +} tracks/1/type = "value" tracks/1/path = NodePath("base/box:visibility/opacity") tracks/1/interp = 1 -tracks/1/keys = { "cont":false, "times":FloatArray( 0, 4 ), "transitions":FloatArray( 1, 1 ), "values":[ 1.0, 0.2 ] } +tracks/1/imported = false +tracks/1/keys = { +"times": FloatArray( 0, 4 ), +"transitions": FloatArray( 1, 1 ), +"update": 1, +"values": [ 1.0, 0.2 ] +} [node name="base" type="Node2D"] @@ -166,11 +202,15 @@ autoplay = "toggletrigger" focus/ignore_mouse = true focus/stop_mouse = true size_flags/horizontal = 2 +size_flags/vertical = 0 margin/left = 21.0 margin/top = 21.0 margin/right = 719.0 margin/bottom = 73.0 -text = "This demo simply shows that it\'s possible now to move a CollisionShape and CollisionPolygon after it was created\nand also turn it into a trigger at run-time. CollisionShape will remain alive during the running game and you can\ninteract with them, even though they are just meant to be helpers.\nIt is always recommended in a real use-case scenario, to move a body instead of a shape, as that path is better optimized." +text = "This demo simply shows that it's possible now to move a CollisionShape and CollisionPolygon after it was created +and also turn it into a trigger at run-time. CollisionShape will remain alive during the running game and you can +interact with them, even though they are just meant to be helpers. +It is always recommended in a real use-case scenario, to move a body instead of a shape, as that path is better optimized." percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 diff --git a/old/2d/hdr/beach_cave.gd b/old/2d/hdr/beach_cave.gd deleted file mode 100644 index fcc878e5..00000000 --- a/old/2d/hdr/beach_cave.gd +++ /dev/null @@ -1,21 +0,0 @@ - -extends Node2D - -# Member variables -const CAVE_LIMIT = 1000 - - -func _input(event): - if (event.type == InputEvent.MOUSE_MOTION and event.button_mask&1): - var rel_x = event.relative_x - var cavepos = get_node("cave").get_pos() - cavepos.x += rel_x - if (cavepos.x < -CAVE_LIMIT): - cavepos.x = -CAVE_LIMIT - elif (cavepos.x > 0): - cavepos.x = 0 - get_node("cave").set_pos(cavepos) - - -func _ready(): - set_process_input(true) diff --git a/old/2d/hdr/beach_cave.tscn b/old/2d/hdr/beach_cave.tscn deleted file mode 100644 index f246ff1f..00000000 --- a/old/2d/hdr/beach_cave.tscn +++ /dev/null @@ -1,88 +0,0 @@ -[gd_scene load_steps=5 format=1] - -[ext_resource path="res://beach_cave.gd" type="Script" id=1] -[ext_resource path="res://ocean_beach.png" type="Texture" id=2] -[ext_resource path="res://ocean_cave.png" type="Texture" id=3] - -[sub_resource type="Environment" id=1] - -ambient_light/enabled = false -ambient_light/color = Color( 0, 0, 0, 1 ) -ambient_light/energy = 1.0 -fxaa/enabled = false -background/mode = 5 -background/color = Color( 0, 0, 0, 1 ) -background/energy = 1.0 -background/scale = 1.0 -background/glow = 0.0 -background/canvas_max_layer = null -glow/enabled = true -glow/blur_passes = 3 -glow/blur_scale = 1.2 -glow/blur_strength = 1.2 -glow/blur_blend_mode = 0 -glow/bloom = 0.0 -glow/bloom_treshold = 0.5 -dof_blur/enabled = false -dof_blur/blur_passes = 1 -dof_blur/begin = 100.0 -dof_blur/range = 10.0 -hdr/enabled = true -hdr/tonemapper = 0.0 -hdr/exposure = 0.5 -hdr/white = 1.0 -hdr/glow_treshold = 0.7 -hdr/glow_scale = 0.5 -hdr/min_luminance = 0.3 -hdr/max_luminance = 8.0 -hdr/exposure_adj_speed = 2.0 -fog/enabled = false -fog/begin = 100.0 -fog/begin_color = Color( 0, 0, 0, 1 ) -fog/end_color = Color( 0, 0, 0, 1 ) -fog/attenuation = 1.0 -fog/bg = true -bcs/enabled = false -bcs/brightness = 1.0 -bcs/contrast = 1.0 -bcs/saturation = 1.0 -srgb/enabled = true - -[node name="hdr" type="Node2D"] - -script/script = ExtResource( 1 ) - -[node name="beach" type="Sprite" parent="."] - -texture = ExtResource( 2 ) -centered = false -modulate = Color( 2, 2, 2, 1 ) - -[node name="cave" type="Sprite" parent="."] - -transform/scale = Vector2( 1.2, 1 ) -texture = ExtResource( 3 ) -centered = false -modulate = Color( 0.233166, 0.221219, 0.23582, 1 ) - -[node name="environment" type="WorldEnvironment" parent="."] - -_import_transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) -environment = SubResource( 1 ) - -[node name="Label" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 0.0 -margin/top = 0.0 -margin/right = 40.0 -margin/bottom = 13.0 -custom_colors/font_color = Color( 0.213955, 0.205626, 0.20313, 1 ) -text = "Drag Left and Right" -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - - diff --git a/old/2d/hdr/engine.cfg b/old/2d/hdr/engine.cfg deleted file mode 100644 index 4bc29235..00000000 --- a/old/2d/hdr/engine.cfg +++ /dev/null @@ -1,14 +0,0 @@ -[application] - -name="HDR for 2D" -main_scene="res://beach_cave.tscn" -icon="res://icon.png" - -[display] - -width=1080 -height=720 - -[rasterizer] - -blur_buffer_size=128 diff --git a/old/2d/hdr/ocean_beach.png.flags b/old/2d/hdr/ocean_beach.png.flags deleted file mode 100644 index 82127bd7..00000000 --- a/old/2d/hdr/ocean_beach.png.flags +++ /dev/null @@ -1 +0,0 @@ -tolinear=true diff --git a/old/2d/hdr/ocean_cave.png.flags b/old/2d/hdr/ocean_cave.png.flags deleted file mode 100644 index 82127bd7..00000000 --- a/old/2d/hdr/ocean_cave.png.flags +++ /dev/null @@ -1 +0,0 @@ -tolinear=true diff --git a/old/2d/hexamap/engine.cfg b/old/2d/hexamap/engine.cfg deleted file mode 100644 index 28043b08..00000000 --- a/old/2d/hexamap/engine.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[application] - -name="Hexagonal Game" -main_scene="res://map.tscn" -icon="res://icon.png" - -[input] - -move_up=[key(Up)] -move_left=[key(Left)] -move_right=[key(Right)] -move_bottom=[key(Down)] diff --git a/old/2d/hexamap/map.tscn b/old/2d/hexamap/map.tscn deleted file mode 100644 index 8dc6ec3e..00000000 --- a/old/2d/hexamap/map.tscn +++ /dev/null @@ -1,30 +0,0 @@ -[gd_scene load_steps=3 format=1] - -[ext_resource path="res://tileset.tres" type="TileSet" id=1] -[ext_resource path="res://troll.tscn" type="PackedScene" id=2] - -[node name="Node2D" type="Node2D"] - -[node name="TileMap" type="TileMap" parent="."] - -mode = 0 -tile_set = ExtResource( 1 ) -cell/size = Vector2( 82, 94 ) -cell/quadrant_size = 16 -cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -cell/half_offset = 1 -cell/tile_origin = 1 -cell/y_sort = false -collision/use_kinematic = false -collision/friction = 1.0 -collision/bounce = 0.0 -collision/layers = 1 -collision/mask = 1 -occluder/light_mask = 1 -tile_data = IntArray( -393210, 1073741831, -327676, 1073741831, -327675, 1073741831, -327674, 6, -327673, 1073741831, -327672, 1073741830, -327671, 1073741830, -327670, 6, -327669, 8, -262142, 1073741831, -262141, 1073741831, -262140, 1073741831, -262139, 1073741830, -262138, 1073741831, -262137, 6, -262136, 6, -262135, 6, -262134, 6, -262133, 6, -262132, 0, -262131, 0, -196606, 1073741831, -196605, 1073741831, -196604, 6, -196603, 6, -196602, 0, -196601, 6, -196600, 1, -196599, 0, -196598, 1, -196597, 1, -196596, 0, -196595, 0, -196594, 0, -131071, 9, -131070, 1073741832, -131069, 1073741830, -131068, 2, -131067, 2, -131066, 1073741845, -131065, 21, -131064, 19, -131063, 1073741826, -131062, 0, -131061, 16, -131060, 0, -131059, 0, -131058, 0, -131057, 0, -131056, 0, -65534, 0, -65533, 1, -65532, 1073741827, -65531, 1073741846, -65530, 20, -65529, 19, -65528, 2, -65527, 0, -65526, 14, -65525, 0, -65524, 0, -65523, 0, -65522, 0, -65521, 0, -65520, 0, -65519, 0, 3, 1, 4, 2, 5, 1073741827, 6, 1, 7, 1, 8, 0, 9, 10, 10, 12, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 65538, 0, 65539, 0, 65540, 2, 65541, 1073741826, 65542, 1, 65543, 15, 65544, 0, 65545, 0, 65546, 0, 65547, 0, 65548, 0, 65549, 0, 65550, 0, 65551, 0, 65552, 0, 65553, 0, 131074, 0, 131075, 1, 131076, 1610612749, 131077, 1, 131078, 0, 131079, 0, 131080, 0, 131081, 0, 131082, 1610612753, 131083, 0, 131084, 0, 131085, 0, 131086, 0, 131087, 1073741848, 131088, 1073741849, 131089, 0, 196610, 0, 196611, 0, 196612, 0, 196613, 0, 196614, 1610612751, 196615, 1610612752, 196616, 1610612752, 196617, 1610612751, 196618, 1610612751, 196619, 0, 196620, 0, 196621, 0, 196622, 0, 196623, 0, 262149, 0, 262150, 1610612751, 262151, 1610612752, 262152, 1610612751, 262153, 1610612751, 262154, 1073741839, 262155, 1073741839, 262156, 0, 262157, 0, 262158, 0, 327687, 0, 327689, 0, 327691, 0, 327693, 0 ) - -[node name="troll" parent="." instance=ExtResource( 2 )] - -transform/pos = Vector2( 602.819, -39.2876 ) - - diff --git a/old/2d/isometric/dungeon.tscn b/old/2d/isometric/dungeon.tscn deleted file mode 100644 index a9f4cfa1..00000000 --- a/old/2d/isometric/dungeon.tscn +++ /dev/null @@ -1,49 +0,0 @@ -[gd_scene load_steps=3 format=1] - -[ext_resource path="res://tileset.tres" type="TileSet" id=1] -[ext_resource path="res://troll.tscn" type="PackedScene" id=2] - -[node name="dungeon" type="Node2D"] - -[node name="floor" type="TileMap" parent="."] - -mode = 1 -tile_set = ExtResource( 1 ) -cell/size = Vector2( 128, 64 ) -cell/quadrant_size = 16 -cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -cell/half_offset = 2 -cell/tile_origin = 1 -cell/y_sort = false -collision/use_kinematic = false -collision/friction = 1.0 -collision/bounce = 0.0 -collision/layers = 1 -collision/mask = 1 -occluder/light_mask = 1 -tile_data = IntArray( -851956, 0, -851955, 0, -851954, 0, -786420, 1, -786419, 0, -786418, 0, -720884, 0, -720883, 0, -720882, 0, -655348, 1, -655347, 0, -655346, 0, -589812, 1, -589811, 0, -589810, 0, -524276, 0, -524275, 1, -524274, 0, -458740, 0, -458739, 0, -458738, 0, -393210, 0, -393209, 0, -393208, 0, -393207, 0, -393206, 0, -393205, 0, -393204, 0, -393203, 0, -393202, 0, -327674, 0, -327673, 0, -327672, 1, -327671, 1, -327670, 1, -327669, 1, -327668, 1, -327667, 0, -327666, 0, -262138, 0, -262137, 0, -262136, 0, -262135, 0, -262134, 0, -262133, 0, -262132, 0, -262131, 0, -262130, 0, -196602, 0, -196601, 0, -196600, 0, -196599, 0, -196598, 0, -196597, 0, -196596, 0, -196595, 0, -196594, 0, -131066, 0, -131065, 0, -131064, 0, -131063, 0, -65530, 0, -65529, 0, -65528, 0, -65527, 0, 6, 0, 7, 1, 8, 0, 9, 0, 65542, 0, 65543, 0, 65544, 0, 65545, 0, 131078, 0, 131079, 0, 131080, 0, 131081, 0, 196614, 0, 196615, 0, 196616, 0 ) - -[node name="walls" type="TileMap" parent="."] - -mode = 1 -tile_set = ExtResource( 1 ) -cell/size = Vector2( 128, 64 ) -cell/quadrant_size = 16 -cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -cell/half_offset = 2 -cell/tile_origin = 1 -cell/y_sort = true -collision/use_kinematic = false -collision/friction = 1.0 -collision/bounce = 0.0 -collision/layers = 1 -collision/mask = 1 -occluder/light_mask = 1 -tile_data = IntArray( -917493, 2, -917492, 2, -917491, 2, -917490, 2, -917489, 2, -851957, 2, -851956, 3, -851954, 3, -851953, 2, -786421, 2, -786420, 3, -786418, 3, -786417, 2, -720885, 2, -720881, 2, -655349, 2, -655348, 2, -655346, 3, -655345, 2, -589813, 2, -589809, 2, -524277, 2, -524273, 2, -458747, 2, -458746, 2, -458745, 2, -458744, 536870916, -458743, 536870916, -458742, 2, -458741, 2, -458740, 2, -458738, 2, -458737, 2, -393211, 2, -393209, 3, -393205, 3, -393201, 2, -327675, 4, -327665, 2, -262139, 4, -262134, 3, -262133, 3, -262129, 2, -196603, 2, -196601, 3, -196593, 2, -131067, 2, -131066, 3, -131062, 2, -131061, 2, -131060, 2, -131059, 2, -131058, 2, -131057, 2, -65531, 2, -65530, 2, -65527, 2, -65526, 2, 5, 2, 10, 2, 65541, 2, 65543, 3, 65546, 2, 131077, 2, 131082, 2, 196613, 2, 196618, 2, 262149, 2, 262150, 2, 262151, 2, 262152, 2, 262153, 2, 262154, 2 ) - -[node name="troll" parent="walls" instance=ExtResource( 2 )] - -transform/pos = Vector2( 299.38, 326.037 ) -collision/margin = 0.001 - - diff --git a/old/2d/isometric/engine.cfg b/old/2d/isometric/engine.cfg deleted file mode 100644 index 4952b524..00000000 --- a/old/2d/isometric/engine.cfg +++ /dev/null @@ -1,21 +0,0 @@ -[application] - -name="Isometric Game" -main_scene="res://dungeon.tscn" -icon="res://icon.png" - -[image_loader] - -filter=false -gen_mipmaps=false - -[input] - -move_up=[key(Up)] -move_left=[key(Left)] -move_right=[key(Right)] -move_bottom=[key(Down)] - -[rasterizer] - -use_pixel_snap=true diff --git a/old/2d/kinematic_char/colworld.tscn b/old/2d/kinematic_char/colworld.tscn deleted file mode 100644 index 3bc4a21d..00000000 --- a/old/2d/kinematic_char/colworld.tscn +++ /dev/null @@ -1,422 +0,0 @@ -[gd_scene load_steps=19 format=1] - -[ext_resource path="res://colworld.gd" type="Script" id=1] -[ext_resource path="res://obstacle.png" type="Texture" id=2] -[ext_resource path="res://player.tscn" type="PackedScene" id=3] -[ext_resource path="res://princess.png" type="Texture" id=4] -[ext_resource path="res://circle.png" type="Texture" id=5] -[ext_resource path="res://long_obstacle.png" type="Texture" id=6] - -[sub_resource type="RectangleShape2D" id=1] - -custom_solver_bias = 0.0 -extents = Vector2( 8, 8 ) - -[sub_resource type="TileSet" id=2] - -0/name = "" -0/texture = ExtResource( 2 ) -0/tex_offset = Vector2( 0, 0 ) -0/region = Rect2( 0, 0, 0, 0 ) -0/occluder_offset = Vector2( 0, 0 ) -0/navigation_offset = Vector2( 0, 0 ) -0/shape_offset = Vector2( 8, 8 ) -0/shapes = [ SubResource( 1 ) ] - -[sub_resource type="RectangleShape2D" id=3] - -custom_solver_bias = 0.0 -extents = Vector2( 8, 8 ) - -[sub_resource type="Animation" id=4] - -length = 10.0 -loop = true -step = 0.1 -tracks/0/type = "value" -tracks/0/path = NodePath(".:transform/pos") -tracks/0/interp = 1 -tracks/0/keys = { "cont":true, "times":FloatArray( 0, 1, 5, 6 ), "transitions":FloatArray( 1, 1, 1, 1 ), "values":[ Vector2( 184, 152 ), Vector2( 184, 152 ), Vector2( 328.086, 152 ), Vector2( 328.086, 152 ) ] } - -[sub_resource type="Animation" id=5] - -resource/name = "leftright" -length = 10.0 -loop = true -step = 0.1 -tracks/0/type = "value" -tracks/0/path = NodePath(".:transform/pos") -tracks/0/interp = 1 -tracks/0/keys = { "cont":true, "times":FloatArray( 0, 1, 5, 6 ), "transitions":FloatArray( 1, 1, 1, 1 ), "values":[ Vector2( 184, 152 ), Vector2( 184, 152 ), Vector2( 328.086, 152 ), Vector2( 328.086, 152 ) ] } - -[sub_resource type="Animation" id=6] - -length = 10.0 -loop = true -step = 0.1 -tracks/0/type = "value" -tracks/0/path = NodePath(".:transform/pos") -tracks/0/interp = 1 -tracks/0/keys = { "cont":true, "times":FloatArray( 0, 1, 5, 6 ), "transitions":FloatArray( 1, 1, 1, 1 ), "values":[ Vector2( 88.3493, 296 ), Vector2( 88.3493, 296 ), Vector2( 88.3493, 152 ), Vector2( 88.3493, 152 ) ] } - -[sub_resource type="RectangleShape2D" id=7] - -custom_solver_bias = 0.0 -extents = Vector2( 8, 8 ) - -[sub_resource type="RectangleShape2D" id=8] - -custom_solver_bias = 0.0 -extents = Vector2( 10, 4 ) - -[sub_resource type="CircleShape2D" id=9] - -custom_solver_bias = 0.0 -radius = 32.0 - -[sub_resource type="RectangleShape2D" id=10] - -custom_solver_bias = 0.0 -extents = Vector2( 8, 8 ) - -[sub_resource type="Animation" id=11] - -length = 20.0 -loop = true -step = 0.1 -tracks/0/type = "value" -tracks/0/path = NodePath(".:transform/rot") -tracks/0/interp = 1 -tracks/0/keys = { "cont":true, "times":FloatArray( 0, 5, 10, 15 ), "transitions":FloatArray( -2, -2, -2, -2 ), "values":[ 0.0, 90.0, 0.0, -90.0 ] } - -[sub_resource type="RectangleShape2D" id=12] - -custom_solver_bias = 0.0 -extents = Vector2( 32, 8 ) - -[node name="colworld" type="Node2D"] - -script/script = ExtResource( 1 ) - -[node name="TileMap" type="TileMap" parent="."] - -mode = 0 -tile_set = SubResource( 2 ) -cell/size = Vector2( 16, 16 ) -cell/quadrant_size = 16 -cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -cell/half_offset = 2 -cell/tile_origin = 0 -cell/y_sort = false -collision/use_kinematic = false -collision/friction = 1.0 -collision/bounce = 0.0 -collision/layers = 1 -collision/mask = 1 -occluder/light_mask = 1 -tile_data = IntArray( 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0, 21, 0, 22, 0, 23, 0, 24, 0, 25, 0, 26, 0, 27, 0, 28, 0, 29, 0, 30, 0, 31, 0, 32, 0, 65536, 0, 65537, 0, 65538, 0, 65539, 0, 65540, 0, 65541, 0, 65542, 0, 65543, 0, 65544, 0, 65545, 0, 65546, 0, 65547, 0, 65548, 0, 65549, 0, 65550, 0, 65551, 0, 65552, 0, 65553, 0, 65554, 0, 65555, 0, 65556, 0, 65557, 0, 65558, 0, 65559, 0, 65560, 0, 65561, 0, 65562, 0, 65563, 0, 65564, 0, 65565, 0, 65566, 0, 65567, 0, 65568, 0, 131072, 0, 131073, 0, 131103, 0, 131104, 0, 196608, 0, 196609, 0, 196639, 0, 196640, 0, 262144, 0, 262145, 0, 262175, 0, 262176, 0, 327680, 0, 327681, 0, 327685, 0, 327686, 0, 327687, 0, 327688, 0, 327689, 0, 327690, 0, 327691, 0, 327692, 0, 327693, 0, 327697, 0, 327711, 0, 327712, 0, 393216, 0, 393217, 0, 393237, 0, 393238, 0, 393247, 0, 393248, 0, 458752, 0, 458753, 0, 458783, 0, 458784, 0, 524288, 0, 524289, 0, 524313, 0, 524314, 0, 524319, 0, 524320, 0, 589824, 0, 589825, 0, 589830, 0, 589831, 0, 589832, 0, 589833, 0, 589834, 0, 589845, 0, 589846, 0, 589847, 0, 589855, 0, 589856, 0, 655360, 0, 655361, 0, 655391, 0, 655392, 0, 720896, 0, 720897, 0, 720927, 0, 720928, 0, 786432, 0, 786433, 0, 786463, 0, 786464, 0, 851968, 0, 851969, 0, 851999, 0, 852000, 0, 917504, 0, 917505, 0, 917535, 0, 917536, 0, 983040, 0, 983041, 0, 983071, 0, 983072, 0, 1048576, 0, 1048577, 0, 1048607, 0, 1048608, 0, 1114112, 0, 1114113, 0, 1114143, 0, 1114144, 0, 1179648, 0, 1179649, 0, 1179654, 0, 1179655, 0, 1179656, 0, 1179679, 0, 1179680, 0, 1245184, 0, 1245185, 0, 1245204, 0, 1245205, 0, 1245206, 0, 1245207, 0, 1245215, 0, 1245216, 0, 1310720, 0, 1310721, 0, 1310751, 0, 1310752, 0, 1376256, 0, 1376257, 0, 1376285, 0, 1376286, 0, 1376287, 0, 1376288, 0, 1441792, 0, 1441793, 0, 1441823, 0, 1441824, 0, 1507328, 0, 1507329, 0, 1507355, 0, 1507356, 0, 1507359, 0, 1507360, 0, 1572864, 0, 1572865, 0, 1572895, 0, 1572896, 0, 1638400, 0, 1638401, 0, 1638413, 0, 1638425, 0, 1638426, 0, 1638431, 0, 1638432, 0, 1703936, 0, 1703937, 0, 1703948, 0, 1703965, 0, 1703966, 0, 1703967, 0, 1703968, 0, 1769472, 0, 1769473, 0, 1769482, 0, 1769483, 0, 1769500, 0, 1769501, 0, 1769503, 0, 1769504, 0, 1835008, 0, 1835009, 0, 1835012, 0, 1835018, 0, 1835019, 0, 1835034, 0, 1835035, 0, 1835039, 0, 1835040, 0, 1900544, 0, 1900545, 0, 1900546, 0, 1900547, 0, 1900548, 0, 1900549, 0, 1900550, 0, 1900551, 0, 1900552, 0, 1900553, 0, 1900554, 0, 1900555, 0, 1900556, 0, 1900557, 0, 1900558, 0, 1900559, 0, 1900560, 0, 1900561, 0, 1900562, 0, 1900563, 0, 1900564, 0, 1900565, 0, 1900566, 0, 1900567, 0, 1900568, 0, 1900569, 0, 1900570, 0, 1900571, 0, 1900572, 0, 1900573, 0, 1900574, 0, 1900575, 0, 1900576, 0, 1966080, 0, 1966081, 0, 1966082, 0, 1966083, 0, 1966084, 0, 1966085, 0, 1966086, 0, 1966087, 0, 1966088, 0, 1966089, 0, 1966090, 0, 1966091, 0, 1966092, 0, 1966093, 0, 1966094, 0, 1966095, 0, 1966096, 0, 1966097, 0, 1966098, 0, 1966099, 0, 1966100, 0, 1966101, 0, 1966102, 0, 1966103, 0, 1966104, 0, 1966105, 0, 1966106, 0, 1966107, 0, 1966108, 0, 1966109, 0, 1966110, 0, 1966111, 0, 1966112, 0, 2031616, 0, 2031617, 0, 2031618, 0, 2031619, 0, 2031620, 0, 2031621, 0, 2031622, 0, 2031623, 0, 2031624, 0, 2031625, 0, 2031626, 0, 2031627, 0, 2031628, 0, 2031629, 0, 2031630, 0, 2031631, 0, 2031632, 0, 2031633, 0, 2031634, 0, 2031635, 0, 2031636, 0, 2031637, 0, 2031638, 0, 2031639, 0, 2031640, 0, 2031641, 0, 2031642, 0, 2031643, 0, 2031644, 0, 2031645, 0, 2031646, 0, 2031647, 0, 2031648, 0 ) - -[node name="player" parent="." instance=ExtResource( 3 )] - -transform/pos = Vector2( 72, 430 ) -collision/margin = 0.05 - -[node name="moving_platform1" type="KinematicBody2D" parent="."] - -transform/pos = Vector2( 274.142, 152 ) -input/pickable = false -shapes/0/shape = SubResource( 3 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 -collision/margin = 0.01 - -[node name="collision" type="CollisionShape2D" parent="moving_platform1"] - -shape = SubResource( 3 ) -trigger = false -_update_shape_index = -1 - -[node name="sprite" type="Sprite" parent="moving_platform1"] - -texture = ExtResource( 2 ) - -[node name="anim" type="AnimationPlayer" parent="moving_platform1"] - -playback/process_mode = 0 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/leftright = SubResource( 4 ) -playback/active = true -playback/speed = 1.0 -blend_times = [ ] -autoplay = "leftright" - -[node name="moving_platform2" type="KinematicBody2D" parent="."] - -transform/pos = Vector2( 88.3493, 284.689 ) -input/pickable = false -shapes/0/shape = SubResource( 3 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 -collision/margin = 0.01 - -[node name="collision" type="CollisionShape2D" parent="moving_platform2"] - -shape = SubResource( 3 ) -trigger = false -_update_shape_index = -1 - -[node name="sprite" type="Sprite" parent="moving_platform2"] - -texture = ExtResource( 2 ) - -[node name="anim" type="AnimationPlayer" parent="moving_platform2"] - -playback/process_mode = 0 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/leftright = SubResource( 5 ) -anims/updown = SubResource( 6 ) -playback/active = true -playback/speed = 1.0 -blend_times = [ ] -autoplay = "updown" - -[node name="princess" type="Area2D" parent="."] - -transform/pos = Vector2( 97, 72 ) -input/pickable = true -shapes/0/shape = SubResource( 7 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -shapes/0/trigger = false -gravity_vec = Vector2( 0, 1 ) -gravity = 98.0 -linear_damp = 0.1 -angular_damp = 1.0 - -[node name="collision" type="CollisionShape2D" parent="princess"] - -shape = SubResource( 7 ) -trigger = false -_update_shape_index = -1 - -[node name="Sprite" type="Sprite" parent="princess"] - -texture = ExtResource( 4 ) - -[node name="youwin" type="Label" parent="."] - -visibility/visible = false -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 196.0 -margin/top = 41.0 -margin/right = 344.0 -margin/bottom = 67.0 -text = "Thank You Cubio\nYou Saved The Princess!" -align = 1 -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - -[node name="oneway1" type="KinematicBody2D" parent="."] - -transform/pos = Vector2( 439, 301 ) -input/pickable = false -shapes/0/shape = SubResource( 8 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 -one_way_collision/direction = Vector2( 0, 1 ) -one_way_collision/max_depth = 6.0 -collision/margin = 0.01 - -[node name="sprite" type="Sprite" parent="oneway1"] - -transform/scale = Vector2( 1, 0.3 ) -texture = ExtResource( 2 ) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway1"] - -shape = SubResource( 8 ) -trigger = false -_update_shape_index = -1 - -[node name="oneway2" type="KinematicBody2D" parent="."] - -transform/pos = Vector2( 456, 301 ) -input/pickable = false -shapes/0/shape = SubResource( 8 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 -one_way_collision/direction = Vector2( 0, 1 ) -one_way_collision/max_depth = 6.0 -collision/margin = 0.01 - -[node name="sprite" type="Sprite" parent="oneway2"] - -transform/scale = Vector2( 1, 0.3 ) -texture = ExtResource( 2 ) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway2"] - -shape = SubResource( 8 ) -trigger = false -_update_shape_index = -1 - -[node name="oneway3" type="KinematicBody2D" parent="."] - -transform/pos = Vector2( 472, 301 ) -input/pickable = false -shapes/0/shape = SubResource( 8 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 -one_way_collision/direction = Vector2( 0, 1 ) -one_way_collision/max_depth = 6.0 -collision/margin = 0.01 - -[node name="sprite" type="Sprite" parent="oneway3"] - -transform/scale = Vector2( 1, 0.3 ) -texture = ExtResource( 2 ) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway3"] - -shape = SubResource( 8 ) -trigger = false -_update_shape_index = -1 - -[node name="oneway4" type="KinematicBody2D" parent="."] - -transform/pos = Vector2( 487, 301 ) -input/pickable = false -shapes/0/shape = SubResource( 8 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 -one_way_collision/direction = Vector2( 0, 1 ) -one_way_collision/max_depth = 6.0 -collision/margin = 0.01 - -[node name="sprite" type="Sprite" parent="oneway4"] - -transform/scale = Vector2( 1, 0.3 ) -texture = ExtResource( 2 ) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway4"] - -shape = SubResource( 8 ) -trigger = false -_update_shape_index = -1 - -[node name="circle" type="KinematicBody2D" parent="."] - -transform/pos = Vector2( 241.169, 304.126 ) -input/pickable = false -shapes/0/shape = SubResource( 9 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -shapes/0/trigger = false -shapes/1/shape = SubResource( 10 ) -shapes/1/transform = Matrix32( 1, 0, 0, 1, -0.440125, -37.0904 ) -shapes/1/trigger = false -collision/layers = 1 -collision/mask = 1 -collision/margin = 0.08 - -[node name="sprite" type="Sprite" parent="circle"] - -texture = ExtResource( 5 ) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="circle"] - -shape = SubResource( 9 ) -trigger = false -_update_shape_index = -1 - -[node name="anim" type="AnimationPlayer" parent="circle"] - -playback/process_mode = 1 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/turn = SubResource( 11 ) -playback/active = true -playback/speed = 1.0 -blend_times = [ ] -autoplay = "turn" - -[node name="box" type="CollisionShape2D" parent="circle"] - -transform/pos = Vector2( -0.440125, -37.0904 ) -shape = SubResource( 10 ) -trigger = false -_update_shape_index = -1 - -[node name="boxsprite" type="Sprite" parent="circle"] - -transform/pos = Vector2( 0, -37.4108 ) -texture = ExtResource( 2 ) - -[node name="platform" type="StaticBody2D" parent="."] - -transform/pos = Vector2( 251.44, 396.557 ) -transform/rot = 24.5257 -input/pickable = false -shapes/0/shape = SubResource( 12 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 -constant_linear_velocity = Vector2( 0, 0 ) -constant_angular_velocity = 0.0 -friction = 1.0 -bounce = 0.0 - -[node name="sprite" type="Sprite" parent="platform"] - -texture = ExtResource( 6 ) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="platform"] - -shape = SubResource( 12 ) -trigger = false -_update_shape_index = -1 - -[node name="platform1" type="StaticBody2D" parent="."] - -transform/pos = Vector2( 369.116, 394.016 ) -transform/rot = -26.6959 -input/pickable = false -shapes/0/shape = SubResource( 12 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 -constant_linear_velocity = Vector2( 0, 0 ) -constant_angular_velocity = 0.0 -friction = 1.0 -bounce = 0.0 - -[node name="sprite" type="Sprite" parent="platform1"] - -texture = ExtResource( 6 ) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="platform1"] - -shape = SubResource( 12 ) -trigger = false -_update_shape_index = -1 - -[connection signal="body_enter" from="princess" to="." method="_on_princess_body_enter"] - - diff --git a/old/2d/kinematic_char/engine.cfg b/old/2d/kinematic_char/engine.cfg deleted file mode 100644 index 0ab2a552..00000000 --- a/old/2d/kinematic_char/engine.cfg +++ /dev/null @@ -1,20 +0,0 @@ -[application] - -name="Kinematic Character" -main_scene="res://colworld.tscn" -icon="res://icon.png" - -[display] - -width=800 -height=600 -stretch_mode="2d" -stretch_aspect="keep" - -[input] - -move_up=[key(Up)] -move_left=[key(Left)] -move_right=[key(Right)] -move_bottom=[key(Down)] -jump=[key(Space)] diff --git a/old/2d/kinematic_col/colworld.tscn b/old/2d/kinematic_col/colworld.tscn deleted file mode 100644 index 43eb5854..00000000 --- a/old/2d/kinematic_col/colworld.tscn +++ /dev/null @@ -1,47 +0,0 @@ -[gd_scene load_steps=5 format=1] - -[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] - -custom_solver_bias = 0.0 -extents = Vector2( 8, 8 ) - -[sub_resource type="TileSet" id=2] - -0/name = "" -0/texture = ExtResource( 1 ) -0/tex_offset = Vector2( 0, 0 ) -0/region = Rect2( 0, 0, 0, 0 ) -0/occluder_offset = Vector2( 0, 0 ) -0/navigation_offset = Vector2( 0, 0 ) -0/shape_offset = Vector2( 8, 8 ) -0/shapes = [ SubResource( 1 ) ] - -[node name="colworld" type="Node2D"] - -[node name="TileMap" type="TileMap" parent="."] - -mode = 0 -tile_set = SubResource( 2 ) -cell/size = Vector2( 16, 16 ) -cell/quadrant_size = 16 -cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -cell/half_offset = 2 -cell/tile_origin = 0 -cell/y_sort = false -collision/use_kinematic = false -collision/friction = 1.0 -collision/bounce = 0.0 -collision/layers = 1 -collision/mask = 1 -occluder/light_mask = 1 -tile_data = IntArray( 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0, 21, 0, 22, 0, 23, 0, 24, 0, 25, 0, 26, 0, 27, 0, 28, 0, 29, 0, 30, 0, 31, 0, 32, 0, 65536, 0, 65537, 0, 65538, 0, 65539, 0, 65540, 0, 65541, 0, 65542, 0, 65543, 0, 65544, 0, 65545, 0, 65546, 0, 65547, 0, 65548, 0, 65549, 0, 65550, 0, 65551, 0, 65552, 0, 65553, 0, 65554, 0, 65555, 0, 65556, 0, 65557, 0, 65558, 0, 65559, 0, 65560, 0, 65561, 0, 65562, 0, 65563, 0, 65564, 0, 65565, 0, 65566, 0, 65567, 0, 65568, 0, 131072, 0, 131073, 0, 131103, 0, 131104, 0, 196608, 0, 196609, 0, 196639, 0, 196640, 0, 262144, 0, 262145, 0, 262175, 0, 262176, 0, 327680, 0, 327681, 0, 327685, 0, 327686, 0, 327687, 0, 327688, 0, 327689, 0, 327690, 0, 327691, 0, 327692, 0, 327693, 0, 327711, 0, 327712, 0, 393216, 0, 393217, 0, 393247, 0, 393248, 0, 458752, 0, 458753, 0, 458783, 0, 458784, 0, 524288, 0, 524289, 0, 524319, 0, 524320, 0, 589824, 0, 589825, 0, 589855, 0, 589856, 0, 655360, 0, 655361, 0, 655373, 0, 655374, 0, 655375, 0, 655376, 0, 655377, 0, 655378, 0, 655379, 0, 655380, 0, 655381, 0, 655391, 0, 655392, 0, 720896, 0, 720897, 0, 720909, 0, 720910, 0, 720911, 0, 720912, 0, 720913, 0, 720914, 0, 720915, 0, 720916, 0, 720917, 0, 720927, 0, 720928, 0, 786432, 0, 786433, 0, 786445, 0, 786446, 0, 786447, 0, 786448, 0, 786449, 0, 786450, 0, 786451, 0, 786452, 0, 786453, 0, 786463, 0, 786464, 0, 851968, 0, 851969, 0, 851981, 0, 851982, 0, 851988, 0, 851989, 0, 851999, 0, 852000, 0, 917504, 0, 917505, 0, 917517, 0, 917518, 0, 917524, 0, 917525, 0, 917535, 0, 917536, 0, 983040, 0, 983041, 0, 983053, 0, 983054, 0, 983060, 0, 983061, 0, 983071, 0, 983072, 0, 1048576, 0, 1048577, 0, 1048596, 0, 1048597, 0, 1048607, 0, 1048608, 0, 1114112, 0, 1114113, 0, 1114132, 0, 1114133, 0, 1114143, 0, 1114144, 0, 1179648, 0, 1179649, 0, 1179668, 0, 1179669, 0, 1179679, 0, 1179680, 0, 1245184, 0, 1245185, 0, 1245204, 0, 1245205, 0, 1245215, 0, 1245216, 0, 1310720, 0, 1310721, 0, 1310730, 0, 1310731, 0, 1310748, 0, 1310751, 0, 1310752, 0, 1376256, 0, 1376257, 0, 1376266, 0, 1376267, 0, 1376284, 0, 1376287, 0, 1376288, 0, 1441792, 0, 1441793, 0, 1441802, 0, 1441803, 0, 1441804, 0, 1441805, 0, 1441820, 0, 1441823, 0, 1441824, 0, 1507328, 0, 1507329, 0, 1507338, 0, 1507339, 0, 1507340, 0, 1507341, 0, 1507359, 0, 1507360, 0, 1572864, 0, 1572865, 0, 1572874, 0, 1572875, 0, 1572876, 0, 1572877, 0, 1572878, 0, 1572879, 0, 1572880, 0, 1572881, 0, 1572882, 0, 1572895, 0, 1572896, 0, 1638400, 0, 1638401, 0, 1638410, 0, 1638411, 0, 1638412, 0, 1638413, 0, 1638414, 0, 1638415, 0, 1638416, 0, 1638417, 0, 1638418, 0, 1638431, 0, 1638432, 0, 1703936, 0, 1703937, 0, 1703946, 0, 1703947, 0, 1703967, 0, 1703968, 0, 1769472, 0, 1769473, 0, 1769482, 0, 1769483, 0, 1769503, 0, 1769504, 0, 1835008, 0, 1835009, 0, 1835018, 0, 1835019, 0, 1835039, 0, 1835040, 0, 1900544, 0, 1900545, 0, 1900546, 0, 1900547, 0, 1900548, 0, 1900549, 0, 1900550, 0, 1900551, 0, 1900552, 0, 1900553, 0, 1900554, 0, 1900555, 0, 1900556, 0, 1900557, 0, 1900558, 0, 1900559, 0, 1900560, 0, 1900561, 0, 1900562, 0, 1900563, 0, 1900564, 0, 1900565, 0, 1900566, 0, 1900567, 0, 1900568, 0, 1900569, 0, 1900570, 0, 1900571, 0, 1900572, 0, 1900573, 0, 1900574, 0, 1900575, 0, 1900576, 0, 1966080, 0, 1966081, 0, 1966082, 0, 1966083, 0, 1966084, 0, 1966085, 0, 1966086, 0, 1966087, 0, 1966088, 0, 1966089, 0, 1966090, 0, 1966091, 0, 1966092, 0, 1966093, 0, 1966094, 0, 1966095, 0, 1966096, 0, 1966097, 0, 1966098, 0, 1966099, 0, 1966100, 0, 1966101, 0, 1966102, 0, 1966103, 0, 1966104, 0, 1966105, 0, 1966106, 0, 1966107, 0, 1966108, 0, 1966109, 0, 1966110, 0, 1966111, 0, 1966112, 0, 2031616, 0, 2031617, 0, 2031618, 0, 2031619, 0, 2031620, 0, 2031621, 0, 2031622, 0, 2031623, 0, 2031624, 0, 2031625, 0, 2031626, 0, 2031627, 0, 2031628, 0, 2031629, 0, 2031630, 0, 2031631, 0, 2031632, 0, 2031633, 0, 2031634, 0, 2031635, 0, 2031636, 0, 2031637, 0, 2031638, 0, 2031639, 0, 2031640, 0, 2031641, 0, 2031642, 0, 2031643, 0, 2031644, 0, 2031645, 0, 2031646, 0, 2031647, 0, 2031648, 0 ) - -[node name="player" parent="." instance=ExtResource( 2 )] - -transform/pos = Vector2( 115.243, 222.134 ) -collision/margin = 0.01 - - diff --git a/old/2d/kinematic_col/engine.cfg b/old/2d/kinematic_col/engine.cfg deleted file mode 100644 index 7e2435a3..00000000 --- a/old/2d/kinematic_col/engine.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[application] - -name="Kinematic Collision" -main_scene="res://colworld.tscn" -icon="res://icon.png" - -[input] - -move_up=[key(Up)] -move_left=[key(Left)] -move_right=[key(Right)] -move_bottom=[key(Down)] diff --git a/old/2d/light_mask/engine.cfg b/old/2d/light_mask/engine.cfg deleted file mode 100644 index 3c2f1f3a..00000000 --- a/old/2d/light_mask/engine.cfg +++ /dev/null @@ -1,9 +0,0 @@ -[application] - -name="Using Lights As Mask" -main_scene="res://lightmask.tscn" -icon="res://icon.png" - -[rasterizer] - -shadow_filter=3 diff --git a/old/2d/light_mask/lightmask.tscn b/old/2d/light_mask/lightmask.tscn deleted file mode 100644 index d489b735..00000000 --- a/old/2d/light_mask/lightmask.tscn +++ /dev/null @@ -1,134 +0,0 @@ -[gd_scene load_steps=5 format=1] - -[ext_resource path="res://burano.png" type="Texture" id=1] -[ext_resource path="res://splat.png" type="Texture" id=2] - -[sub_resource type="CanvasItemMaterial" id=1] - -shader/shading_mode = 2 - -[sub_resource type="Animation" id=2] - -length = 4.0 -loop = true -step = 0.1 -tracks/0/type = "value" -tracks/0/path = NodePath("light1:transform/pos") -tracks/0/interp = 1 -tracks/0/keys = { "cont":true, "times":FloatArray( 0, 1, 2, 3 ), "transitions":FloatArray( -2, -2, -2, -2 ), "values":[ Vector2( 601.028, 242.639 ), Vector2( 318.649, 327.353 ), Vector2( 381.263, 130.915 ), Vector2( 462.294, 389.968 ) ] } -tracks/1/type = "value" -tracks/1/path = NodePath("light2:transform/pos") -tracks/1/interp = 1 -tracks/1/keys = { "cont":true, "times":FloatArray( 0, 1, 2, 3 ), "transitions":FloatArray( -2, -2, -2, -2 ), "values":[ Vector2( 196.528, 185.139 ), Vector2( 135.142, 454.013 ), Vector2( 638.105, 334.923 ), Vector2( 331.375, 101.653 ) ] } -tracks/2/type = "value" -tracks/2/path = NodePath("light3:transform/pos") -tracks/2/interp = 1 -tracks/2/keys = { "cont":true, "times":FloatArray( 0, 1, 2, 3 ), "transitions":FloatArray( -2, -2, -2, -2 ), "values":[ Vector2( 442.528, 411.139 ), Vector2( 635.283, 236.8 ), Vector2( 216.215, 396.815 ), Vector2( 682.96, 294.708 ) ] } - -[node name="lightmask_demo" type="Control"] - -anchor/right = 1 -anchor/bottom = 1 -focus/ignore_mouse = false -focus/stop_mouse = true -size_flags/horizontal = 2 -size_flags/vertical = 2 -margin/left = 0.0 -margin/top = 0.0 -margin/right = 0.0 -margin/bottom = 0.0 - -[node name="burano" type="TextureFrame" parent="."] - -material/material = SubResource( 1 ) -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -size_flags/vertical = 2 -margin/left = 0.0 -margin/top = 0.0 -margin/right = 800.0 -margin/bottom = 600.0 -texture = ExtResource( 1 ) - -[node name="light1" type="Light2D" parent="."] - -transform/pos = Vector2( 601.028, 242.639 ) -transform/scale = Vector2( 1.62522, 1.62999 ) -enabled = true -texture = ExtResource( 2 ) -offset = Vector2( 0, 0 ) -scale = 1.0 -color = Color( 1, 1, 1, 1 ) -energy = 1.0 -mode = 2 -range/height = 0.0 -range/z_min = -1024 -range/z_max = 1024 -range/layer_min = 0 -range/layer_max = 0 -range/item_mask = 1 -shadow/enabled = false -shadow/color = Color( 0, 0, 0, 0 ) -shadow/buffer_size = 2048 -shadow/esm_multiplier = 80.0 -shadow/item_mask = 1 - -[node name="light2" type="Light2D" parent="."] - -transform/pos = Vector2( 196.528, 185.139 ) -transform/scale = Vector2( 1.76194, 1.71984 ) -enabled = true -texture = ExtResource( 2 ) -offset = Vector2( 0, 0 ) -scale = 1.0 -color = Color( 1, 1, 1, 1 ) -energy = 1.0 -mode = 2 -range/height = 0.0 -range/z_min = -1024 -range/z_max = 1024 -range/layer_min = 0 -range/layer_max = 0 -range/item_mask = 1 -shadow/enabled = false -shadow/color = Color( 0, 0, 0, 0 ) -shadow/buffer_size = 2048 -shadow/esm_multiplier = 80.0 -shadow/item_mask = 1 - -[node name="light3" type="Light2D" parent="."] - -transform/pos = Vector2( 442.528, 411.139 ) -transform/scale = Vector2( 1.76194, 1.71984 ) -enabled = true -texture = ExtResource( 2 ) -offset = Vector2( 0, 0 ) -scale = 1.0 -color = Color( 1, 1, 1, 1 ) -energy = 1.0 -mode = 2 -range/height = 0.0 -range/z_min = -1024 -range/z_max = 1024 -range/layer_min = 0 -range/layer_max = 0 -range/item_mask = 1 -shadow/enabled = false -shadow/color = Color( 0, 0, 0, 0 ) -shadow/buffer_size = 2048 -shadow/esm_multiplier = 80.0 -shadow/item_mask = 1 - -[node name="anim" type="AnimationPlayer" parent="."] - -playback/process_mode = 1 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/maskmotion = SubResource( 2 ) -playback/active = true -playback/speed = 1.0 -blend_times = [ ] -autoplay = "maskmotion" - - diff --git a/old/2d/lights_shadows/engine.cfg b/old/2d/lights_shadows/engine.cfg deleted file mode 100644 index 51a98edd..00000000 --- a/old/2d/lights_shadows/engine.cfg +++ /dev/null @@ -1,16 +0,0 @@ -[application] - -name="2D Lighting" -main_scene="res://light_shadows.tscn" -icon="res://icon.png" - -[display] - -stretch_mode="2d" -width=800 -height=600 -stretch_aspect="keep" - -[rasterizer] - -shadow_filter=2 diff --git a/old/2d/navpoly/engine.cfg b/old/2d/navpoly/engine.cfg deleted file mode 100644 index e9921c4b..00000000 --- a/old/2d/navpoly/engine.cfg +++ /dev/null @@ -1,12 +0,0 @@ -[application] - -name="Navigation Polygon (2D)" -main_scene="res://navigation.tscn" -icon="res://icon.png" - -[display] - -width=800 -height=600 -stretch_mode="2d" -stretch_aspect="keep" diff --git a/old/2d/navpoly/navigation.tscn b/old/2d/navpoly/navigation.tscn deleted file mode 100644 index b28c917b..00000000 --- a/old/2d/navpoly/navigation.tscn +++ /dev/null @@ -1,34 +0,0 @@ -[gd_scene load_steps=5 format=1] - -[ext_resource path="res://navigation.gd" type="Script" id=1] -[ext_resource path="res://path.png" type="Texture" id=2] -[ext_resource path="res://agent.png" type="Texture" id=3] - -[sub_resource type="NavigationPolygon" id=1] - -vertices = Vector2Array( 587.833, 271.924, 530.464, 284.878, 508.256, 281.177, 497.153, 255.269, 669.26, 297.833, 648.903, 321.891, 650.754, 251.567, 619.293, 510.654, 676.663, 493.998, 706.272, 501.401, 669.26, 529.16, 602.638, 523.608, 587.833, 179.393, 573.028, 140.53, 645.202, 159.036, 710.106, 179.216, 630.397, 212.704, 597.086, 192.348, 648.903, 394.065, 621.144, 486.596, 618.011, 402.479, 624.926, 359.595, 605.437, 456.366, 598.937, 492.148, 471.244, 251.567, 421.277, 270.074, 428.68, 246.015, 502.704, 97.9661, 517.509, 55.4019, 537.866, 99.8167, 536.016, 175.692, 495.302, 164.588, 487.899, 85.0117, 310.24, 75.7586, 308.39, 92.4142, 345.402, 210.854, 360.207, 223.808, 297.286, 258.97, 288.033, 231.211, 319.493, 190.497, 193.651, 423.675, 245.469, 477.343, 221.41, 488.446, 147.386, 408.87, 182.548, 382.961, 145.584, 224.311, 175.145, 332.995, 202.904, 99.8167, 310.24, 62.8043, 695.169, 303.385, 682.214, 284.878, 524.608, 359.37, 526.762, 342.248, 538.077, 499.891, 571.177, 501.401, 395.879, 501.87, 536.407, 524.944, 371.311, 518.056, 573.028, 94.2648, 582.281, 47.9994, 667.409, 75.7586, 350.954, 447.733, 363.908, 351.501, 384.265, 351.501, 376.862, 418.123, 373.441, 436.494, 424.978, 334.845, 421.277, 360.754, 352.804, 320.04, 321.344, 338.546, 299.136, 283.028, 241.767, 327.443, 234.365, 244.165, 325.228, 486.302, 300.441, 497.494, 317.643, 447.733, 332.441, 457.494, 366.441, 467.494, 480.497, 434.779, 518.035, 461.477, 476.441, 468.494, 265.825, 407.019, 184.398, 349.65, 310.24, 112.771, 267.676, 153.485, 221.41, 171.991, 700.721, 268.223, 397.219, 188.646, 415.725, 177.543, 465.692, 179.393, 476.796, 207.152, 443.485, 192.348, 437.933, 170.14, 452.738, 166.439, 460.14, 123.875, 476.796, 149.783, 189.95, 231.211 ) -polygons = [ IntArray( 0, 1, 2, 3 ), IntArray( 4, 5, 6 ), IntArray( 7, 8, 9, 10, 11 ), IntArray( 12, 13, 14, 15, 16, 17 ), IntArray( 18, 19, 20, 21 ), IntArray( 22, 20, 19, 23 ), IntArray( 24, 3, 2, 25, 26 ), IntArray( 27, 28, 29, 30, 31 ), IntArray( 28, 27, 32 ), IntArray( 33, 28, 32, 34 ), IntArray( 35, 36, 37, 38, 39 ), IntArray( 40, 41, 42, 43 ), IntArray( 44, 40, 43 ), IntArray( 44, 43, 45, 46 ), IntArray( 47, 48, 33, 34 ), IntArray( 49, 9, 8, 4, 50 ), IntArray( 50, 4, 6 ), IntArray( 21, 20, 51, 52 ), IntArray( 53, 22, 23, 54 ), IntArray( 23, 7, 11, 54 ), IntArray( 55, 53, 54, 56, 57 ), IntArray( 14, 58, 59, 60, 15 ), IntArray( 61, 62, 63, 64, 65 ), IntArray( 66, 67, 63, 68 ), IntArray( 68, 63, 62, 69, 70 ), IntArray( 70, 69, 71, 72 ), IntArray( 70, 72, 38, 37 ), IntArray( 73, 55, 57, 74 ), IntArray( 73, 74, 75, 76 ), IntArray( 65, 77, 76, 61 ), IntArray( 78, 2, 1, 52, 51 ), IntArray( 78, 51, 79, 80 ), IntArray( 78, 80, 65, 64 ), IntArray( 81, 61, 76, 75 ), IntArray( 81, 75, 44, 82 ), IntArray( 47, 34, 83, 84, 85 ), IntArray( 15, 86, 50, 6, 16 ), IntArray( 12, 17, 3, 24 ), IntArray( 26, 25, 87, 88 ), IntArray( 89, 31, 30, 90, 91 ), IntArray( 89, 91, 92, 93 ), IntArray( 39, 94, 95, 93, 92 ), IntArray( 39, 92, 88 ), IntArray( 39, 88, 87, 35 ), IntArray( 39, 38, 85, 84 ), IntArray( 45, 47, 85, 96 ), IntArray( 45, 96, 46 ), IntArray( 44, 46, 82 ) ] -outlines = [ Vector2Array( 221.41, 488.446, 147.386, 408.87, 145.584, 224.311, 202.904, 99.8167, 310.24, 62.8043, 310.24, 75.7586, 517.509, 55.4019, 537.866, 99.8167, 536.016, 175.692, 476.796, 207.152, 443.485, 192.348, 437.933, 170.14, 415.725, 177.543, 428.68, 246.015, 471.244, 251.567, 587.833, 179.393, 573.028, 140.53, 645.202, 159.036, 573.028, 94.2648, 582.281, 47.9994, 667.409, 75.7586, 710.106, 179.216, 700.721, 268.223, 682.214, 284.878, 695.169, 303.385, 706.272, 501.401, 669.26, 529.16, 602.638, 523.608, 571.177, 501.401, 536.407, 524.944, 371.311, 518.056, 300.441, 497.494, 317.643, 447.733, 182.548, 382.961, 193.651, 423.675, 245.469, 477.343 ), Vector2Array( 350.954, 447.733, 363.908, 351.501, 321.344, 338.546, 241.767, 327.443, 234.365, 244.165, 288.033, 231.211, 221.41, 171.991, 189.95, 231.211, 175.145, 332.995, 184.398, 349.65, 265.825, 407.019 ), Vector2Array( 267.676, 153.485, 310.24, 112.771, 308.39, 92.4142, 487.899, 85.0117, 502.704, 97.9661, 495.302, 164.588, 465.692, 179.393, 452.738, 166.439, 476.796, 149.783, 460.14, 123.875, 319.493, 190.497 ), Vector2Array( 397.219, 188.646, 345.402, 210.854, 360.207, 223.808, 297.286, 258.97, 299.136, 283.028, 352.804, 320.04, 424.978, 334.845, 421.277, 360.754, 384.265, 351.501, 376.862, 418.123, 480.497, 434.779, 508.256, 281.177, 421.277, 270.074 ), Vector2Array( 497.153, 255.269, 597.086, 192.348, 630.397, 212.704, 650.754, 251.567, 648.903, 321.891, 669.26, 297.833, 676.663, 493.998, 619.293, 510.654, 598.937, 492.148, 621.144, 486.596, 648.903, 394.065, 624.926, 359.595, 526.762, 342.248, 530.464, 284.878, 587.833, 271.924 ), Vector2Array( 325.228, 486.302, 332.441, 457.494, 366.441, 467.494, 373.441, 436.494, 476.441, 468.494, 518.035, 461.477, 524.608, 359.37, 618.011, 402.479, 605.437, 456.366, 538.077, 499.891, 395.879, 501.87 ) ] - -[node name="navigation" type="Navigation2D"] - -script/script = ExtResource( 1 ) - -[node name="path" type="Sprite" parent="."] - -transform/pos = Vector2( 429.585, 287.32 ) -texture = ExtResource( 2 ) - -[node name="navpoly" type="NavigationPolygonInstance" parent="."] - -navpoly = SubResource( 1 ) -enabled = true - -[node name="agent" type="Sprite" parent="."] - -transform/pos = Vector2( 228.464, 132.594 ) -transform/scale = Vector2( 0.5, 0.5 ) -texture = ExtResource( 3 ) -offset = Vector2( 0, -26 ) - - diff --git a/old/2d/platformer_dcc/bullet.tscn b/old/2d/platformer_dcc/bullet.tscn deleted file mode 100644 index 78f566c3..00000000 --- a/old/2d/platformer_dcc/bullet.tscn +++ /dev/null @@ -1,115 +0,0 @@ -[gd_scene load_steps=6 format=1] - -[ext_resource path="res://bullet.gd" type="Script" id=1] -[ext_resource path="res://bullet.png" type="Texture" id=2] - -[sub_resource type="CircleShape2D" id=1] - -custom_solver_bias = 0.0 -radius = 10.0 - -[sub_resource type="ColorRamp" id=2] - -offsets = FloatArray( 0, 1 ) -colors = ColorArray( 1, 1, 1, 1, 1, 0, 0, 0 ) - -[sub_resource type="Animation" id=3] - -length = 1.5 -loop = false -step = 0.0 -tracks/0/type = "value" -tracks/0/path = NodePath("particles:config/emitting") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0 ), "transitions":FloatArray( 1 ), "values":[ false ] } -tracks/1/type = "value" -tracks/1/path = NodePath("sprite:visibility/self_opacity") -tracks/1/interp = 1 -tracks/1/keys = { "cont":true, "times":FloatArray( 0, 1.00394 ), "transitions":FloatArray( 1, 1 ), "values":[ 1.0, 0.0 ] } -tracks/2/type = "method" -tracks/2/path = NodePath(".") -tracks/2/interp = 1 -tracks/2/keys = { "times":FloatArray( 1.31 ), "transitions":FloatArray( 1 ), "values":[ { "args":[ ], "method":"queue_free" } ] } - -[node name="bullet" type="RigidBody2D"] - -input/pickable = false -shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -shapes/0/trigger = false -collision/layers = 1 -collision/mask = 1 -mode = 0 -mass = 1.0 -friction = 1.0 -bounce = 0.0 -gravity_scale = 1.0 -custom_integrator = false -continuous_cd = 2 -contacts_reported = 0 -contact_monitor = false -sleeping = false -can_sleep = true -velocity/linear = Vector2( 0, 0 ) -velocity/angular = 0.0 -damp_override/linear = -1.0 -damp_override/angular = -1.0 -script/script = ExtResource( 1 ) - -[node name="particles" type="Particles2D" parent="."] - -visibility/opacity = 0.559322 -visibility/blend_mode = 1 -config/amount = 24 -config/lifetime = 0.1 -config/local_space = false -config/texture = ExtResource( 2 ) -params/direction = 0.0 -params/spread = 10.0 -params/linear_velocity = 0.0 -params/spin_velocity = 0.0 -params/orbit_velocity = 0.0 -params/gravity_direction = 0.0 -params/gravity_strength = 0.0 -params/radial_accel = 0.0 -params/tangential_accel = 0.0 -params/damping = 0.0 -params/initial_angle = 0.0 -params/initial_size = 1.0 -params/final_size = 0.0 -params/hue_variation = 0.0 -params/anim_speed_scale = 1.0 -params/anim_initial_pos = 0.0 -color/color_ramp = SubResource( 2 ) - -[node name="sprite" type="Sprite" parent="."] - -texture = ExtResource( 2 ) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="."] - -shape = SubResource( 1 ) -trigger = false -_update_shape_index = -1 - -[node name="Timer" type="Timer" parent="."] - -process_mode = 1 -wait_time = 1.0 -one_shot = true -autostart = false - -[node name="anim" type="AnimationPlayer" parent="."] - -playback/process_mode = 1 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/shutdown = SubResource( 3 ) -playback/active = true -playback/speed = 1.0 -blend_times = [ ] -autoplay = "" - -[connection signal="timeout" from="Timer" to="." method="disable"] - - diff --git a/old/2d/platformer_dcc/coin.tscn b/old/2d/platformer_dcc/coin.tscn deleted file mode 100644 index 76730c83..00000000 --- a/old/2d/platformer_dcc/coin.tscn +++ /dev/null @@ -1,146 +0,0 @@ -[gd_scene load_steps=10 format=1] - -[ext_resource path="res://coin.gd" type="Script" id=1] -[ext_resource path="res://coin.png" type="Texture" id=2] -[ext_resource path="res://sound_coin.wav" type="Sample" id=3] -[ext_resource path="res://bullet.png" type="Texture" id=4] - -[sub_resource type="CircleShape2D" id=1] - -custom_solver_bias = 0.0 -radius = 10.0 - -[sub_resource type="Animation" id=2] - -resource/name = "spin" -length = 1.5 -loop = true -step = 0.25 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0, 0.25, 0.5, 0.75, 1, 1.25, 1.5 ), "transitions":FloatArray( 1, 1, 1, 1, 1, 1, 1 ), "values":[ 0, 1, 2, 3, 2, 1, 0 ] } - -[sub_resource type="Animation" id=3] - -length = 8.0 -loop = false -step = 0.0 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":true, "times":FloatArray( 0 ), "transitions":FloatArray( 1 ), "values":[ 0 ] } -tracks/1/type = "value" -tracks/1/path = NodePath("sound:play/play") -tracks/1/interp = 1 -tracks/1/keys = { "cont":false, "times":FloatArray( 0 ), "transitions":FloatArray( 1 ), "values":[ "coin" ] } -tracks/2/type = "value" -tracks/2/path = NodePath("particles:visibility/self_opacity") -tracks/2/interp = 1 -tracks/2/keys = { "cont":true, "times":FloatArray( 0, 1.66 ), "transitions":FloatArray( 1, 1 ), "values":[ 1.0, 0.0 ] } -tracks/3/type = "value" -tracks/3/path = NodePath("sprite:visibility/self_opacity") -tracks/3/interp = 1 -tracks/3/keys = { "cont":true, "times":FloatArray( 0, 0.4 ), "transitions":FloatArray( 1, 1 ), "values":[ 1.0, 0.0 ] } -tracks/4/type = "value" -tracks/4/path = NodePath("particles:config/emitting") -tracks/4/interp = 1 -tracks/4/keys = { "cont":false, "times":FloatArray( 0 ), "transitions":FloatArray( 1 ), "values":[ true ] } -tracks/5/type = "method" -tracks/5/path = NodePath(".") -tracks/5/interp = 1 -tracks/5/keys = { "times":FloatArray( 2.7 ), "transitions":FloatArray( 1 ), "values":[ { "args":[ ], "method":"queue_free" } ] } - -[sub_resource type="SampleLibrary" id=4] - -samples/coin = { "db":0.0, "pitch":1.0, "sample":ExtResource( 3 ) } - -[sub_resource type="ColorRamp" id=5] - -offsets = FloatArray( 0, 1 ) -colors = ColorArray( 1, 1, 1, 1, 0, 0, 0, 1 ) - -[node name="coin" type="Area2D"] - -input/pickable = true -shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -shapes/0/trigger = false -gravity_vec = Vector2( 0, 1 ) -gravity = 98.0 -linear_damp = 0.1 -angular_damp = 1.0 -script/script = ExtResource( 1 ) - -[node name="sprite" type="Sprite" parent="."] - -texture = ExtResource( 2 ) -hframes = 4 - -[node name="anim" type="AnimationPlayer" parent="."] - -playback/process_mode = 1 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/spin = SubResource( 2 ) -anims/taken = SubResource( 3 ) -playback/active = true -playback/speed = 3.0 -blend_times = [ ] -autoplay = "spin" - -[node name="collision" type="CollisionShape2D" parent="."] - -shape = SubResource( 1 ) -trigger = false -_update_shape_index = -1 - -[node name="sound" type="SamplePlayer2D" parent="."] - -params/volume_db = 0.0 -params/pitch_scale = 1.0 -params/attenuation/min_distance = 1.0 -params/attenuation/max_distance = 2048.0 -params/attenuation/distance_exp = 1.0 -config/polyphony = 1 -config/samples = SubResource( 4 ) -config/pitch_random = 0.0 - -[node name="particles" type="Particles2D" parent="."] - -visibility/blend_mode = 1 -config/amount = 8 -config/lifetime = 0.4 -config/emitting = false -config/half_extents = Vector2( 5, 5 ) -config/texture = ExtResource( 4 ) -params/direction = 0.0 -params/spread = 10.0 -params/linear_velocity = 0.0 -params/spin_velocity = 0.0 -params/orbit_velocity = 0.0 -params/gravity_direction = 0.0 -params/gravity_strength = 0.0 -params/radial_accel = 0.0 -params/tangential_accel = 0.0 -params/damping = 0.0 -params/initial_angle = 0.0 -params/initial_size = 0.2 -params/final_size = 0.2 -params/hue_variation = 0.0 -params/anim_speed_scale = 1.0 -params/anim_initial_pos = 0.0 -color/color_ramp = SubResource( 5 ) - -[node name="enabler" type="VisibilityEnabler2D" parent="."] - -rect = Rect2( -10, -10, 20, 20 ) -enabler/pause_animations = true -enabler/freeze_bodies = true -enabler/pause_particles = true -enabler/process_parent = false -enabler/fixed_process_parent = false - -[connection signal="body_enter" from="." to="." method="_on_body_enter"] - - diff --git a/old/2d/platformer_dcc/enemy.tscn b/old/2d/platformer_dcc/enemy.tscn deleted file mode 100644 index b01bd9fc..00000000 --- a/old/2d/platformer_dcc/enemy.tscn +++ /dev/null @@ -1,206 +0,0 @@ -[gd_scene load_steps=12 format=1] - -[ext_resource path="res://enemy.gd" type="Script" id=1] -[ext_resource path="res://enemy.png" type="Texture" id=2] -[ext_resource path="res://bullet.png" type="Texture" id=3] -[ext_resource path="res://sound_explode.wav" type="Sample" id=4] -[ext_resource path="res://sound_hit.wav" type="Sample" id=5] - -[sub_resource type="CircleShape2D" id=1] - -custom_solver_bias = 0.0 -radius = 14.0 - -[sub_resource type="Animation" id=2] - -resource/name = "explode" -length = 6.0 -loop = false -step = 0.0 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:visibility/self_opacity") -tracks/0/interp = 1 -tracks/0/keys = { "cont":true, "times":FloatArray( 3.58422, 4.33851 ), "transitions":FloatArray( 1, 1 ), "values":[ 1.0, 0.0 ] } -tracks/1/type = "value" -tracks/1/path = NodePath("sprite:frame") -tracks/1/interp = 1 -tracks/1/keys = { "cont":true, "times":FloatArray( 0 ), "transitions":FloatArray( 1 ), "values":[ 4 ] } -tracks/2/type = "value" -tracks/2/path = NodePath("Particles2D:config/emitting") -tracks/2/interp = 1 -tracks/2/keys = { "cont":false, "times":FloatArray( 3.47394 ), "transitions":FloatArray( 1 ), "values":[ true ] } -tracks/3/type = "method" -tracks/3/path = NodePath(".") -tracks/3/interp = 1 -tracks/3/keys = { "times":FloatArray( 3.20357, 5.07305 ), "transitions":FloatArray( 1, 1 ), "values":[ { "args":[ ], "method":"_pre_explode" }, { "args":[ ], "method":"_die" } ] } - -[sub_resource type="Animation" id=3] - -length = 6.75 -loop = true -step = 0.25 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0, 0.75, 1.5, 2.25, 3, 3.75, 4.5, 5.25, 6, 6.75 ), "transitions":FloatArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ), "values":[ 5, 6, 5, 6, 5, 6, 7, 6, 7, 5 ] } - -[sub_resource type="Animation" id=4] - -resource/name = "walk" -length = 1.25 -loop = true -step = 0.25 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0, 0.25, 0.5, 0.75, 1, 1.25 ), "transitions":FloatArray( 1, 1, 1, 1, 1, 1 ), "values":[ 0, 1, 2, 3, 4, 0 ] } - -[sub_resource type="ColorRamp" id=5] - -offsets = FloatArray( 0, 1 ) -colors = ColorArray( 1, 0.884956, 0.823009, 1, 0.768627, 0.389381, 0, 0 ) - -[sub_resource type="SampleLibrary" id=6] - -samples/explode = { "db":0.0, "pitch":1.0, "sample":ExtResource( 4 ) } -samples/hit = { "db":0.0, "pitch":1.0, "sample":ExtResource( 5 ) } - -[node name="enemy" type="RigidBody2D"] - -input/pickable = false -shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1, -1.08072, -2.16144 ) -shapes/0/trigger = false -shapes/1/shape = SubResource( 1 ) -shapes/1/transform = Matrix32( 1, 0, 0, 1, 6.48431, 3.24216 ) -shapes/1/trigger = false -shapes/2/shape = SubResource( 1 ) -shapes/2/transform = Matrix32( 1, 0, 0, 1, -12.495, 3.53415 ) -shapes/2/trigger = false -collision/layers = 1 -collision/mask = 1 -mode = 2 -mass = 1.0 -friction = 0.0 -bounce = 0.0 -gravity_scale = 1.0 -custom_integrator = false -continuous_cd = 0 -contacts_reported = 4 -contact_monitor = false -sleeping = false -can_sleep = true -velocity/linear = Vector2( 0, 0 ) -velocity/angular = 0.0 -damp_override/linear = -1.0 -damp_override/angular = -1.0 -script/script = ExtResource( 1 ) - -[node name="enabler" type="VisibilityEnabler2D" parent="."] - -transform/pos = Vector2( 16.2569, 11.0034 ) -transform/scale = Vector2( 23.5056, 10.8629 ) -rect = Rect2( -10, -10, 20, 20 ) -enabler/pause_animations = true -enabler/freeze_bodies = true -enabler/pause_particles = true -enabler/process_parent = false -enabler/fixed_process_parent = false - -[node name="anim" type="AnimationPlayer" parent="."] - -playback/process_mode = 1 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/explode = SubResource( 2 ) -anims/idle = SubResource( 3 ) -anims/walk = SubResource( 4 ) -playback/active = true -playback/speed = 3.0 -blend_times = [ ] -autoplay = "" - -[node name="sprite" type="Sprite" parent="."] - -texture = ExtResource( 2 ) -hframes = 8 -frame = 4 - -[node name="CollisionShape2D" type="CollisionShape2D" parent="."] - -transform/pos = Vector2( -1.08072, -2.16144 ) -shape = SubResource( 1 ) -trigger = false -_update_shape_index = -1 - -[node name="CollisionShape2D 2" type="CollisionShape2D" parent="."] - -transform/pos = Vector2( 6.48431, 3.24216 ) -shape = SubResource( 1 ) -trigger = false -_update_shape_index = -1 - -[node name="CollisionShape2D 3" type="CollisionShape2D" parent="."] - -transform/pos = Vector2( -12.495, 3.53415 ) -shape = SubResource( 1 ) -trigger = false -_update_shape_index = -1 - -[node name="raycast_left" type="RayCast2D" parent="."] - -transform/pos = Vector2( -33.2868, -9.34363 ) -enabled = true -cast_to = Vector2( 0, 45 ) -layer_mask = 1 -type_mask = 15 - -[node name="raycast_right" type="RayCast2D" parent="."] - -transform/pos = Vector2( 29.1987, -9.34363 ) -enabled = true -cast_to = Vector2( 0, 45 ) -layer_mask = 1 -type_mask = 15 - -[node name="Particles2D" type="Particles2D" parent="."] - -visibility/self_opacity = 0.121212 -visibility/blend_mode = 1 -config/amount = 32 -config/lifetime = 0.5 -config/emit_timeout = 0.5 -config/emitting = false -config/explosiveness = 0.1 -config/texture = ExtResource( 3 ) -params/direction = 0.0 -params/spread = 180.0 -params/linear_velocity = 90.0 -params/spin_velocity = 2.0 -params/orbit_velocity = 0.0 -params/gravity_direction = 0.0 -params/gravity_strength = 9.8 -params/radial_accel = 0.0 -params/tangential_accel = 0.0 -params/damping = 0.0 -params/initial_angle = 0.0 -params/initial_size = 2.0 -params/final_size = 3.0 -params/hue_variation = 0.0 -params/anim_speed_scale = 1.0 -params/anim_initial_pos = 0.0 -randomness/spin_velocity = 1.0 -color/color_ramp = SubResource( 5 ) - -[node name="sound" type="SamplePlayer2D" parent="."] - -params/volume_db = 0.0 -params/pitch_scale = 1.0 -params/attenuation/min_distance = 1.0 -params/attenuation/max_distance = 2048.0 -params/attenuation/distance_exp = 1.0 -config/polyphony = 3 -config/samples = SubResource( 6 ) -config/pitch_random = 0.0 - - diff --git a/old/2d/platformer_dcc/engine.cfg b/old/2d/platformer_dcc/engine.cfg deleted file mode 100644 index 07ce583c..00000000 --- a/old/2d/platformer_dcc/engine.cfg +++ /dev/null @@ -1,42 +0,0 @@ -[application] - -name="Dynamic Character Control-Based Platformer" -main_scene="res://stage.tscn" -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/old/2d/platformer_dcc/engine.cfg~ b/old/2d/platformer_dcc/engine.cfg~ deleted file mode 100644 index dddef264..00000000 --- a/old/2d/platformer_dcc/engine.cfg~ +++ /dev/null @@ -1,42 +0,0 @@ -[application] - -name="Platformer" -main_scene="res://stage.tscn" -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/old/2d/platformer_dcc/player.tscn b/old/2d/platformer_dcc/player.tscn deleted file mode 100644 index 77a2e272..00000000 --- a/old/2d/platformer_dcc/player.tscn +++ /dev/null @@ -1,330 +0,0 @@ -[gd_scene load_steps=25 format=1] - -[ext_resource path="res://player.gd" type="Script" id=1] -[ext_resource path="res://robot_demo.png" type="Texture" id=2] -[ext_resource path="res://bullet.png" type="Texture" id=3] -[ext_resource path="res://sound_coin.wav" type="Sample" id=4] -[ext_resource path="res://sound_jump.wav" type="Sample" id=5] -[ext_resource path="res://sound_shoot.wav" type="Sample" id=6] -[ext_resource path="res://osb_left.png" type="Texture" id=7] -[ext_resource path="res://osb_right.png" type="Texture" id=8] -[ext_resource path="res://osb_jump.png" type="Texture" id=9] -[ext_resource path="res://osb_fire.png" type="Texture" id=10] - -[sub_resource type="RayShape2D" id=1] - -custom_solver_bias = 0.5 -length = 20.0 - -[sub_resource type="ConvexPolygonShape2D" id=2] - -custom_solver_bias = 0.0 -points = Vector2Array( -19.902, -24.8691, 19.3625, -24.6056, -0.138023, 16.5036 ) - -[sub_resource type="ColorRamp" id=3] - -offsets = FloatArray( 0, 1 ) -colors = ColorArray( 1, 1, 1, 1, 0, 0, 0, 0.0442478 ) - -[sub_resource type="Animation" id=4] - -resource/name = "crouch" -length = 0.01 -loop = true -step = 0.25 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0 ), "transitions":FloatArray( 1 ), "values":[ 22 ] } - -[sub_resource type="Animation" id=5] - -resource/name = "falling" -length = 0.01 -loop = true -step = 0.25 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0 ), "transitions":FloatArray( 1 ), "values":[ 21 ] } - -[sub_resource type="Animation" id=6] - -resource/name = "falling_weapon" -length = 0.5 -loop = true -step = 0.25 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0 ), "transitions":FloatArray( 1 ), "values":[ 26 ] } - -[sub_resource type="Animation" id=7] - -length = 7.0 -loop = true -step = 0.25 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0, 1.25, 1.5, 2, 4.5, 4.75, 5, 5.25 ), "transitions":FloatArray( 1, 1, 1, 1, 1, 1, 1, 1 ), "values":[ 16, 17, 18, 16, 19, 20, 19, 16 ] } - -[sub_resource type="Animation" id=8] - -length = 0.5 -loop = true -step = 0.25 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0 ), "transitions":FloatArray( 1 ), "values":[ 25 ] } - -[sub_resource type="Animation" id=9] - -length = 0.5 -loop = true -step = 0.25 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0, 0.25, 0.5 ), "transitions":FloatArray( 1, 1, 1 ), "values":[ 23, 24, 23 ] } - -[sub_resource type="Animation" id=10] - -length = 0.5 -loop = true -step = 0.25 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0 ), "transitions":FloatArray( 1 ), "values":[ 26 ] } - -[sub_resource type="Animation" id=11] - -length = 1.25 -loop = true -step = 0.25 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0, 0.25, 0.5, 0.75, 1, 1.25 ), "transitions":FloatArray( 1, 1, 1, 1, 1, 1 ), "values":[ 0, 1, 2, 3, 4, 0 ] } - -[sub_resource type="Animation" id=12] - -length = 1.25 -loop = true -step = 0.25 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0, 0.25, 0.5, 0.75, 1, 1.25 ), "transitions":FloatArray( 1, 1, 1, 1, 1, 1 ), "values":[ 5, 6, 7, 8, 9, 5 ] } - -[sub_resource type="Animation" id=13] - -length = 1.25 -loop = true -step = 0.25 -tracks/0/type = "value" -tracks/0/path = NodePath("sprite:frame") -tracks/0/interp = 1 -tracks/0/keys = { "cont":false, "times":FloatArray( 0, 0.25, 0.5, 0.75, 1, 1.25 ), "transitions":FloatArray( 1, 1, 1, 1, 1, 1 ), "values":[ 10, 11, 12, 13, 14, 5 ] } - -[sub_resource type="SampleLibrary" id=14] - -samples/jump = { "db":0.0, "pitch":1.0, "sample":ExtResource( 5 ) } -samples/shoot = { "db":0.0, "pitch":1.0, "sample":ExtResource( 6 ) } -samples/coin = { "db":0.0, "pitch":1.0, "sample":ExtResource( 4 ) } - -[node name="player" type="RigidBody2D"] - -input/pickable = false -shapes/0/shape = SubResource( 1 ) -shapes/0/transform = Matrix32( 1, 0, 0, 1.76469, 0.291992, -12.1587 ) -shapes/0/trigger = false -shapes/1/shape = SubResource( 2 ) -shapes/1/transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -shapes/1/trigger = false -collision/layers = 1 -collision/mask = 1 -mode = 2 -mass = 3.0 -friction = 0.0 -bounce = 0.0 -gravity_scale = 1.0 -custom_integrator = true -continuous_cd = 0 -contacts_reported = 3 -contact_monitor = false -sleeping = false -can_sleep = true -velocity/linear = Vector2( 0, 0 ) -velocity/angular = 0.0 -damp_override/linear = -1.0 -damp_override/angular = -1.0 -script/script = ExtResource( 1 ) - -[node name="sprite" type="Sprite" parent="."] - -texture = ExtResource( 2 ) -vframes = 2 -hframes = 16 - -[node name="smoke" type="Particles2D" parent="sprite"] - -visibility/self_opacity = 0.363636 -visibility/blend_mode = 1 -transform/pos = Vector2( 20.7312, 3.21187 ) -transform/rot = 83.4504 -config/amount = 4 -config/lifetime = 0.3 -config/emit_timeout = 0.3 -config/emitting = false -config/local_space = false -config/explosiveness = 0.1 -config/texture = ExtResource( 3 ) -params/direction = 0.0 -params/spread = 180.0 -params/linear_velocity = 20.0 -params/spin_velocity = 1.0 -params/orbit_velocity = 0.0 -params/gravity_direction = 0.0 -params/gravity_strength = 9.8 -params/radial_accel = 0.0 -params/tangential_accel = 0.0 -params/damping = 0.0 -params/initial_angle = 0.0 -params/initial_size = 2.0 -params/final_size = 2.0 -params/hue_variation = 0.0 -params/anim_speed_scale = 1.0 -params/anim_initial_pos = 0.0 -randomness/spin_velocity = 2.0 -color/color_ramp = SubResource( 3 ) - -[node name="anim" type="AnimationPlayer" parent="."] - -playback/process_mode = 1 -playback/default_blend_time = 0.0 -root/root = NodePath("..") -anims/crouch = SubResource( 4 ) -anims/falling = SubResource( 5 ) -anims/falling_weapon = SubResource( 6 ) -anims/idle = SubResource( 7 ) -anims/idle_weapon = SubResource( 8 ) -anims/jumping = SubResource( 9 ) -anims/jumping_weapon = SubResource( 10 ) -anims/run = SubResource( 11 ) -anims/run_weapon = SubResource( 12 ) -anims/standing_weapon_ready = SubResource( 13 ) -playback/active = true -playback/speed = 2.0 -blend_times = [ ] -autoplay = "" - -[node name="camera" type="Camera2D" parent="."] - -anchor_mode = 1 -rotating = false -current = true -zoom = Vector2( 1, 1 ) -limit/left = 0 -limit/top = 0 -limit/right = 10000000 -limit/bottom = 10000000 -drag_margin/h_enabled = true -drag_margin/v_enabled = true -smoothing/enable = false -smoothing/speed = 5.0 -drag_margin/left = 0.2 -drag_margin/top = 0.2 -drag_margin/right = 0.2 -drag_margin/bottom = 0.2 - -[node name="bullet_shoot" type="Position2D" parent="."] - -transform/pos = Vector2( 31.2428, 4.08784 ) - -[node name="CollisionShape2D" type="CollisionShape2D" parent="."] - -transform/pos = Vector2( 0.291992, -12.1587 ) -transform/scale = Vector2( 1, 1.76469 ) -shape = SubResource( 1 ) -trigger = false -_update_shape_index = -1 - -[node name="sound" type="SamplePlayer" parent="."] - -config/polyphony = 1 -config/samples = SubResource( 14 ) -default/volume_db = 0.0 -default/pitch_scale = 1.0 -default/pan = 0.0 -default/depth = 0.0 -default/height = 0.0 -default/filter/type = 0 -default/filter/cutoff = 0.0 -default/filter/resonance = 0.0 -default/filter/gain = 0.0 -default/reverb_room = 2 -default/reverb_send = 0.0 -default/chorus_send = 0.0 - -[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."] - -build_mode = 0 -polygon = Vector2Array( -0.138023, 16.5036, -19.902, -24.8691, 19.3625, -24.6056 ) -shape_range = Vector2( -1, -1 ) -trigger = false - -[node name="ui" type="CanvasLayer" parent="."] - -layer = 0 -offset = Vector2( 0, 0 ) -rotation = 0.0 -scale = Vector2( 1, 1 ) - -[node name="left" type="TouchScreenButton" parent="ui"] - -transform/pos = Vector2( 27.7593, 360.87 ) -transform/scale = Vector2( 1.49157, 1.46265 ) -normal = ExtResource( 7 ) -pressed = null -bitmask = null -passby_press = true -action = "move_left" -visibility_mode = 1 - -[node name="right" type="TouchScreenButton" parent="ui"] - -transform/pos = Vector2( 121.542, 361.415 ) -transform/scale = Vector2( 1.49157, 1.46265 ) -normal = ExtResource( 8 ) -pressed = null -bitmask = null -passby_press = true -action = "move_right" -visibility_mode = 1 - -[node name="jump" type="TouchScreenButton" parent="ui"] - -transform/pos = Vector2( 666.224, 359.02 ) -transform/scale = Vector2( 1.49157, 1.46265 ) -normal = ExtResource( 9 ) -pressed = null -bitmask = null -passby_press = false -action = "jump" -visibility_mode = 1 - -[node name="fire" type="TouchScreenButton" parent="ui"] - -transform/pos = Vector2( 668.073, 262.788 ) -transform/scale = Vector2( 1.49157, 1.46265 ) -normal = ExtResource( 10 ) -pressed = null -bitmask = null -passby_press = false -action = "shoot" -visibility_mode = 1 - - diff --git a/old/2d/platformer_dcc/stage.tscn b/old/2d/platformer_dcc/stage.tscn deleted file mode 100644 index 9709efef..00000000 --- a/old/2d/platformer_dcc/stage.tscn +++ /dev/null @@ -1,352 +0,0 @@ -[gd_scene load_steps=10 format=1] - -[ext_resource path="res://tileset.tres" type="TileSet" id=1] -[ext_resource path="res://coin.tscn" type="PackedScene" id=2] -[ext_resource path="res://moving_platform.tscn" type="PackedScene" id=3] -[ext_resource path="res://seesaw.tscn" type="PackedScene" id=4] -[ext_resource path="res://one_way_platform.tscn" type="PackedScene" id=5] -[ext_resource path="res://player.tscn" type="PackedScene" id=6] -[ext_resource path="res://music.ogg" type="AudioStream" id=7] -[ext_resource path="res://enemy.tscn" type="PackedScene" id=8] -[ext_resource path="res://parallax_bg.tscn" type="PackedScene" id=9] - -[node name="stage" type="Node"] - -[node name="tile_map" type="TileMap" parent="."] - -mode = 0 -tile_set = ExtResource( 1 ) -cell/size = Vector2( 64, 64 ) -cell/quadrant_size = 8 -cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 ) -cell/half_offset = 2 -cell/tile_origin = 0 -cell/y_sort = false -collision/use_kinematic = false -collision/friction = 1.0 -collision/bounce = 0.0 -collision/layers = 1 -collision/mask = 1 -occluder/light_mask = 1 -tile_data = IntArray( 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 ) -__meta__ = { "_edit_lock_":true } - -[node name="coins" type="Node" parent="."] - -[node name="coin" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 672, 1179 ) -linear_damp = 0.1 - -[node name="coin 2" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 704, 1179 ) -linear_damp = 0.1 - -[node name="coin 3" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 736, 1179 ) -linear_damp = 0.1 - -[node name="coin 4" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1120, 992 ) -linear_damp = 0.1 - -[node name="coin 5" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1152, 992 ) -linear_damp = 0.1 - -[node name="coin 6" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1184, 992 ) -linear_damp = 0.1 - -[node name="coin 7" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1216, 992 ) -linear_damp = 0.1 - -[node name="coin 8" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1248, 992 ) -linear_damp = 0.1 - -[node name="coin 9" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1568, 864 ) -linear_damp = 0.1 - -[node name="coin 10" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1632, 864 ) -linear_damp = 0.1 - -[node name="coin 11" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1824, 768 ) -linear_damp = 0.1 - -[node name="coin 12" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1888, 768 ) -linear_damp = 0.1 - -[node name="coin 13" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 2080, 672 ) -linear_damp = 0.1 - -[node name="coin 14" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 2144, 672 ) -linear_damp = 0.1 - -[node name="coin 15" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1792, 1248 ) -linear_damp = 0.1 - -[node name="coin 16" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1856, 1248 ) -linear_damp = 0.1 - -[node name="coin 17" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1920, 1248 ) -linear_damp = 0.1 - -[node name="coin 18" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1920, 1184 ) -linear_damp = 0.1 - -[node name="coin 19" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1856, 1184 ) -linear_damp = 0.1 - -[node name="coin 20" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 1792, 1184 ) -linear_damp = 0.1 - -[node name="coin 21" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 98.8868, 488.515 ) -linear_damp = 0.1 - -[node name="coin 22" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 89.5989, 481.217 ) -linear_damp = 0.1 - -[node name="coin 23" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 108.175, 481.217 ) -linear_damp = 0.1 - -[node name="coin 24" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 116.136, 469.939 ) -linear_damp = 0.1 - -[node name="coin 25" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 117.463, 457.997 ) -linear_damp = 0.1 - -[node name="coin 26" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 106.184, 449.373 ) -linear_damp = 0.1 - -[node name="coin 27" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 98.2234, 458.661 ) -linear_damp = 0.1 - -[node name="coin 28" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 88.272, 448.71 ) -linear_damp = 0.1 - -[node name="coin 29" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 79.6476, 457.334 ) -linear_damp = 0.1 - -[node name="coin 30" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 82.9647, 468.612 ) -linear_damp = 0.1 - -[node name="coin 31" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 3357.42, 465.288 ) -linear_damp = 0.1 - -[node name="coin 31 2" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 3421.42, 465.288 ) -linear_damp = 0.1 - -[node name="coin 31 3" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 3485.42, 465.288 ) -linear_damp = 0.1 - -[node name="coin 31 4" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 3485.42, 401.288 ) -linear_damp = 0.1 - -[node name="coin 31 5" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 3421.42, 401.288 ) -linear_damp = 0.1 - -[node name="coin 31 6" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 3357.42, 401.288 ) -linear_damp = 0.1 - -[node name="coin 32" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 4172.75, 605.058 ) -linear_damp = 0.1 - -[node name="coin 31 7" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 4236.75, 605.058 ) -linear_damp = 0.1 - -[node name="coin 31 7 2" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 4300.75, 605.058 ) -linear_damp = 0.1 - -[node name="coin 31 7 3" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 4300.75, 541.058 ) -linear_damp = 0.1 - -[node name="coin 31 7 4" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 4236.75, 541.058 ) -linear_damp = 0.1 - -[node name="coin 31 7 5" parent="coins" instance=ExtResource( 2 )] - -transform/pos = Vector2( 4172.75, 541.058 ) -linear_damp = 0.1 - -[node name="props" type="Node" parent="."] - -[node name="moving_platform" parent="props" instance=ExtResource( 3 )] - -transform/pos = Vector2( 1451.86, 742.969 ) -motion = Vector2( 0, 140 ) -cycle = 5.0 - -[node name="moving_platform 2" parent="props" instance=ExtResource( 3 )] - -transform/pos = Vector2( 624.824, 545.544 ) -motion = Vector2( 300, 0 ) -cycle = 10.0 - -[node name="moving_platform 3" parent="props" instance=ExtResource( 3 )] - -transform/pos = Vector2( 3419.86, 739.662 ) -motion = Vector2( 450, 0 ) -cycle = 10.0 - -[node name="seesaw" parent="props" instance=ExtResource( 4 )] - -transform/pos = Vector2( 2402.79, 849.52 ) - -[node name="one_way_platform" parent="props" instance=ExtResource( 5 )] - -transform/pos = Vector2( 927.698, 1120.81 ) - -[node name="player" parent="." instance=ExtResource( 6 )] - -transform/pos = Vector2( 251.684, 1045.6 ) - -[node name="music" type="StreamPlayer" parent="."] - -stream/stream = ExtResource( 7 ) -stream/play = false -stream/loop = true -stream/volume_db = 2.0 -stream/autoplay = true -stream/paused = false -stream/loop_restart_time = 0.0 -stream/buffering_ms = 500 - -[node name="enemies" type="Node" parent="."] - -[node name="enemy 5" parent="enemies" instance=ExtResource( 8 )] - -transform/pos = Vector2( 834.664, 1309.6 ) - -[node name="enemy 6" parent="enemies" instance=ExtResource( 8 )] - -transform/pos = Vector2( 707.665, 1225.05 ) - -[node name="enemy 7" parent="enemies" instance=ExtResource( 8 )] - -transform/pos = Vector2( 1125.21, 1053.06 ) - -[node name="enemy 8" parent="enemies" instance=ExtResource( 8 )] - -transform/pos = Vector2( 1292.11, 1059.24 ) - -[node name="enemy 9" parent="enemies" instance=ExtResource( 8 )] - -transform/pos = Vector2( 1607.38, 923.239 ) - -[node name="enemy 10" parent="enemies" instance=ExtResource( 8 )] - -transform/pos = Vector2( 2586.9, 939.059 ) - -[node name="enemy 11" parent="enemies" instance=ExtResource( 8 )] - -transform/pos = Vector2( 1457.6, 688.741 ) - -[node name="enemy 12" parent="enemies" instance=ExtResource( 8 )] - -transform/pos = Vector2( 1193.63, 460.381 ) - -[node name="enemy 13" parent="enemies" instance=ExtResource( 8 )] - -transform/pos = Vector2( 3429.73, 540.865 ) - -[node name="enemy 14" parent="enemies" instance=ExtResource( 8 )] - -transform/pos = Vector2( 3546.2, 1356.19 ) - -[node name="enemy 15" parent="enemies" instance=ExtResource( 8 )] - -transform/pos = Vector2( 2406.63, 815.115 ) - -[node name="parallax_bg" parent="." instance=ExtResource( 9 )] - -[node name="Label" type="Label" parent="."] - -focus/ignore_mouse = true -focus/stop_mouse = true -size_flags/horizontal = 2 -margin/left = 12.0 -margin/top = -202.0 -margin/right = 358.0 -margin/bottom = -10.0 -text = "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.tscn file and follow \"instructions.\"" -autowrap = true -percent_visible = 1.0 -lines_skipped = 0 -max_lines_visible = -1 - - diff --git a/old/2d/platformer_dcc/tiles_demo.png.flags b/old/2d/platformer_dcc/tiles_demo.png.flags deleted file mode 100644 index efb2b8ce..00000000 --- a/old/2d/platformer_dcc/tiles_demo.png.flags +++ /dev/null @@ -1 +0,0 @@ -filter=false