new thing, level editor thing maybe, not really useful right now, not sure why i did this

This commit is contained in:
Haze Weathers 2024-03-13 14:02:01 -04:00
parent 0b00c9ff4a
commit aa40a0c6c2
2 changed files with 122 additions and 0 deletions

View file

@ -0,0 +1,30 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://graphics/moving_platform/moving_platform.png" type="Texture" id=1]
[ext_resource path="res://objects/environment/moving_platform/moving_platform_scholar.gd" type="Script" id=2]
[sub_resource type="SegmentShape2D" id=1]
resource_local_to_scene = true
a = Vector2( -4, 0.01 )
b = Vector2( 4, 0.01 )
[node name="MovingPlatform" type="Node2D"]
script = ExtResource( 2 )
[node name="Body" type="KinematicBody2D" parent="."]
collision_layer = 4
motion/sync_to_physics = true
moving_platform_apply_velocity_on_leave = 1
[node name="Sprite" type="Sprite" parent="Body"]
unique_name_in_owner = true
texture = ExtResource( 1 )
offset = Vector2( 0, 2 )
region_enabled = true
region_rect = Rect2( 0, 0, 8, 4 )
region_filter_clip = true
[node name="CollisionShape" type="CollisionShape2D" parent="Body"]
unique_name_in_owner = true
shape = SubResource( 1 )
one_way_collision = true