From fe8d9853148e7d3a798d9e14cb0288f7538f88ba Mon Sep 17 00:00:00 2001 From: David Date: Sat, 16 Jul 2022 14:34:11 +0200 Subject: new node structure --- godot/scenes/objects/Player.tscn | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 godot/scenes/objects/Player.tscn (limited to 'godot/scenes/objects/Player.tscn') diff --git a/godot/scenes/objects/Player.tscn b/godot/scenes/objects/Player.tscn new file mode 100644 index 0000000..0d162f4 --- /dev/null +++ b/godot/scenes/objects/Player.tscn @@ -0,0 +1,14 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://scenes/objects/W8.tscn" type="PackedScene" id=1] +[ext_resource path="res://scenes/objects/Camera.tscn" type="PackedScene" id=2] +[ext_resource path="res://native/BasicDie.gdns" type="Script" id=3] + +[node name="PlayerRoot" type="Spatial"] +script = ExtResource( 3 ) + +[node name="W8" parent="." instance=ExtResource( 1 )] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 0 ) + +[node name="Camera" parent="." instance=ExtResource( 2 )] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 ) -- cgit From 635cfebff3ec0ce5b74ac728a5655339755efe39 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 16 Jul 2022 15:12:11 +0200 Subject: better mouse handling. correct impulse --- godot/scenes/objects/Player.tscn | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'godot/scenes/objects/Player.tscn') diff --git a/godot/scenes/objects/Player.tscn b/godot/scenes/objects/Player.tscn index 0d162f4..f8a3fba 100644 --- a/godot/scenes/objects/Player.tscn +++ b/godot/scenes/objects/Player.tscn @@ -6,6 +6,12 @@ [node name="PlayerRoot" type="Spatial"] script = ExtResource( 3 ) +camera/camera_clamp = Vector2( 0, -2 ) +shooting/max_force = 30.0 +shooting/up_angle = 1.0 +shooting/stopping_velocity = 0.003 +input/camera_mouse_sensitivity = Vector2( 0.003, 0.002 ) +input/shoot_sensitivity = 0.3 [node name="W8" parent="." instance=ExtResource( 1 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 0 ) -- cgit From ea7596edf57149b3c3f84378276c9d0558aed050 Mon Sep 17 00:00:00 2001 From: David Date: Sat, 16 Jul 2022 15:47:20 +0200 Subject: better stopping detection --- godot/scenes/objects/Player.tscn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'godot/scenes/objects/Player.tscn') diff --git a/godot/scenes/objects/Player.tscn b/godot/scenes/objects/Player.tscn index f8a3fba..9730147 100644 --- a/godot/scenes/objects/Player.tscn +++ b/godot/scenes/objects/Player.tscn @@ -6,12 +6,12 @@ [node name="PlayerRoot" type="Spatial"] script = ExtResource( 3 ) -camera/camera_clamp = Vector2( 0, -2 ) +camera/camera_clamp = Vector2( 0, -1.3 ) shooting/max_force = 30.0 shooting/up_angle = 1.0 shooting/stopping_velocity = 0.003 input/camera_mouse_sensitivity = Vector2( 0.003, 0.002 ) -input/shoot_sensitivity = 0.3 +input/shoot_sensitivity = 0.1 [node name="W8" parent="." instance=ExtResource( 1 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 0 ) -- cgit From bdf6f0328e870c308299f37155b9e89d91a2859c Mon Sep 17 00:00:00 2001 From: David Date: Sat, 16 Jul 2022 16:01:31 +0200 Subject: fix up angle and force --- godot/scenes/objects/Player.tscn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'godot/scenes/objects/Player.tscn') diff --git a/godot/scenes/objects/Player.tscn b/godot/scenes/objects/Player.tscn index 9730147..aeb8f51 100644 --- a/godot/scenes/objects/Player.tscn +++ b/godot/scenes/objects/Player.tscn @@ -8,7 +8,7 @@ script = ExtResource( 3 ) camera/camera_clamp = Vector2( 0, -1.3 ) shooting/max_force = 30.0 -shooting/up_angle = 1.0 +shooting/up_angle = 0.3 shooting/stopping_velocity = 0.003 input/camera_mouse_sensitivity = Vector2( 0.003, 0.002 ) input/shoot_sensitivity = 0.1 -- cgit From f561a1f69d5fda68e0a23ab04f448e9364b2968c Mon Sep 17 00:00:00 2001 From: David Date: Sat, 16 Jul 2022 21:02:56 +0200 Subject: deactivate ball after 5s --- godot/scenes/objects/Player.tscn | 1 + 1 file changed, 1 insertion(+) (limited to 'godot/scenes/objects/Player.tscn') diff --git a/godot/scenes/objects/Player.tscn b/godot/scenes/objects/Player.tscn index aeb8f51..8cfdd6e 100644 --- a/godot/scenes/objects/Player.tscn +++ b/godot/scenes/objects/Player.tscn @@ -12,6 +12,7 @@ shooting/up_angle = 0.3 shooting/stopping_velocity = 0.003 input/camera_mouse_sensitivity = Vector2( 0.003, 0.002 ) input/shoot_sensitivity = 0.1 +input/current_buff_index = 5 [node name="W8" parent="." instance=ExtResource( 1 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 0 ) -- cgit