third level + km/h display
This commit is contained in:
parent
203696e022
commit
c19d1dffcb
27 changed files with 713 additions and 40 deletions
|
@ -10,7 +10,7 @@ var player_ready = false
|
|||
const normal = 7
|
||||
const stronger = normal * 3
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
func _input(_event: InputEvent) -> void:
|
||||
if player_ready:
|
||||
var grav = stronger if Input.is_key_pressed(KEY_SHIFT) else normal
|
||||
PhysicsServer3D.area_set_param(get_viewport().find_world_3d().space, PhysicsServer3D.AREA_PARAM_GRAVITY, grav)
|
||||
|
|
7
elements/star.tscn
Normal file
7
elements/star.tscn
Normal file
|
@ -0,0 +1,7 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://b4jtpua36m6b1"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_kmjsc"]
|
||||
vertex_color_use_as_albedo = true
|
||||
|
||||
[node name="Star" type="CSGSphere3D"]
|
||||
material = SubResource("StandardMaterial3D_kmjsc")
|
48
elements/tree.tscn
Normal file
48
elements/tree.tscn
Normal file
|
@ -0,0 +1,48 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://da6lkdiskdh8v"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_tbkod"]
|
||||
script/source = "extends Node3D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
self.rotation_degrees.x += randf_range(-20, 20)
|
||||
self.rotation_degrees.y += randf_range(-20, 20)
|
||||
self.rotation_degrees.z += randf_range(-20, 20)
|
||||
|
||||
$Wood/Leaves.rotation_degrees.x += randf_range(-5, 5)
|
||||
$Wood/Leaves.rotation_degrees.y += randf_range(-5, 5)
|
||||
$Wood/Leaves.rotation_degrees.z += randf_range(-5, 5)
|
||||
"
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7cavb"]
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_color = Color(0.664716, 0.454725, 0.320446, 1)
|
||||
metallic = 0.1
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_710rn"]
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_color = Color(0.345711, 0.13893, 0.0174745, 1)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0x135"]
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_color = Color(0.212217, 0.468618, 0, 1)
|
||||
|
||||
[node name="Tree" type="Node3D"]
|
||||
script = SubResource("GDScript_tbkod")
|
||||
|
||||
[node name="Dirt" type="CSGBox3D" parent="."]
|
||||
material = SubResource("StandardMaterial3D_7cavb")
|
||||
|
||||
[node name="Wood" type="CSGCylinder3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 0)
|
||||
radius = 0.3
|
||||
height = 4.0
|
||||
material = SubResource("StandardMaterial3D_710rn")
|
||||
|
||||
[node name="Leaves" type="CSGCylinder3D" parent="Wood"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.81654, 0)
|
||||
radius = 2.0
|
||||
height = 4.0
|
||||
cone = true
|
||||
material = SubResource("StandardMaterial3D_0x135")
|
Loading…
Add table
Add a link
Reference in a new issue