Created Front Door and Medical Symbol on building. Doors have yet to be finished

This commit is contained in:
Unknown
2024-09-17 15:46:06 -05:00
parent 7205f9651c
commit 581ea25567
7 changed files with 93 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,9 @@
class_name Interactable class_name Interactable
extends StaticBody3D extends StaticBody3D
signal interaction
@export var prompt_message:String = "Press e" @export var prompt_message:String = "Press e"
func interact(player): func interact(player):
pass emit_signal("interaction")

View File

@ -0,0 +1,18 @@
extends MeshInstance3D
@export_range(0.1,1,.01) var step:float
var open:float = 0.0
var is_opening:bool = false
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if is_opening:
open = open + step
open = clampf(open, 0.0, 1.0)
else:
open = open - step
open = clampf(open, 0.0, 1.0)
set_blend_shape_value(0, open)
func _on_interactable_interaction() -> void:
is_opening = !is_opening

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

View File

@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://djnk0p3v6opdr"
path.s3tc="res://.godot/imported/MedicalSymbol.png-7b00279b11fa51eb9631f973c90b58c5.s3tc.ctex"
path.etc2="res://.godot/imported/MedicalSymbol.png-7b00279b11fa51eb9631f973c90b58c5.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}
[deps]
source_file="res://Assets/textures/MedicalSymbol.png"
dest_files=["res://.godot/imported/MedicalSymbol.png-7b00279b11fa51eb9631f973c90b58c5.s3tc.ctex", "res://.godot/imported/MedicalSymbol.png-7b00279b11fa51eb9631f973c90b58c5.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