diff options
| author | Jan Tuomi <jan.tuomi@valuemotive.com> | 2020-07-30 00:11:27 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@valuemotive.com> | 2020-07-30 00:11:27 +0300 |
| commit | bbe104a711a3943788c97247f0850fefef4094a3 (patch) | |
| tree | 9507037e921726efced1828d9f90fce0a9bb02f0 | |
| parent | b702a3c809225c4e684639cd33762b06e5b2142b (diff) | |
Improve light & camera
| -rw-r--r-- | project.godot | 3 | ||||
| -rw-r--r-- | scenes/Scene1.tscn | 16 |
2 files changed, 12 insertions, 7 deletions
diff --git a/project.godot b/project.godot index 8eaedf1..32e1360 100644 --- a/project.godot +++ b/project.godot @@ -21,4 +21,7 @@ config/icon="res://icon.png" [rendering] +quality/intended_usage/framebuffer_allocation=0 +quality/intended_usage/framebuffer_allocation.mobile=0 +quality/2d/use_pixel_snap=true environment/default_environment="res://default_env.tres" diff --git a/scenes/Scene1.tscn b/scenes/Scene1.tscn index d54a2f8..ce08c03 100644 --- a/scenes/Scene1.tscn +++ b/scenes/Scene1.tscn @@ -311,12 +311,19 @@ tile_data = PoolIntArray( -262152, 0, 0, -262151, 0, 0, -262150, 0, 0, -262149, position = Vector2( 11.3538, 19.871 ) speed = 32 +[node name="Camera2D" type="Camera2D" parent="YSort/PlayerCharacter"] +current = true +zoom = Vector2( 0.2, 0.2 ) +process_mode = 0 +smoothing_enabled = true +smoothing_speed = 2.0 + [node name="Light2D" type="Light2D" parent="YSort/PlayerCharacter"] -position = Vector2( 0.175415, 0.17543 ) +position = Vector2( 0.257721, 0.17543 ) rotation = 3.14159 texture = ExtResource( 5 ) texture_scale = 2.54 -color = Color( 0.866667, 0.886275, 0.705882, 1 ) +color = Color( 0.827451, 0.886275, 0.705882, 1 ) energy = 1.2 mode = 2 shadow_color = Color( 0.184314, 0.215686, 0.176471, 0 ) @@ -325,8 +332,3 @@ shadow_filter = 1 [node name="DwarfNPC" parent="YSort" instance=ExtResource( 3 )] position = Vector2( 51.6174, 19.3117 ) target = NodePath("../PlayerCharacter") - -[node name="Camera2D" type="Camera2D" parent="."] -position = Vector2( 50.9362, 32.0637 ) -current = true -zoom = Vector2( 0.2, 0.2 ) |
