123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- [gd_scene load_steps=7 format=2]
- [ext_resource path="res://Player.gd" type="Script" id=1]
- [ext_resource path="res://icon.png" type="Texture" id=2]
- [ext_resource path="res://enemy.gd" type="Script" id=3]
- [ext_resource path="res://sky-1.jpg" type="Texture" id=4]
- [sub_resource type="RectangleShape2D" id=1]
- custom_solver_bias = 0.0
- extents = Vector2( 10, 10 )
- [sub_resource type="RectangleShape2D" id=2]
- custom_solver_bias = 0.0
- extents = Vector2( 10, 10 )
- [node name="World" type="Node"]
- [node name="Camera2D" type="Camera2D" parent="." index="0"]
- visible = false
- position = Vector2( 512.095, 300.44 )
- anchor_mode = 1
- rotating = false
- current = false
- zoom = Vector2( 1, 1 )
- limit_left = -10000000
- limit_top = -10000000
- limit_right = 10000000
- limit_bottom = 10000000
- limit_smoothed = false
- drag_margin_h_enabled = true
- drag_margin_v_enabled = true
- smoothing_enabled = false
- smoothing_speed = 5.0
- offset_v = 0.0
- offset_h = 0.0
- drag_margin_left = 0.2
- drag_margin_top = 0.2
- drag_margin_right = 0.2
- drag_margin_bottom = 0.2
- editor_draw_screen = true
- editor_draw_limits = false
- editor_draw_drag_margin = false
- _sections_unfolded = [ "Transform" ]
- [node name="Player" type="KinematicBody2D" parent="." index="1"]
- position = Vector2( 116.464, 280.895 )
- input_pickable = false
- collision_layer = 1
- collision_mask = 1
- collision/safe_margin = 0.08
- script = ExtResource( 1 )
- _sections_unfolded = [ "Transform", "collision" ]
- SPEED = 200
- [node name="CollisionShape2D" type="CollisionShape2D" parent="Player" index="0"]
- scale = Vector2( 3, 3 )
- shape = SubResource( 1 )
- _sections_unfolded = [ "Transform" ]
- [node name="icon" type="Sprite" parent="Player" index="1"]
- position = Vector2( -2.38309, 1.46347 )
- texture = ExtResource( 2 )
- [node name="Position2D" type="Position2D" parent="Player" index="2"]
- position = Vector2( 128.062, -1.93759 )
- [node name="Timer" type="Timer" parent="Player" index="3"]
- process_mode = 1
- wait_time = 1.0
- one_shot = false
- autostart = false
- [node name="renemy" type="Area2D" parent="." index="2"]
- position = Vector2( 873.417, 345.372 )
- input_pickable = true
- gravity_vec = Vector2( 0, 1 )
- gravity = 98.0
- linear_damp = 0.1
- angular_damp = 1.0
- audio_bus_override = false
- audio_bus_name = "Master"
- script = ExtResource( 3 )
- speed = 200
- [node name="CollisionShape2D" type="CollisionShape2D" parent="renemy" index="0"]
- scale = Vector2( 2.33625, 2.16546 )
- shape = SubResource( 2 )
- _sections_unfolded = [ "Transform" ]
- [node name="icon2" type="Sprite" parent="renemy" index="1"]
- position = Vector2( 1.50732, 1.50739 )
- texture = ExtResource( 2 )
- _sections_unfolded = [ "Offset", "Transform" ]
- [node name="ParallaxBackground" type="ParallaxBackground" parent="." index="3"]
- layer = -1
- offset = Vector2( 0, 0 )
- rotation = 0.0
- scale = Vector2( 1, 1 )
- transform = Transform2D( 1, 0, 0, 1, 0, 0 )
- scroll_offset = Vector2( 0, 0 )
- scroll_base_offset = Vector2( 0, 0 )
- scroll_base_scale = Vector2( 1, 1 )
- scroll_limit_begin = Vector2( 0, 0 )
- scroll_limit_end = Vector2( 0, 0 )
- scroll_ignore_camera_zoom = false
- [node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground" index="0"]
- z_index = -1
- motion_scale = Vector2( 0.5, 0.5 )
- motion_offset = Vector2( 0, 0 )
- motion_mirroring = Vector2( 1100, 600 )
- _sections_unfolded = [ "Motion", "Transform", "Z Index" ]
- [node name="sky-1" type="Sprite" parent="ParallaxBackground/ParallaxLayer" index="0"]
- position = Vector2( 563.088, 307.363 )
- scale = Vector2( 0.75, 0.75 )
- z_index = -1
- texture = ExtResource( 4 )
- _sections_unfolded = [ "Transform", "Z Index" ]
- [connection signal="timeout" from="Player/Timer" to="Player" method="_on_Timer_timeout"]
- [connection signal="body_entered" from="renemy" to="renemy" method="_on_renemy_body_entered"]
|