Initial commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://c4l13kdqg707d"
|
||||
path="res://.godot/imported/MainHangarExport.glb-ffd5971678b047352f89af4c67418643.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/3D/MainHangarExport.glb"
|
||||
dest_files=["res://.godot/imported/MainHangarExport.glb-ffd5971678b047352f89af4c67418643.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_node_type_suffixes=true
|
||||
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={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
@@ -0,0 +1,19 @@
|
||||
extends Area3D
|
||||
class_name HitBox
|
||||
|
||||
@export var active: bool = false
|
||||
var attack: Attack
|
||||
|
||||
func _ready() -> void:
|
||||
monitorable = false
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if !attack: return
|
||||
|
||||
var boxesHurt: Array[HurtBox]
|
||||
for area in get_overlapping_areas():
|
||||
if area is HurtBox:
|
||||
boxesHurt.push_back(area)
|
||||
|
||||
for box in boxesHurt:
|
||||
box.hit(attack)
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 377 B |
Reference in New Issue
Block a user