diff options
author | David <david003@gmx.net> | 2022-07-16 11:48:18 +0200 |
---|---|---|
committer | David <david003@gmx.net> | 2022-07-16 11:48:18 +0200 |
commit | 26151af89950d682cb62204461c02bf5abb23016 (patch) | |
tree | 51659691ccfe68848ab11a905d1f3e79ace6f165 /godot | |
parent | 4f2bc986240c61bd455742c0cee3c3c796fc5e6b (diff) | |
parent | 5678a04042b7b2ea52a927101cf66064535dc272 (diff) | |
download | 2022-26151af89950d682cb62204461c02bf5abb23016.tar.gz 2022-26151af89950d682cb62204461c02bf5abb23016.tar.bz2 2022-26151af89950d682cb62204461c02bf5abb23016.zip |
Merge branch 'BasicDie'
Diffstat (limited to 'godot')
-rw-r--r-- | godot/native/BasicDie.gdns | 8 | ||||
-rw-r--r-- | godot/project.godot | 8 | ||||
-rw-r--r-- | godot/scenes/Game.tscn | 44 |
3 files changed, 59 insertions, 1 deletions
diff --git a/godot/native/BasicDie.gdns b/godot/native/BasicDie.gdns new file mode 100644 index 0000000..ab5d534 --- /dev/null +++ b/godot/native/BasicDie.gdns @@ -0,0 +1,8 @@ +[gd_resource type="NativeScript" load_steps=2 format=2] + +[ext_resource path="res://native/game.gdnlib" type="GDNativeLibrary" id=1] + +[resource] +resource_name = "BasicDie" +class_name = "BasicDie" +library = ExtResource( 1 ) diff --git a/godot/project.godot b/godot/project.godot index a8f6586..d7b88c5 100644 --- a/godot/project.godot +++ b/godot/project.godot @@ -18,6 +18,14 @@ config/icon="res://assets/godot-ferris-32x32.png" singletons=[ ] +[input] + +mouse_btn_left={ +"deadzone": 0.5, +"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":1,"pressed":false,"doubleclick":false,"script":null) + ] +} + [rendering] environment/default_environment="res://default_env.tres" diff --git a/godot/scenes/Game.tscn b/godot/scenes/Game.tscn index f8b17cb..0eb902d 100644 --- a/godot/scenes/Game.tscn +++ b/godot/scenes/Game.tscn @@ -1,8 +1,17 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=7 format=2] [ext_resource path="res://native/Game.gdns" type="Script" id=1] +[ext_resource path="res://native/BasicDie.gdns" type="Script" id=2] [ext_resource path="res://scenes/levels/test_scene_uuuhhh/TestSceneUuuhhh.tscn" type="PackedScene" id=2] +[sub_resource type="CubeMesh" id=1] + +[sub_resource type="BoxShape" id=2] + +[sub_resource type="CubeMesh" id=3] + +[sub_resource type="BoxShape" id=4] + [node name="Game" type="Spatial"] script = ExtResource( 1 ) @@ -12,3 +21,36 @@ current = true fov = 64.6875 [node name="TestSceneUuuhhh" parent="." instance=ExtResource( 2 )] + +[node name="RigidBody" type="RigidBody" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.25589, 0 ) +script = ExtResource( 2 ) +camera/camera_clamp = Vector2( 1.608, -2.526 ) +shooting/max_force = 30.0 +shooting/up_angle = 1.0 +input/camera_mouse_sensitivity = Vector2( 0.01, 0.008 ) +input/shoot_sensitivity = 0.069 + +[node name="MeshInstance" type="MeshInstance" parent="RigidBody"] +mesh = SubResource( 1 ) +material/0 = null + +[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 ) + +[node name="StaticBody" type="StaticBody" parent="."] +transform = Transform( 100, 0, 0, 0, 0.1, 0, 0, 0, 100, 0, 0, 0 ) + +[node name="MeshInstance" type="MeshInstance" parent="StaticBody"] +mesh = SubResource( 3 ) +material/0 = null + +[node name="CollisionShape" type="CollisionShape" parent="StaticBody"] +shape = SubResource( 4 ) |