Skip to content

Commit

Permalink
new playeer
Browse files Browse the repository at this point in the history
  • Loading branch information
janekx21 committed Jan 22, 2024
1 parent 13ffb69 commit f41bc77
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 2 deletions.
Binary file modified models/hex.blend
Binary file not shown.
Binary file modified models/hex.blend1
Binary file not shown.
Binary file added models/player.blend
Binary file not shown.
Binary file added models/player.glb
Binary file not shown.
34 changes: 34 additions & 0 deletions models/player.glb.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="scene"
importer_version=1
type="PackedScene"
uid="uid://dsk5notetr5gh"
path="res://.godot/imported/player.glb-874246918b1d1ae729e6f5a64d32052b.scn"

[deps]

source_file="res://models/player.glb"
dest_files=["res://.godot/imported/player.glb-874246918b1d1ae729e6f5a64d32052b.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
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ attack={

[physics]

common/physics_ticks_per_second=240
common/physics_ticks_per_second=120
3d/default_gravity=20.0
5 changes: 5 additions & 0 deletions scenes/hexagon.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,8 @@ visible = false
material_override = SubResource("ShaderMaterial_h646y")
mesh = SubResource("ArrayMesh_3jj5g")
skeleton = NodePath("")

[node name="ReflectionProbe" type="ReflectionProbe" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0443811, 3.38648, -0.00446701)
max_distance = 10.0
size = Vector3(10, 5, 10)
7 changes: 6 additions & 1 deletion scenes/player.tscn
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[gd_scene load_steps=8 format=3 uid="uid://c6clkgmt6mj40"]
[gd_scene load_steps=9 format=3 uid="uid://c6clkgmt6mj40"]

[ext_resource type="Script" path="res://code/player.gd" id="1_mp6gu"]
[ext_resource type="Script" path="res://code/Hitbox.gd" id="2_i6eom"]
[ext_resource type="PackedScene" uid="uid://bxkww14xjpfa6" path="res://scenes/debug_label.tscn" id="2_mrx3p"]
[ext_resource type="Script" path="res://code/Hp.gd" id="2_t6o4p"]
[ext_resource type="PackedScene" uid="uid://dsk5notetr5gh" path="res://models/player.glb" id="5_4xekk"]

[sub_resource type="CapsuleMesh" id="CapsuleMesh_a6ck7"]
height = 1.8
Expand All @@ -20,6 +21,7 @@ max_speed = 6
hp = NodePath("Hp")

[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
visible = false
mesh = SubResource("CapsuleMesh_a6ck7")

[node name="DebugLabel" parent="MeshInstance3D" instance=ExtResource("2_mrx3p")]
Expand All @@ -37,4 +39,7 @@ shape = SubResource("CapsuleShape3D_rvqs5")
[node name="Hp" type="Node" parent="."]
script = ExtResource("2_t6o4p")

[node name="player" parent="." instance=ExtResource("5_4xekk")]
transform = Transform3D(0.363647, 0, 0, 0, 0.363647, 0, 0, 0, 0.363647, 0, -0.967437, 0)

[connection signal="death" from="Hp" to="." method="_on_hp_death"]

0 comments on commit f41bc77

Please sign in to comment.