Game.tscn 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://tileset/tileset.tres" type="TileSet" id=1]
  3. [ext_resource path="res://pathfind_astar.gd" type="Script" id=2]
  4. [ext_resource path="res://character.gd" type="Script" id=3]
  5. [ext_resource path="res://sprites/character.png" type="Texture" id=4]
  6. [node name="Game" type="Node" index="0"]
  7. [node name="TileMap" type="TileMap" parent="." index="0"]
  8. mode = 0
  9. tile_set = ExtResource( 1 )
  10. cell_size = Vector2( 64, 64 )
  11. cell_quadrant_size = 16
  12. cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
  13. cell_half_offset = 2
  14. cell_tile_origin = 0
  15. cell_y_sort = false
  16. cell_clip_uv = false
  17. collision_use_kinematic = false
  18. collision_friction = 1.0
  19. collision_bounce = 0.0
  20. collision_layer = 1
  21. collision_mask = 1
  22. occluder_light_mask = 1
  23. format = 1
  24. tile_data = PoolIntArray( 65537, 0, 0, 65541, 0, 0, 65545, 0, 0, 65550, 0, 0, 196614, 0, 0, 196615, 0, 0, 196616, 0, 0, 196617, 0, 0, 196618, 0, 0, 196619, 0, 0, 262145, 0, 0, 262146, 0, 0, 262147, 0, 0, 327683, 0, 0, 393219, 0, 0, 393220, 0, 0, 393221, 0, 0, 393222, 0, 0, 393226, 0, 0, 393227, 0, 0, 393228, 0, 0, 458761, 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 )
  25. script = ExtResource( 2 )
  26. _sections_unfolded = [ "Cell" ]
  27. map_size = Vector2( 16, 16 )
  28. [node name="Character" type="Position2D" parent="." index="1"]
  29. script = ExtResource( 3 )
  30. SPEED = 200.0
  31. [node name="Sprite" type="Sprite" parent="Character" index="0"]
  32. position = Vector2( 7, 0 )
  33. texture = ExtResource( 4 )