level 2 - moving plattforms
level2 almost finished
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bofueafaqy7so"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/blocks/move_platform.gd" id="1_lakrn"]
|
||||
[ext_resource type="Texture2D" uid="uid://dth47lmb44qk8" path="res://assets/items.png" id="2_2bvoe"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ybhkw"]
|
||||
atlas = ExtResource("2_2bvoe")
|
||||
region = Rect2(63, 38, 48, 8)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_hdxpr"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ybhkw")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_w18em"]
|
||||
size = Vector2(48, 8)
|
||||
|
||||
[node name="MovePlatform" type="RigidBody2D"]
|
||||
collision_mask = 0
|
||||
gravity_scale = 0.0
|
||||
lock_rotation = true
|
||||
script = ExtResource("1_lakrn")
|
||||
veloc = Vector2(0, -50)
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_hdxpr")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
rotation = -6.28318
|
||||
shape = SubResource("RectangleShape2D_w18em")
|
||||
one_way_collision = true
|
||||
Reference in New Issue
Block a user