aboutsummaryrefslogtreecommitdiffstats
path: root/godot/scenes
diff options
context:
space:
mode:
authorLibravatar IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com>2022-07-16 04:20:11 +0200
committerLibravatar IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com>2022-07-16 04:20:11 +0200
commita8b66a60dca81a4e5d4ab995226b77ba29bc70c3 (patch)
tree60c2ba6826daf6ec60988330b3b5078c56a98c63 /godot/scenes
parenta46a91e183a272e012354a6f0263299448205acb (diff)
download2022-a8b66a60dca81a4e5d4ab995226b77ba29bc70c3.tar.gz
2022-a8b66a60dca81a4e5d4ab995226b77ba29bc70c3.tar.bz2
2022-a8b66a60dca81a4e5d4ab995226b77ba29bc70c3.zip
basic camera movement
also events for other movements
Diffstat (limited to '')
-rw-r--r--godot/scenes/Game.tscn29
1 files changed, 22 insertions, 7 deletions
diff --git a/godot/scenes/Game.tscn b/godot/scenes/Game.tscn
index a37a7eb..320f926 100644
--- a/godot/scenes/Game.tscn
+++ b/godot/scenes/Game.tscn
@@ -1,18 +1,33 @@
-[gd_scene load_steps=4 format=2]
+[gd_scene load_steps=5 format=2]
[ext_resource path="res://native/Game.gdns" type="Script" id=1]
-[ext_resource path="res://scenes/SpinningCube.tscn" type="PackedScene" id=2]
+[ext_resource path="res://native/BasicDie.gdns" type="Script" id=2]
[sub_resource type="CubeMesh" id=1]
+[sub_resource type="BoxShape" id=2]
+
[node name="Game" type="Spatial"]
script = ExtResource( 1 )
-[node name="Camera" type="Camera" parent="."]
-transform = Transform( 0.572229, -0.327396, 0.751909, 0, 0.916856, 0.399217, -0.820094, -0.228443, 0.524651, 4.71648, 2.5, 3.45846 )
-current = true
+[node name="RigidBody" type="RigidBody" parent="."]
+script = ExtResource( 2 )
+base/camera_offset = 500.0
+base/camera_clamp = Vector2( 0, -1 )
+shooting/max_force = 100.0
+shooting/up_angle = 5.0
+input/mouse_sensitivity = Vector2( 0.05, 0.05 )
-[node name="SpinningCube" parent="." instance=ExtResource( 2 )]
+[node name="MeshInstance" type="MeshInstance" parent="RigidBody"]
mesh = SubResource( 1 )
material/0 = null
-base/rotate_speed = 1.0
+
+[node name="CollisionShape" type="CollisionShape" parent="RigidBody"]
+shape = SubResource( 2 )
+
+[node name="CameraArmHorizontal" type="Spatial" parent="RigidBody"]
+
+[node name="CameraArmVertical" type="Spatial" parent="RigidBody/CameraArmHorizontal"]
+
+[node name="Camera" type="Camera" parent="RigidBody/CameraArmHorizontal/CameraArmVertical"]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10 )