summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
authorLogan <logan@cflip.net>2022-09-27 12:39:47 -0600
committerLogan <logan@cflip.net>2022-09-27 12:39:47 -0600
commit70bcca81567d569ee5a17adc3447ac7bbd2f3d6e (patch)
tree812a7e2fc5d93454c82a52b8a51928b3f1e93d27 /scenes
parent215c67a3aa6a07af05f3af6268bbc82d60925bcc (diff)
Add camera node and basic camera logic.
Diffstat (limited to 'scenes')
-rw-r--r--scenes/level.tscn12
1 files changed, 11 insertions, 1 deletions
diff --git a/scenes/level.tscn b/scenes/level.tscn
index 5dc83ea..0b8324f 100644
--- a/scenes/level.tscn
+++ b/scenes/level.tscn
@@ -1,10 +1,11 @@
-[gd_scene load_steps=8 format=2]
+[gd_scene load_steps=9 format=2]
[ext_resource path="res://textures/court_lines.png" type="Texture" id=1]
[ext_resource path="res://scenes/hoop.tscn" type="PackedScene" id=2]
[ext_resource path="res://scenes/basketball.tscn" type="PackedScene" id=3]
[ext_resource path="res://scenes/interface.tscn" type="PackedScene" id=4]
[ext_resource path="res://textures/court_tile.png" type="Texture" id=5]
+[ext_resource path="res://scripts/camera.gd" type="Script" id=6]
[sub_resource type="LineShape2D" id=1]
d = 10.0
@@ -14,6 +15,15 @@ normal = Vector2( -1, 0 )
[node name="Node2D" type="Node2D"]
+[node name="Camera2D" type="Camera2D" parent="."]
+position = Vector2( 123, 73 )
+current = true
+limit_left = -202
+limit_top = -150
+limit_right = 214
+limit_bottom = 120
+script = ExtResource( 6 )
+
[node name="Interface" parent="." instance=ExtResource( 4 )]
[node name="Background" type="StaticBody2D" parent="."]