Compare commits
4 Commits
e0c2c33495
...
1a6a94d02b
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a6a94d02b | |||
| f59e888ad5 | |||
| e7f51c66e5 | |||
| 31f97be68f |
@ -50,6 +50,6 @@ collision_layer = 4
|
|||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.22615, 3.3694, -3.67555)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.22615, 3.3694, -3.67555)
|
||||||
|
|
||||||
[node name="Night Stand" parent="." instance=ExtResource("9_rvpgu")]
|
[node name="Night Stand" parent="." instance=ExtResource("9_rvpgu")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.50913, -2.38419e-07, -1.53862)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.5253, -2.38419e-07, -1.59482)
|
||||||
|
|
||||||
[editable path="ApartmentMap"]
|
[editable path="ApartmentMap"]
|
||||||
|
|||||||
58
Assets/Objects/generator_panel.tscn
Normal file
58
Assets/Objects/generator_panel.tscn
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
[gd_scene load_steps=7 format=3 uid="uid://bpc015tk4ehtg"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://Assets/scripts/Generator Panel.gd" id="1_i8xx2"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://r4bpij06p34a" path="res://Blender Files/Objects/GeneratorPanel.blend" id="2_4k7uo"]
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_xn70b"]
|
||||||
|
size = Vector3(0.322693, 0.569824, 0.078186)
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id="Animation_5a75i"]
|
||||||
|
resource_name = "Press"
|
||||||
|
tracks/0/type = "bezier"
|
||||||
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath("GeneratorPanel/Circle:blend_shapes/ButtonPressed")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/keys = {
|
||||||
|
"handle_modes": PackedInt32Array(0, 0, 0),
|
||||||
|
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0, 1, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0),
|
||||||
|
"times": PackedFloat32Array(0, 0.5, 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id="Animation_qkow4"]
|
||||||
|
length = 0.001
|
||||||
|
tracks/0/type = "bezier"
|
||||||
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath("GeneratorPanel/Circle:blend_shapes/ButtonPressed")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/keys = {
|
||||||
|
"handle_modes": PackedInt32Array(0),
|
||||||
|
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
|
||||||
|
"times": PackedFloat32Array(0)
|
||||||
|
}
|
||||||
|
|
||||||
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ed3dm"]
|
||||||
|
_data = {
|
||||||
|
"Press": SubResource("Animation_5a75i"),
|
||||||
|
"RESET": SubResource("Animation_qkow4")
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="StaticBody3D" type="StaticBody3D"]
|
||||||
|
script = ExtResource("1_i8xx2")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.000640869, 0.0495605, 0.0411072)
|
||||||
|
shape = SubResource("BoxShape3D_xn70b")
|
||||||
|
|
||||||
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||||
|
libraries = {
|
||||||
|
"": SubResource("AnimationLibrary_ed3dm")
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="GeneratorPanel" parent="." instance=ExtResource("2_4k7uo")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.0453592)
|
||||||
|
|
||||||
|
[editable path="GeneratorPanel"]
|
||||||
10
Assets/scripts/Generator Panel.gd
Normal file
10
Assets/scripts/Generator Panel.gd
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
extends StaticBody3D
|
||||||
|
|
||||||
|
@export var promt_message:String = "press e"
|
||||||
|
@export var promt_key:String
|
||||||
|
|
||||||
|
signal Generator_Started
|
||||||
|
|
||||||
|
func interact(player):
|
||||||
|
$AnimationPlayer.play("Press")
|
||||||
|
emit_signal("Generator_Started")
|
||||||
8
Assets/scripts/Interactable.gd
Normal file
8
Assets/scripts/Interactable.gd
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
class_name Interactable
|
||||||
|
extends StaticBody3D
|
||||||
|
|
||||||
|
@export var promt_message:String = "press e"
|
||||||
|
@export var promt_key:String
|
||||||
|
|
||||||
|
func interact(player):
|
||||||
|
pass
|
||||||
@ -1,4 +1,3 @@
|
|||||||
class_name Interactable
|
|
||||||
extends Node3D
|
extends Node3D
|
||||||
|
|
||||||
@export var promt_message:String = "press e"
|
@export var promt_message:String = "press e"
|
||||||
|
|||||||
Binary file not shown.
BIN
Assets/textures/lock.png
Normal file
BIN
Assets/textures/lock.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.0 KiB |
36
Assets/textures/lock.png.import
Normal file
36
Assets/textures/lock.png.import
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cb0o3c5fuy7f"
|
||||||
|
path.s3tc="res://.godot/imported/lock.png-95b8d267f535363d56fddd9b641337c3.s3tc.ctex"
|
||||||
|
path.etc2="res://.godot/imported/lock.png-95b8d267f535363d56fddd9b641337c3.etc2.ctex"
|
||||||
|
metadata={
|
||||||
|
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||||
|
"vram_texture": true
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Assets/textures/lock.png"
|
||||||
|
dest_files=["res://.godot/imported/lock.png-95b8d267f535363d56fddd9b641337c3.s3tc.ctex", "res://.godot/imported/lock.png-95b8d267f535363d56fddd9b641337c3.etc2.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=2
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=true
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=0
|
||||||
BIN
Blender Files/Objects/GeneratorPanel.blend
Normal file
BIN
Blender Files/Objects/GeneratorPanel.blend
Normal file
Binary file not shown.
50
Blender Files/Objects/GeneratorPanel.blend.import
Normal file
50
Blender Files/Objects/GeneratorPanel.blend.import
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="scene"
|
||||||
|
importer_version=1
|
||||||
|
type="PackedScene"
|
||||||
|
uid="uid://r4bpij06p34a"
|
||||||
|
path="res://.godot/imported/GeneratorPanel.blend-6167ef43758fa8601dda33b89f65cd49.scn"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Blender Files/Objects/GeneratorPanel.blend"
|
||||||
|
dest_files=["res://.godot/imported/GeneratorPanel.blend-6167ef43758fa8601dda33b89f65cd49.scn"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
nodes/root_type=""
|
||||||
|
nodes/root_name=""
|
||||||
|
nodes/apply_root_scale=true
|
||||||
|
nodes/root_scale=1.0
|
||||||
|
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
|
||||||
|
import_script/path=""
|
||||||
|
_subresources={}
|
||||||
|
gltf/naming_version=1
|
||||||
|
gltf/embedded_image_handling=1
|
||||||
|
blender/nodes/visible=0
|
||||||
|
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
|
||||||
BIN
Blender Files/Objects/GeneratorPanel.blend1
Normal file
BIN
Blender Files/Objects/GeneratorPanel.blend1
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user