OverviewFilesCommitsIssuesDocsReleasesPeers

godot-witchy_world_demo commits / 0df72da

reworked asset configurations
0df72da58b63563740c7d891a1ae36824a625f98
by Dresk Spidflisk <dreskspidflisk@gmail.com> · 2022-04-20T21:48:39.000Z

Changed files (12) +71 -6

assets/masks/asset_animal_mask.tscn +7 -0
……@@ -0,0 +1,7 @@
1[gd_scene load_steps=2 format=2]
2
3[ext_resource path="res://assets/masks/animal_mask.glb" type="PackedScene" id=1]
4
5[node name="asset_animal_mask" type="Spatial"]
6
7[node name="animal_mask" parent="." instance=ExtResource( 1 )]
assets/masks/asset_laughing_goblin.tscn +7 -0
……@@ -0,0 +1,7 @@
1[gd_scene load_steps=2 format=2]
2
3[ext_resource path="res://assets/masks/laughgoblin.glb" type="PackedScene" id=1]
4
5[node name="asset_laughing_goblin" type="Spatial"]
6
7[node name="laughgoblin" parent="." instance=ExtResource( 1 )]
assets/masks/asset_ratface.tscn +7 -0
……@@ -0,0 +1,7 @@
1[gd_scene load_steps=2 format=2]
2
3[ext_resource path="res://assets/masks/ratface.glb" type="PackedScene" id=1]
4
5[node name="asset_ratface" type="Spatial"]
6
7[node name="ratface" parent="." instance=ExtResource( 1 )]
assets/masks/asset_skull.tscn +7 -0
……@@ -0,0 +1,7 @@
1[gd_scene load_steps=2 format=2]
2
3[ext_resource path="res://assets/masks/skull.glb" type="PackedScene" id=1]
4
5[node name="asset_skull" type="Spatial"]
6
7[node name="skull" parent="." instance=ExtResource( 1 )]
assets/models/night_ghost/night_ghost.scn +0 -0
(no content changes — binary or rename)
game/player/masks/mask_animal.tscn +7 -0
……@@ -0,0 +1,7 @@
1[gd_scene load_steps=2 format=2]
2
3[ext_resource path="res://assets/masks/asset_animal_mask.tscn" type="PackedScene" id=1]
4
5[node name="mask_animal" type="Spatial"]
6
7[node name="asset_animal_mask" parent="." instance=ExtResource( 1 )]
game/player/masks/mask_laughing_goblin.tscn +7 -0
……@@ -0,0 +1,7 @@
1[gd_scene load_steps=2 format=2]
2
3[ext_resource path="res://assets/masks/asset_laughing_goblin.tscn" type="PackedScene" id=1]
4
5[node name="mask_laughing_goblin" type="Spatial"]
6
7[node name="asset_laughing_goblin" parent="." instance=ExtResource( 1 )]
game/player/masks/mask_ratface.tscn +7 -0
……@@ -0,0 +1,7 @@
1[gd_scene load_steps=2 format=2]
2
3[ext_resource path="res://assets/masks/asset_ratface.tscn" type="PackedScene" id=1]
4
5[node name="mask_ratface" type="Spatial"]
6
7[node name="asset_ratface" parent="." instance=ExtResource( 1 )]
game/player/masks/mask_skull.tscn +7 -0
……@@ -0,0 +1,7 @@
1[gd_scene load_steps=2 format=2]
2
3[ext_resource path="res://assets/masks/asset_skull.tscn" type="PackedScene" id=1]
4
5[node name="mask_skull" type="Spatial"]
6
7[node name="asset_skull" parent="." instance=ExtResource( 1 )]
game/player/player_core.gd +13 -4
……@@ -2,6 +2,11 @@ extends KinematicBody
22
33var hyperGossip : HyperGossip
44
5const maskAnimal = preload("res://game/player/masks/mask_animal.tscn")
6const maskLaughingGoblin = preload("res://game/player/masks/mask_laughing_goblin.tscn")
7const maskRatface = preload("res://game/player/masks/mask_ratface.tscn")
8const maskSkull = preload("res://game/player/masks/mask_skull.tscn")
9
510# TODO : These probably should not be in player_core, though I am uncertain yet if they belong elsewhere
611const EVENT_PLAYER_SNAPSHOT = 'player_snapshot'
712const EVENT_PLAYER_WANTSTOJUMP = 'player_wantstojump'
……@@ -24,10 +29,11 @@ export var currentSpeed : float = 0
2429onready var meshNode : Spatial = $Model
2530
2631# Skeleton-specific VARs
27#onready var meshSkeletonNode : Skeleton = $Model/Armature/Skeleton
28#onready var meshSkeletonHiddenHand : MeshInstance = $Model/Armature/Skeleton/player001
29#onready var meshHandBone : int = meshSkeletonNode.find_bone("DEF-hand.R")
30#onready var meshHandBonePos : Transform = meshSkeletonNode.get_bone_pose(meshHandBone)
32onready var meshSkeletonNode : Skeleton = $Model/rig/Skeleton
33onready var meshSkeletonHiddenHand : MeshInstance = $Model/rig/Skeleton/player000
34onready var meshFaceBone : int = meshSkeletonNode.find_bone("DEF-spine.006")
35onready var meshFaceBonePos : Transform = meshSkeletonNode.get_bone_pose(meshFaceBone)
36onready var meshMaskAttachment : BoneAttachment = $Model/rig/Skeleton/MaskAttachment
3137
3238onready var clippedCamera : Spatial = $CameraHead/CameraPivot/ClippedCamera
3339onready var clippedCameraHead : Spatial = $CameraHead
……@@ -80,6 +86,9 @@ func _ready():
8086 # Get HyperGossip
8187 hyperGossip = get_tree().get_current_scene().get_node("HyperGodot").get_node("HyperGossip")
8288
89 var newMask = maskAnimal.instance()
90 meshMaskAttachment.add_child(newMask)
91
8392func snapShotUpdate(_translation : Vector3, _meshDirection : Vector3, _lookingDirection : Vector3):
8493 self.translation = _translation
8594 self.meshNode.rotation = _meshDirection
game/player/player_core_local.tscn +1 -1
……@@ -8,7 +8,7 @@
88
99[node name="PlayerCoreLocal" instance=ExtResource( 1 )]
1010
11[node name="Sound_Shoot_GrapplingHook_1" parent="Model" index="8"]
11[node name="Sound_Shoot_GrapplingHook_1" parent="Model" index="9"]
1212transform = Transform( 1.53846, 0, 0, 0, 1.53846, 0, 0, 0, 1.53846, 0, 0, 0 )
1313stream = ExtResource( 9 )
1414attenuation_filter_cutoff_hz = 5000.0
game/player/player_local_core.tres +1 -1
……@@ -187,4 +187,4 @@ nodes/walk_scale/node = SubResource( 23 )
187187nodes/walk_scale/position = Vector2( -640, 360 )
188188nodes/wall_run/node = SubResource( 50 )
189189nodes/wall_run/position = Vector2( 720, -60 )
190node_connections = [ "output", 0, "wall_run", "landing_scale", 0, "Animation 7", "iwr_blend", 0, "Animation 2", "iwr_blend", 1, "walk_scale", "iwr_blend", 2, "run_scale", "run_scale", 0, "Animation 4", "jump_scale", 0, "jump", "falling_scale", 0, "Animation 6", "walk_scale", 0, "Animation 3", "Blend2", 0, "Animation 8", "Blend2", 1, "Animation 9", "air_transition", 0, "air_blend", "air_transition", 1, "aim_transition", "TimeScale 3", 0, "strafe", "aim_transition", 0, "TimeScale 3", "aim_transition", 1, "iwr_blend", "air_blend", 0, "jump_scale", "air_blend", 1, "falling_scale", "air_blend", 2, "landing_scale", "Blend2 2", 0, "Animation 11", "Blend2 2", 1, "Animation 10", "roll", 0, "air_transition", "roll", 1, "roll_scale", "roll_scale", 0, "Animation", "wall_run", 0, "Blend2", "wall_run", 1, "Blend2 2", "wall_run", 2, "roll" ]
190node_connections = [ "output", 0, "wall_run", "Blend2", 0, "Animation 8", "Blend2", 1, "Animation 9", "Blend2 2", 0, "Animation 11", "Blend2 2", 1, "Animation 10", "roll", 0, "air_transition", "roll", 1, "roll_scale", "roll_scale", 0, "Animation", "wall_run", 0, "Blend2", "wall_run", 1, "Blend2 2", "wall_run", 2, "roll", "aim_transition", 0, "TimeScale 3", "aim_transition", 1, "iwr_blend", "air_blend", 0, "jump_scale", "air_blend", 1, "falling_scale", "air_blend", 2, "landing_scale", "TimeScale 3", 0, "strafe", "air_transition", 0, "air_blend", "air_transition", 1, "aim_transition", "falling_scale", 0, "Animation 6", "jump_scale", 0, "jump", "walk_scale", 0, "Animation 3", "iwr_blend", 0, "Animation 2", "iwr_blend", 1, "walk_scale", "iwr_blend", 2, "run_scale", "landing_scale", 0, "Animation 7", "run_scale", 0, "Animation 4" ]