game.tscn 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. [gd_scene load_steps=10 format=3 uid="uid://0g57p64tiyqn"]
  2. [ext_resource type="Texture2D" uid="uid://baj4xukvf568b" path="res://sprites/space.png" id="1_2jdkd"]
  3. [ext_resource type="TileSet" uid="uid://f3wmg8detyai" path="res://tileset/tileset.tres" id="2_aylbj"]
  4. [ext_resource type="Script" path="res://pathfind_astar.gd" id="3_taaih"]
  5. [ext_resource type="Script" path="res://character.gd" id="4_ticbk"]
  6. [ext_resource type="Texture2D" uid="uid://bjsmfha28ro00" path="res://sprites/sparkle.png" id="5_1i6tb"]
  7. [ext_resource type="Texture2D" uid="uid://vsempfpeu7wr" path="res://sprites/character.png" id="6_b3lcn"]
  8. [sub_resource type="CanvasItemMaterial" id="1"]
  9. blend_mode = 1
  10. particles_animation = true
  11. particles_anim_h_frames = 8
  12. particles_anim_v_frames = 1
  13. particles_anim_loop = false
  14. [sub_resource type="Curve" id="2"]
  15. _data = [Vector2(0, 0), 0.0, 1.15429, 0, 0, Vector2(0.316832, 0.342045), 0.0399209, 0.0399209, 0, 0, Vector2(1, 0.136364), -1.05591, 0.0, 0, 0]
  16. point_count = 3
  17. [sub_resource type="Gradient" id="3"]
  18. offsets = PackedFloat32Array(0, 0.692737, 1)
  19. colors = PackedColorArray(1, 0.893555, 0, 1, 0.265625, 1, 0.490903, 1, 0.0154343, 0.688679, 0.987793, 1)
  20. [node name="Game" type="Node2D"]
  21. [node name="Background" type="Sprite2D" parent="."]
  22. texture = ExtResource("1_2jdkd")
  23. offset = Vector2(576, 324)
  24. [node name="TileMap" type="TileMap" parent="."]
  25. tile_set = ExtResource("2_aylbj")
  26. format = 2
  27. layer_0/tile_data = PackedInt32Array(65537, 0, 0, 65541, 0, 0, 65545, 0, 0, 65550, 0, 0, 196617, 0, 0, 196618, 0, 0, 196619, 0, 0, 196616, 0, 0, 196615, 0, 0, 196614, 0, 0, 262147, 0, 0, 262146, 0, 0, 262145, 0, 0, 327683, 0, 0, 393219, 0, 0, 393220, 0, 0, 393221, 0, 0, 393222, 0, 0, 524289, 0, 0, 524290, 0, 0, 524291, 0, 0, 524292, 0, 0, 524293, 0, 0, 524294, 0, 0, 524295, 0, 0, 524296, 0, 0, 524297, 0, 0, 458761, 0, 0, 393226, 0, 0, 393227, 0, 0, 393228, 0, 0, 458767, 0, 0, 393231, 0, 0, 327695, 0, 0, 262159, 0, 0, 196624, 0, 0, 262157, 0, 0)
  28. script = ExtResource("3_taaih")
  29. [node name="Character" type="Marker2D" parent="."]
  30. position = Vector2(32, 32)
  31. script = ExtResource("4_ticbk")
  32. [node name="CPUParticles2D" type="CPUParticles2D" parent="Character"]
  33. material = SubResource("1")
  34. position = Vector2(-20, 0)
  35. rotation = 1.5708
  36. amount = 30
  37. texture = ExtResource("5_1i6tb")
  38. emission_shape = 1
  39. emission_sphere_radius = 8.0
  40. direction = Vector2(0, 1)
  41. spread = 25.0
  42. gravity = Vector2(0, 0)
  43. initial_velocity_min = 50.0
  44. initial_velocity_max = 50.0
  45. scale_amount_curve = SubResource("2")
  46. color_ramp = SubResource("3")
  47. [node name="Sprite2D" type="Sprite2D" parent="Character"]
  48. position = Vector2(7, 0)
  49. texture = ExtResource("6_b3lcn")
  50. [node name="Camera2D" type="Camera2D" parent="."]
  51. offset = Vector2(576, 324)