Add phantom camera
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=23 format=4 uid="uid://h60obxmju6mo"]
|
||||
[gd_scene load_steps=27 format=4 uid="uid://h60obxmju6mo"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_5lb42"]
|
||||
[ext_resource type="TileSet" uid="uid://cl4bn8lofqvky" path="res://tileset/village/tileset_village.tres" id="1_d680t"]
|
||||
@@ -6,11 +6,14 @@
|
||||
[ext_resource type="PackedScene" uid="uid://54w4wisfj8v8" path="res://objects/coin.tscn" id="3_ygehw"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqi5s710xb1ju" path="res://objects/brick_player.tscn" id="4_hetw8"]
|
||||
[ext_resource type="PackedScene" uid="uid://ct8fim6mduyl3" path="res://objects/collapsing_bridge.tscn" id="6_84ckv"]
|
||||
[ext_resource type="Script" path="res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd" id="7_jgh7o"]
|
||||
[ext_resource type="PackedScene" uid="uid://bwdlmualj6xbw" path="res://objects/enemy.tscn" id="7_qgddg"]
|
||||
[ext_resource type="PackedScene" uid="uid://bhc7y4xugu4q7" path="res://objects/bullet.tscn" id="8_c68mx"]
|
||||
[ext_resource type="PackedScene" uid="uid://dfwpha0d18dmn" path="res://objects/cannon_ray_down.tscn" id="9_ysd8p"]
|
||||
[ext_resource type="PackedScene" uid="uid://d3lt4rhxduv44" path="res://objects/cannon_ray_left.tscn" id="10_7v2ff"]
|
||||
[ext_resource type="PackedScene" uid="uid://dstko446qydsc" path="res://objects/cannon.tscn" id="11_qv64j"]
|
||||
[ext_resource type="Script" path="res://addons/phantom_camera/scripts/phantom_camera/phantom_camera_2d.gd" id="13_rsy5s"]
|
||||
[ext_resource type="Script" path="res://addons/phantom_camera/scripts/resources/tween_resource.gd" id="14_mjvn7"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_anvhr"]
|
||||
offsets = PackedFloat32Array(1)
|
||||
@@ -387,6 +390,12 @@ texture_region_size = Vector2i(8, 8)
|
||||
tile_size = Vector2i(8, 8)
|
||||
sources/1 = SubResource("TileSetAtlasSource_eoyis")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_lsjk3"]
|
||||
script = ExtResource("14_mjvn7")
|
||||
duration = 1.0
|
||||
transition = 0
|
||||
ease = 2
|
||||
|
||||
[node name="World" type="Node2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
@@ -419,7 +428,17 @@ position = Vector2(219, 0)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
position = Vector2(237, -100)
|
||||
physics_interpolation_mode = 1
|
||||
position = Vector2(219, -84)
|
||||
limit_left = -176
|
||||
limit_top = -368
|
||||
limit_right = 672
|
||||
limit_bottom = 96
|
||||
|
||||
[node name="PhantomCameraHost" type="Node" parent="Camera2D"]
|
||||
process_priority = 300
|
||||
process_physics_priority = 300
|
||||
script = ExtResource("7_jgh7o")
|
||||
|
||||
[node name="Enemy" parent="." instance=ExtResource("7_qgddg")]
|
||||
position = Vector2(484, -112)
|
||||
@@ -450,3 +469,13 @@ position = Vector2(445, 57)
|
||||
|
||||
[node name="Cannon" parent="." instance=ExtResource("11_qv64j")]
|
||||
position = Vector2(275, 9)
|
||||
|
||||
[node name="PhantomCamera2D" type="Node2D" parent="." node_paths=PackedStringArray("follow_target")]
|
||||
top_level = true
|
||||
position = Vector2(219, -84)
|
||||
script = ExtResource("13_rsy5s")
|
||||
follow_mode = 1
|
||||
follow_target = NodePath("../Brick Player")
|
||||
tween_resource = SubResource("Resource_lsjk3")
|
||||
follow_damping = true
|
||||
limit_target = NodePath("../Terrain Layer")
|
||||
|
Reference in New Issue
Block a user