it works
This commit is contained in:
17
scenes/platform.tscn
Normal file
17
scenes/platform.tscn
Normal file
@@ -0,0 +1,17 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ct26ixf6dfdec"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c2cq8egoxepdj" path="res://assets/brackeys_platformer_assets/sprites/platforms.png" id="1_ba0x2"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nlgqw"]
|
||||
size = Vector2(32, 8)
|
||||
|
||||
[node name="Platform" type="AnimatableBody2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_ba0x2")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(16, 0, 32, 9)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_nlgqw")
|
||||
one_way_collision = true
|
||||
Reference in New Issue
Block a user