New dino model ingame
This commit is contained in:
parent
cc15387334
commit
fc0a54fe82
@ -27,4 +27,7 @@ func _process(delta):
|
||||
else:
|
||||
dir = (_player.transform.origin - transform.origin).normalized()
|
||||
|
||||
if (dir.x != 0.0 and dir.z != 0.0):
|
||||
look_at(Vector3(dir.x, 0.0, dir.z), Vector3.UP)
|
||||
|
||||
move_and_slide(dir * speed)
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -10,7 +10,9 @@
|
||||
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 2, 0 )
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="CrystalBody" type="StaticBody" parent="."]
|
||||
[node name="CrystalBody" type="StaticBody" parent="." groups=[
|
||||
"Crystal",
|
||||
]]
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="CrystalBody"]
|
||||
shape = SubResource( 1 )
|
||||
|
34
WikiJam/Models/Blender/DinoSide.jpg.import
Normal file
34
WikiJam/Models/Blender/DinoSide.jpg.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/DinoSide.jpg-8a25ef46a4ca2d5424a37b519757838b.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Models/Blender/DinoSide.jpg"
|
||||
dest_files=[ "res://.import/DinoSide.jpg-8a25ef46a4ca2d5424a37b519757838b.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
1062
WikiJam/Models/Dino.glb.import
Normal file
1062
WikiJam/Models/Dino.glb.import
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,11 @@
|
||||
[gd_scene load_steps=8 format=2]
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://Player/Player.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Player/Footsteps.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Resources/Audio/Step.wav" type="AudioStream" id=3]
|
||||
[ext_resource path="res://Player/UI/HUD.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://Player/UI/HUD.gd" type="Script" id=5]
|
||||
[ext_resource path="res://Sounds/dino-eat.wav" type="AudioStream" id=6]
|
||||
|
||||
[sub_resource type="CylinderShape" id=1]
|
||||
height = 2.5
|
||||
@ -42,6 +43,10 @@ tracks/1/keys = {
|
||||
} ]
|
||||
}
|
||||
|
||||
[sub_resource type="CapsuleShape" id=3]
|
||||
radius = 1.58175
|
||||
height = 1.6
|
||||
|
||||
[node name="Player" type="KinematicBody"]
|
||||
script = ExtResource( 1 )
|
||||
body_nodepath = NodePath("Body")
|
||||
@ -138,4 +143,14 @@ margin_right = 614.651
|
||||
margin_bottom = 582.551
|
||||
step = 1.0
|
||||
value = 100.0
|
||||
|
||||
[node name="GameOverSound" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 6 )
|
||||
|
||||
[node name="InteractArea" type="Area" parent="."]
|
||||
gravity = 0.0
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape" parent="InteractArea"]
|
||||
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 2, 0 )
|
||||
shape = SubResource( 3 )
|
||||
[connection signal="pressed" from="HUD/PopupWon/Button" to="HUD" method="_on_Button_pressed"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user