diff --git a/Assets/World/Grounds/Ground1.gdshader b/Assets/World/Grounds/Ground1.gdshader new file mode 100644 index 0000000..d855d9a --- /dev/null +++ b/Assets/World/Grounds/Ground1.gdshader @@ -0,0 +1,14 @@ +shader_type canvas_item; + +void vertex() { + // Called for every vertex the material is visible on. +} + +void fragment() { + // Called for every pixel the material is visible on. +} + +//void light() { + // Called for every pixel for every light affecting the CanvasItem. + // Uncomment to replace the default light processing function with this one. +//} diff --git a/Assets/World/Grounds/Ground1.tscn b/Assets/World/Grounds/Ground1.tscn new file mode 100644 index 0000000..26889e2 --- /dev/null +++ b/Assets/World/Grounds/Ground1.tscn @@ -0,0 +1,12 @@ +[gd_scene load_steps=2 format=3 uid="uid://eo08vhsoltt6"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_2rdbk"] +size = Vector2(364, 54) + +[node name="Ground1" type="Node2D"] + +[node name="StaticBody2D" type="StaticBody2D" parent="."] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"] +shape = SubResource("RectangleShape2D_2rdbk") +debug_color = Color(0, 0.645698, 0.254313, 0.42) diff --git a/world.tscn b/world.tscn index 611da33..7a03bfc 100644 --- a/world.tscn +++ b/world.tscn @@ -1,9 +1,12 @@ -[gd_scene load_steps=3 format=3 uid="uid://b0jkivtwisycv"] +[gd_scene load_steps=5 format=3 uid="uid://b0jkivtwisycv"] [ext_resource type="PackedScene" uid="uid://cny5b638kjd3w" path="res://Assets/Characters/Friendly/Tellik/Tellick.tscn" id="1_dgu6h"] +[ext_resource type="PackedScene" uid="uid://eo08vhsoltt6" path="res://Assets/World/Grounds/Ground1.tscn" id="2_gboim"] [sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_5e4u7"] +[sub_resource type="TileSet" id="TileSet_bke3u"] + [node name="World" type="Node2D"] physics_interpolation_mode = 1 @@ -17,3 +20,10 @@ position = Vector2(-7, -130) [node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"] position = Vector2(1, 140) shape = SubResource("WorldBoundaryShape2D_5e4u7") + +[node name="Ground1" parent="." instance=ExtResource("2_gboim")] +position = Vector2(-5, -2) + +[node name="TileMap" type="TileMap" parent="."] +tile_set = SubResource("TileSet_bke3u") +format = 2