Initial commit
This commit is contained in:
22
scenes/platform.tscn
Normal file
22
scenes/platform.tscn
Normal file
@@ -0,0 +1,22 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://0851lly0y3wb"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bjl7pb5j1sf53" path="res://assets/sprites/platforms.png" id="1_ba0x2"]
|
||||
[ext_resource type="Script" uid="uid://7trtklxye7up" path="res://scenes/platform.gd" id="1_nlgqw"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ba0x2"]
|
||||
size = Vector2(32, 9.05475)
|
||||
|
||||
[node name="Platform" type="AnimatableBody2D"]
|
||||
scale = Vector2(2, 2)
|
||||
script = ExtResource("1_nlgqw")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
position = Vector2(0, -4.5)
|
||||
texture = ExtResource("1_ba0x2")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(16, 0, 32, 9)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -4.44167)
|
||||
shape = SubResource("RectangleShape2D_ba0x2")
|
||||
one_way_collision = true
|
||||
Reference in New Issue
Block a user