163 lines
6.5 KiB
Text
163 lines
6.5 KiB
Text
[gd_scene load_steps=26 format=2]
|
|
|
|
[ext_resource path="res://levels/world1/script/world1.gd" type="Script" id=1]
|
|
[ext_resource path="res://characters/player/script/player.gd" type="Script" id=2]
|
|
[ext_resource path="res://characters/player/sprite/Run0.png" type="Texture" id=3]
|
|
[ext_resource path="res://characters/player/sprite/Run1.png" type="Texture" id=4]
|
|
[ext_resource path="res://characters/player/sprite/Run2.png" type="Texture" id=5]
|
|
[ext_resource path="res://characters/player/sprite/Run3.png" type="Texture" id=6]
|
|
[ext_resource path="res://characters/player/sprite/Run4.png" type="Texture" id=7]
|
|
[ext_resource path="res://characters/player/sprite/Run7.png" type="Texture" id=8]
|
|
[ext_resource path="res://characters/player/sprite/Idle0.png" type="Texture" id=9]
|
|
[ext_resource path="res://characters/player/sprite/Jump0.png" type="Texture" id=10]
|
|
[ext_resource path="res://characters/player/sprite/Jump3.png" type="Texture" id=11]
|
|
[ext_resource path="res://levels/world1/JungleDirtTileset.tres" type="TileSet" id=12]
|
|
[ext_resource path="res://addons/Gamepad/GamepadContainer.gd" type="Script" id=13]
|
|
[ext_resource path="res://addons/Gamepad/icons/container.png" type="Texture" id=14]
|
|
[ext_resource path="res://addons/Gamepad/GamepadArea.gd" type="Script" id=15]
|
|
[ext_resource path="res://addons/Gamepad/icons/area.png" type="Texture" id=16]
|
|
[ext_resource path="res://addons/Gamepad/GamepadStick.gd" type="Script" id=17]
|
|
[ext_resource path="res://addons/Gamepad/icons/stick.png" type="Texture" id=18]
|
|
[ext_resource path="res://assets/Gamepad/cross_light.png" type="Texture" id=19]
|
|
[ext_resource path="res://assets/Gamepad/cursor_dark.png" type="Texture" id=20]
|
|
[ext_resource path="res://addons/Gamepad/GamepadButton.gd" type="Script" id=21]
|
|
[ext_resource path="res://addons/Gamepad/icons/button.png" type="Texture" id=22]
|
|
[ext_resource path="res://assets/Gamepad/button_a.png" type="Texture" id=23]
|
|
|
|
[sub_resource type="SpriteFrames" id=1]
|
|
animations = [ {
|
|
"frames": [ ExtResource( 11 ) ],
|
|
"loop": true,
|
|
"name": "Fall",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ ExtResource( 9 ) ],
|
|
"loop": true,
|
|
"name": "Idle",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ) ],
|
|
"loop": true,
|
|
"name": "Run",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [ ExtResource( 10 ) ],
|
|
"loop": true,
|
|
"name": "Jump",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="CapsuleShape2D" id=2]
|
|
radius = 14.0
|
|
height = 28.0
|
|
|
|
[node name="World" type="Node"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Player" type="KinematicBody2D" parent="."]
|
|
position = Vector2( 320, 96 )
|
|
script = ExtResource( 2 )
|
|
__meta__ = {
|
|
"_edit_group_": true
|
|
}
|
|
|
|
[node name="Sprite" type="AnimatedSprite" parent="Player"]
|
|
frames = SubResource( 1 )
|
|
animation = "Idle"
|
|
playing = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
|
|
position = Vector2( 0, 4 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="Player"]
|
|
current = true
|
|
drag_margin_h_enabled = true
|
|
drag_margin_v_enabled = true
|
|
smoothing_enabled = true
|
|
|
|
[node name="TileMap" type="TileMap" parent="."]
|
|
tile_set = ExtResource( 12 )
|
|
cell_size = Vector2( 32, 32 )
|
|
cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
format = 1
|
|
tile_data = PoolIntArray( 196611, 0, 0, 196612, 1, 0, 196613, 1, 0, 196614, 1, 0, 196615, 2, 0, 262147, 6, 0, 262148, 7, 0, 262149, 7, 0, 262150, 7, 0, 262151, 8, 0, 262157, 0, 0, 262158, 1, 0, 262159, 1, 0, 262160, 2, 0, 327693, 3, 0, 327694, 4, 0, 327695, 4, 0, 327696, 5, 0, 393229, 3, 0, 393230, 4, 0, 393231, 4, 0, 393232, 5, 0, 458753, 0, 0, 458754, 1, 0, 458755, 1, 0, 458756, 1, 0, 458757, 1, 0, 458758, 1, 0, 458759, 1, 0, 458760, 1, 0, 458761, 1, 0, 458762, 1, 0, 458763, 1, 0, 458764, 1, 0, 458765, 1, 0, 458766, 1, 0, 458767, 1, 0, 458768, 1, 0, 458769, 1, 0, 458770, 2, 0, 524289, 3, 0, 524290, 4, 0, 524291, 4, 0, 524292, 4, 0, 524293, 4, 0, 524294, 4, 0, 524295, 4, 0, 524296, 4, 0, 524297, 4, 0, 524298, 4, 0, 524299, 4, 0, 524300, 4, 0, 524301, 4, 0, 524302, 4, 0, 524303, 4, 0, 524304, 4, 0, 524305, 4, 0, 524306, 5, 0, 589825, 6, 0, 589826, 7, 0, 589827, 7, 0, 589828, 7, 0, 589829, 7, 0, 589830, 7, 0, 589831, 7, 0, 589832, 7, 0, 589833, 7, 0, 589834, 7, 0, 589835, 7, 0, 589836, 7, 0, 589837, 7, 0, 589838, 7, 0, 589839, 7, 0, 589840, 7, 0, 589841, 7, 0, 589842, 8, 0 )
|
|
__meta__ = {
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="GamePad" type="CanvasLayer" parent="."]
|
|
|
|
[node name="GamepadContainer" type="Control" parent="GamePad"]
|
|
margin_right = 640.0
|
|
margin_bottom = 384.0
|
|
script = ExtResource( 13 )
|
|
__meta__ = {
|
|
"_editor_icon": ExtResource( 14 )
|
|
}
|
|
|
|
[node name="GamepadArea" type="Control" parent="GamePad/GamepadContainer"]
|
|
margin_right = 224.0
|
|
margin_bottom = 384.0
|
|
script = ExtResource( 15 )
|
|
__meta__ = {
|
|
"_editor_icon": ExtResource( 16 )
|
|
}
|
|
|
|
[node name="GamepadStick" type="Control" parent="GamePad/GamepadContainer/GamepadArea"]
|
|
margin_left = 35.0
|
|
margin_top = 200.0
|
|
margin_right = 131.0
|
|
margin_bottom = 296.0
|
|
script = ExtResource( 17 )
|
|
__meta__ = {
|
|
"_editor_icon": ExtResource( 18 )
|
|
}
|
|
disabled = false
|
|
show_dynamically = false
|
|
gamepad_type = "STICK 0"
|
|
stick_type = 2
|
|
background_texture = ExtResource( 19 )
|
|
stick_texture = ExtResource( 20 )
|
|
stick_scale = Vector2( 1, 1 )
|
|
static_position = Vector2( 35, 200 )
|
|
hide_stick_on_stop = false
|
|
adjust_iso = 0
|
|
valid_threshold = 0.2
|
|
step = 0.0
|
|
simulate_up = "ui_up"
|
|
simulate_left = "ui_left"
|
|
simulate_down = "ui_down"
|
|
simulate_right = "ui_right"
|
|
|
|
[node name="GamepadArea2" type="Control" parent="GamePad/GamepadContainer"]
|
|
margin_left = 448.0
|
|
margin_top = 224.0
|
|
margin_right = 608.0
|
|
margin_bottom = 352.0
|
|
script = ExtResource( 15 )
|
|
__meta__ = {
|
|
"_editor_icon": ExtResource( 16 )
|
|
}
|
|
|
|
[node name="GamepadButton" type="Control" parent="GamePad/GamepadContainer/GamepadArea2"]
|
|
margin_left = 50.0
|
|
margin_right = 114.0
|
|
margin_bottom = 64.0
|
|
script = ExtResource( 21 )
|
|
__meta__ = {
|
|
"_editor_icon": ExtResource( 22 )
|
|
}
|
|
disabled = false
|
|
show_dynamically = false
|
|
gamepad_type = "BUTTON 0"
|
|
texture_normal = ExtResource( 23 )
|
|
texture_pressed = ExtResource( 23 )
|
|
texture_disabled = null
|
|
static_position = Vector2( 50, 0 )
|
|
autofire_delay = 0.0
|
|
simulate_action = "ui_select"
|
|
[connection signal="gamepad_force_changed" from="GamePad/GamepadContainer/GamepadArea/GamepadStick" to="Player" method="gamepad_force_changed"]
|
|
[connection signal="gamepad_stick_released" from="GamePad/GamepadContainer/GamepadArea/GamepadStick" to="Player" method="gamepad_stick_released"]
|
|
[connection signal="down" from="GamePad/GamepadContainer/GamepadArea2/GamepadButton" to="Player" method="A_GamepadButton_down"]
|
|
[connection signal="up" from="GamePad/GamepadContainer/GamepadArea2/GamepadButton" to="Player" method="A_GamepadButton_up"]
|