mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-05 07:20:07 +01:00
39 lines
962 B
Plaintext
39 lines
962 B
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://moving_platform.gd" type="Script" id=1]
|
|
[ext_resource path="res://moving_platform.png" type="Texture" id=2]
|
|
|
|
[sub_resource type="ConvexPolygonShape2D" id=1]
|
|
|
|
custom_solver_bias = 0.0
|
|
points = PoolVector2Array( -88, -24, 88, -24, 88, 24, -88, 24 )
|
|
|
|
[node name="moving_platform" type="Node2D"]
|
|
|
|
script = ExtResource( 1 )
|
|
motion = Vector2( 0, 0 )
|
|
cycle = 1.0
|
|
|
|
[node name="platform" type="KinematicBody2D" parent="."]
|
|
|
|
input_pickable = false
|
|
shapes/0/shape = SubResource( 1 )
|
|
shapes/0/transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
shapes/0/trigger = false
|
|
collision_layer = 1
|
|
collision_mask = 1
|
|
collision/margin = 0.08
|
|
|
|
[node name="Sprite" type="Sprite" parent="platform"]
|
|
|
|
texture = ExtResource( 2 )
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="platform"]
|
|
|
|
build_mode = 0
|
|
polygon = PoolVector2Array( -88, -24, 88, -24, 88, 24, -88, 24 )
|
|
shape_range = Vector2( 0, 0 )
|
|
trigger = false
|
|
|
|
|