Merge pull request 'Improved Camera' (#22) from dev-player into dev-base
Reviewed-on: http://git.euph.dev/GameDev/2DHackAndSlay/pulls/22
This commit is contained in:
commit
c5196c7699
2 changed files with 14 additions and 1 deletions
|
@ -18,6 +18,7 @@ layer_0/tile_data = PackedInt32Array(1114138, 262144, 1, 1048602, 0, 1, 983066,
|
|||
|
||||
[node name="Player" type="CharacterBody2D" parent="."]
|
||||
script = ExtResource("2_gw00d")
|
||||
speed = 100
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Player"]
|
||||
position = Vector2(149, 86)
|
||||
|
@ -27,6 +28,11 @@ texture = ExtResource("2_0flm2")
|
|||
position = Vector2(149, 86)
|
||||
current = true
|
||||
zoom = Vector2(8, 8)
|
||||
position_smoothing_enabled = true
|
||||
drag_horizontal_enabled = true
|
||||
drag_vertical_enabled = true
|
||||
editor_draw_limits = true
|
||||
editor_draw_drag_margin = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
|
||||
position = Vector2(149, 86)
|
||||
|
|
|
@ -16,7 +16,9 @@ config/features=PackedStringArray("4.0")
|
|||
|
||||
[display]
|
||||
|
||||
window/stretch/aspect="ignore"
|
||||
window/stretch/mode="viewport"
|
||||
window/stretch/aspect="expand"
|
||||
window/stretch/scale=0.7
|
||||
|
||||
[editor]
|
||||
|
||||
|
@ -57,6 +59,11 @@ move_right={
|
|||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194321,"key_label":0,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
do_shake={
|
||||
"deadzone": 0.5,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":32,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
||||
[physics]
|
||||
|
||||
|
|
Reference in a new issue