-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3a60bd
commit 5210d64
Showing
9 changed files
with
486 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[remap] | ||
|
||
importer="scene" | ||
importer_version=1 | ||
type="PackedScene" | ||
uid="uid://bjke3oesim1n8" | ||
path="res://.godot/imported/Character3D.blend-6170a3a179a200ce20c05d128bbcdb13.scn" | ||
|
||
[deps] | ||
|
||
source_file="res://3D Models/Character3D/Character3D.blend" | ||
dest_files=["res://.godot/imported/Character3D.blend-6170a3a179a200ce20c05d128bbcdb13.scn"] | ||
|
||
[params] | ||
|
||
nodes/root_type="" | ||
nodes/root_name="" | ||
nodes/apply_root_scale=true | ||
nodes/root_scale=1.0 | ||
nodes/import_as_skeleton_bones=false | ||
meshes/ensure_tangents=true | ||
meshes/generate_lods=true | ||
meshes/create_shadow_meshes=true | ||
meshes/light_baking=1 | ||
meshes/lightmap_texel_size=0.2 | ||
meshes/force_disable_compression=false | ||
skins/use_named_skins=true | ||
animation/import=true | ||
animation/fps=30 | ||
animation/trimming=false | ||
animation/remove_immutable_tracks=true | ||
animation/import_rest_as_RESET=false | ||
import_script/path="" | ||
_subresources={} | ||
blender/nodes/visible=0 | ||
blender/nodes/active_collection_only=false | ||
blender/nodes/punctual_lights=true | ||
blender/nodes/cameras=true | ||
blender/nodes/custom_properties=true | ||
blender/nodes/modifiers=1 | ||
blender/meshes/colors=false | ||
blender/meshes/uvs=true | ||
blender/meshes/normals=true | ||
blender/meshes/tangents=true | ||
blender/meshes/skins=2 | ||
blender/meshes/export_bones_deforming_mesh_only=false | ||
blender/materials/unpack_enabled=true | ||
blender/materials/export_materials=1 | ||
blender/animation/limit_playback=true | ||
blender/animation/always_sample=true | ||
blender/animation/group_tracks=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
extends Node | ||
|
||
var falling = false | ||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready() -> void: | ||
pass # Replace with function body. | ||
|
||
|
||
# Called every frame. 'delta' is the elapsed time since the previous frame. | ||
func _process(delta: float) -> void: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
extends CharacterBody3D | ||
|
||
|
||
|
||
|
||
|
||
func _physics_process(delta: float) -> void: | ||
# Add the gravity. | ||
if not is_on_floor() and Global.falling == false: | ||
velocity += get_gravity() * delta | ||
|
||
move_and_slide() | ||
|
||
|
||
func _on_pressure_plate_body_entered(body: Node3D) -> void: | ||
if body.is_in_group("Player"): | ||
|
||
Global.falling = true | ||
self.position.y = 4.431 | ||
|
||
|
||
func _on_pressure_plate_body_exited(body: Node3D) -> void: | ||
Global.falling = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
[gd_scene load_steps=16 format=3 uid="uid://dhtjxwey6f5ld"] | ||
|
||
[ext_resource type="PackedScene" uid="uid://bsljbif1rji7e" path="res://Scenes and Scripts/Player/3DPlayer.tscn" id="1_6l6pc"] | ||
[ext_resource type="Script" path="res://Scenes and Scripts/world.gd" id="1_35i28"] | ||
[ext_resource type="PackedScene" uid="uid://c5paftmrnwj3c" path="res://3D Models/HowToPlay.blend" id="3_plmd8"] | ||
[ext_resource type="Script" path="res://Scenes and Scripts/gravity_dropable.gd" id="4_xv00g"] | ||
|
||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_gdkvv"] | ||
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1) | ||
ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1) | ||
|
||
[sub_resource type="Sky" id="Sky_joqt5"] | ||
sky_material = SubResource("ProceduralSkyMaterial_gdkvv") | ||
|
||
[sub_resource type="Environment" id="Environment_wsre4"] | ||
background_mode = 2 | ||
sky = SubResource("Sky_joqt5") | ||
tonemap_mode = 2 | ||
glow_enabled = true | ||
|
||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xw0we"] | ||
albedo_color = Color(0.15, 0.15, 0.15, 1) | ||
|
||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_litvj"] | ||
|
||
[sub_resource type="TextMesh" id="TextMesh_r52l0"] | ||
material = SubResource("StandardMaterial3D_litvj") | ||
text = "Press the spacebar, watch the player fall | ||
back to the ground. Now, move the player | ||
to the red platform on the ground | ||
and step on it. The grey cube will fall and | ||
respawn after 2 seconds." | ||
|
||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xlx5t"] | ||
albedo_color = Color(1, 0, 0, 1) | ||
|
||
[sub_resource type="BoxMesh" id="BoxMesh_0q238"] | ||
material = SubResource("StandardMaterial3D_xlx5t") | ||
|
||
[sub_resource type="BoxShape3D" id="BoxShape3D_hfvd5"] | ||
|
||
[sub_resource type="BoxMesh" id="BoxMesh_dgwl6"] | ||
|
||
[sub_resource type="BoxShape3D" id="BoxShape3D_f7jgy"] | ||
|
||
[node name="World" type="Node3D"] | ||
script = ExtResource("1_35i28") | ||
|
||
[node name="Environment" type="Node" parent="."] | ||
|
||
[node name="WorldEnvironment" type="WorldEnvironment" parent="Environment"] | ||
environment = SubResource("Environment_wsre4") | ||
|
||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Environment"] | ||
transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866025, -0.5, 0.75, -0.433013, 0, 0, 0) | ||
shadow_enabled = true | ||
|
||
[node name="3DPlayer" parent="." groups=["Player"] instance=ExtResource("1_6l6pc")] | ||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.166136, 0.141595, -2) | ||
crosshair_size = Vector2(3, 3) | ||
|
||
[node name="Objects" type="Node" parent="."] | ||
|
||
[node name="Ground" type="CSGBox3D" parent="Objects"] | ||
transform = Transform3D(1.59899, 0, 0, 0, 1.59899, 0, 0, 0, 1.59899, 0.538818, -0.77202, -0.306824) | ||
material_override = SubResource("StandardMaterial3D_xw0we") | ||
use_collision = true | ||
size = Vector3(9.85791, 1, 16.7933) | ||
|
||
[node name="TV" type="CSGBox3D" parent="Objects"] | ||
transform = Transform3D(-2.20134e-08, 0, -0.920567, 0, 1.59899, 0, 0.503609, 0, -4.02393e-08, 0.68866, 2.85577, -14.729) | ||
material_override = SubResource("StandardMaterial3D_xw0we") | ||
use_collision = true | ||
size = Vector3(9.85791, 5.48779, 16.7933) | ||
|
||
[node name="TV2" type="CSGBox3D" parent="Objects"] | ||
transform = Transform3D(-2.20134e-08, 0, -0.920567, 0, 1.59899, 0, 0.503609, 0, -4.02393e-08, 0.68866, 2.85577, 13.635) | ||
material_override = SubResource("StandardMaterial3D_xw0we") | ||
use_collision = true | ||
size = Vector3(9.85791, 5.48779, 16.7933) | ||
|
||
[node name="HowToPlay" parent="." instance=ExtResource("3_plmd8")] | ||
transform = Transform3D(-1.18338, 0, -1.03454e-07, 1.03454e-07, -5.17271e-08, -1.18338, -4.52213e-15, -1.18338, 5.17271e-08, 3.45169, 3.61752, 11.0703) | ||
|
||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."] | ||
transform = Transform3D(4.393, 0, 0, 0, 4.393, 0, 0, 0, 13.9338, 0.93899, 3.51942, -12.5134) | ||
mesh = SubResource("TextMesh_r52l0") | ||
|
||
[node name="PressurePlate" type="Area3D" parent="."] | ||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.79608, -0.386657, -6.2621) | ||
|
||
[node name="MeshInstance3D" type="MeshInstance3D" parent="PressurePlate"] | ||
mesh = SubResource("BoxMesh_0q238") | ||
|
||
[node name="CollisionShape3D" type="CollisionShape3D" parent="PressurePlate"] | ||
shape = SubResource("BoxShape3D_hfvd5") | ||
|
||
[node name="GravityDropable" type="CharacterBody3D" parent="."] | ||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.4309, -8.70151) | ||
script = ExtResource("4_xv00g") | ||
|
||
[node name="MeshInstance3D" type="MeshInstance3D" parent="GravityDropable"] | ||
mesh = SubResource("BoxMesh_dgwl6") | ||
|
||
[node name="CollisionShape3D" type="CollisionShape3D" parent="GravityDropable"] | ||
shape = SubResource("BoxShape3D_f7jgy") | ||
|
||
[connection signal="body_entered" from="PressurePlate" to="." method="_on_pressure_plate_body_entered"] | ||
[connection signal="body_exited" from="PressurePlate" to="." method="_on_pressure_plate_body_exited"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
[gd_scene load_steps=16 format=3 uid="uid://dhtjxwey6f5ld"] | ||
|
||
[ext_resource type="PackedScene" uid="uid://bsljbif1rji7e" path="res://Scenes and Scripts/Player/3DPlayer.tscn" id="1_6l6pc"] | ||
[ext_resource type="Script" path="res://Scenes and Scripts/world.gd" id="1_35i28"] | ||
[ext_resource type="PackedScene" uid="uid://c5paftmrnwj3c" path="res://3D Models/HowToPlay.blend" id="3_plmd8"] | ||
[ext_resource type="Script" path="res://Scenes and Scripts/gravity_dropable.gd" id="4_xv00g"] | ||
|
||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_gdkvv"] | ||
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1) | ||
ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1) | ||
|
||
[sub_resource type="Sky" id="Sky_joqt5"] | ||
sky_material = SubResource("ProceduralSkyMaterial_gdkvv") | ||
|
||
[sub_resource type="Environment" id="Environment_wsre4"] | ||
background_mode = 2 | ||
sky = SubResource("Sky_joqt5") | ||
tonemap_mode = 2 | ||
glow_enabled = true | ||
|
||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xw0we"] | ||
albedo_color = Color(0.15, 0.15, 0.15, 1) | ||
|
||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_litvj"] | ||
|
||
[sub_resource type="TextMesh" id="TextMesh_r52l0"] | ||
material = SubResource("StandardMaterial3D_litvj") | ||
text = "Press the spacebar, watch the player fall | ||
back to the ground. Now, move the player | ||
to the red platform on the ground | ||
and step on it. The grey cube will fall and | ||
respawn after 2 seconds." | ||
|
||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xlx5t"] | ||
albedo_color = Color(1, 0, 0, 1) | ||
|
||
[sub_resource type="BoxMesh" id="BoxMesh_0q238"] | ||
material = SubResource("StandardMaterial3D_xlx5t") | ||
|
||
[sub_resource type="BoxShape3D" id="BoxShape3D_hfvd5"] | ||
|
||
[sub_resource type="BoxMesh" id="BoxMesh_dgwl6"] | ||
|
||
[sub_resource type="BoxShape3D" id="BoxShape3D_f7jgy"] | ||
|
||
[node name="World" type="Node3D"] | ||
script = ExtResource("1_35i28") | ||
|
||
[node name="Environment" type="Node" parent="."] | ||
|
||
[node name="WorldEnvironment" type="WorldEnvironment" parent="Environment"] | ||
environment = SubResource("Environment_wsre4") | ||
|
||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Environment"] | ||
transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866025, -0.5, 0.75, -0.433013, 0, 0, 0) | ||
shadow_enabled = true | ||
|
||
[node name="3DPlayer" parent="." groups=["Player"] instance=ExtResource("1_6l6pc")] | ||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.166136, 0.141595, -2) | ||
crosshair_size = Vector2(3, 3) | ||
|
||
[node name="Objects" type="Node" parent="."] | ||
|
||
[node name="Ground" type="CSGBox3D" parent="Objects"] | ||
transform = Transform3D(1.59899, 0, 0, 0, 1.59899, 0, 0, 0, 1.59899, 0.538818, -0.77202, -0.306824) | ||
material_override = SubResource("StandardMaterial3D_xw0we") | ||
use_collision = true | ||
size = Vector3(9.85791, 1, 16.7933) | ||
|
||
[node name="TV" type="CSGBox3D" parent="Objects"] | ||
transform = Transform3D(-2.20134e-08, 0, -0.920567, 0, 1.59899, 0, 0.503609, 0, -4.02393e-08, 0.68866, 2.85577, -14.729) | ||
material_override = SubResource("StandardMaterial3D_xw0we") | ||
use_collision = true | ||
size = Vector3(9.85791, 5.48779, 16.7933) | ||
|
||
[node name="TV2" type="CSGBox3D" parent="Objects"] | ||
transform = Transform3D(-2.20134e-08, 0, -0.920567, 0, 1.59899, 0, 0.503609, 0, -4.02393e-08, 0.68866, 2.85577, 13.635) | ||
material_override = SubResource("StandardMaterial3D_xw0we") | ||
use_collision = true | ||
size = Vector3(9.85791, 5.48779, 16.7933) | ||
|
||
[node name="HowToPlay" parent="." instance=ExtResource("3_plmd8")] | ||
transform = Transform3D(-1.18338, 0, -1.03454e-07, 1.03454e-07, -5.17271e-08, -1.18338, -4.52213e-15, -1.18338, 5.17271e-08, 3.45169, 3.61752, 11.0703) | ||
|
||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."] | ||
transform = Transform3D(4.393, 0, 0, 0, 4.393, 0, 0, 0, 13.9338, 0.93899, 3.51942, -12.5134) | ||
mesh = SubResource("TextMesh_r52l0") | ||
|
||
[node name="PressurePlate" type="Area3D" parent="."] | ||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.79608, -0.386657, -6.2621) | ||
|
||
[node name="MeshInstance3D" type="MeshInstance3D" parent="PressurePlate"] | ||
mesh = SubResource("BoxMesh_0q238") | ||
|
||
[node name="CollisionShape3D" type="CollisionShape3D" parent="PressurePlate"] | ||
shape = SubResource("BoxShape3D_hfvd5") | ||
|
||
[node name="GravityDropable" type="CharacterBody3D" parent="."] | ||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.4309, -8.70151) | ||
script = ExtResource("4_xv00g") | ||
|
||
[node name="MeshInstance3D" type="MeshInstance3D" parent="GravityDropable"] | ||
mesh = SubResource("BoxMesh_dgwl6") | ||
|
||
[node name="CollisionShape3D" type="CollisionShape3D" parent="GravityDropable"] | ||
shape = SubResource("BoxShape3D_f7jgy") | ||
|
||
[connection signal="body_entered" from="PressurePlate" to="." method="_on_pressure_plate_body_entered"] | ||
[connection signal="body_exited" from="PressurePlate" to="." method="_on_pressure_plate_body_exited"] |
Oops, something went wrong.