add madness
This commit is contained in:
parent
c984f0f21e
commit
07d787e6c2
|
@ -0,0 +1,3 @@
|
|||
source_md5="7c7297785e72c853ef99942fb2a995d0"
|
||||
dest_md5="92315a7fb8e813c3a546ecd8d2eeb343"
|
||||
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,15 @@
|
|||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/sicky_drone_2.ogg-2840f8c9e588a8dc24ba32874f0439b2.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/sicky_drone_2.ogg"
|
||||
dest_files=[ "res://.import/sicky_drone_2.ogg-2840f8c9e588a8dc24ba32874f0439b2.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
|
@ -0,0 +1,19 @@
|
|||
extends Spatial
|
||||
|
||||
func madness():
|
||||
$CanvasLayer/ColorRect.visible = false
|
||||
$CanvasLayer/ColorRect2.visible = true
|
||||
$CanvasLayer/ColorRect2/AudioStreamPlayer.play()
|
||||
yield($CanvasLayer/ColorRect2/AudioStreamPlayer, "finished")
|
||||
$CanvasLayer/ColorRect.visible = true
|
||||
$CanvasLayer/ColorRect2.visible = false
|
||||
|
||||
|
||||
export var frequency = 600
|
||||
var seconds = 0.0
|
||||
|
||||
func _process(delta):
|
||||
seconds += delta
|
||||
if seconds > frequency:
|
||||
seconds = 0
|
||||
madness()
|
|
@ -1,33 +1,40 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://effects/dithering/screen_space_shader.tres" type="Shader" id=1]
|
||||
[ext_resource path="res://effects/grainy_shader.tres" type="Material" id=2]
|
||||
[ext_resource path="res://effects/grainy_shader.gd" type="Script" id=3]
|
||||
[ext_resource path="res://assets/audio/sicky_drone_2.ogg" type="AudioStream" id=4]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=3]
|
||||
shader = ExtResource( 1 )
|
||||
shader_param/seed = 81.0
|
||||
shader_param/power = 0.0022
|
||||
shader_param/speed = 0.1
|
||||
shader_param/param = 23.0
|
||||
shader_param/param = 9.0
|
||||
shader_param/scale = 2.0
|
||||
shader_param/grid = 4
|
||||
shader_param/anim_period = 0.1
|
||||
shader_param/amount = 0.06
|
||||
shader_param/factor = 200.0
|
||||
shader_param/factor = 500.0
|
||||
|
||||
[node name="shader" type="Spatial"]
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
layer = 100
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer"]
|
||||
visible = false
|
||||
material = ExtResource( 2 )
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="ColorRect2" type="ColorRect" parent="CanvasLayer"]
|
||||
visible = false
|
||||
material = SubResource( 3 )
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="CanvasLayer/ColorRect2"]
|
||||
stream = ExtResource( 4 )
|
||||
volume_db = 15.0
|
||||
|
|
|
@ -114,7 +114,7 @@ shader_param/normal_map = ExtResource( 2 )
|
|||
extents = Vector3( 1.72965, 1.52498, 0.0716956 )
|
||||
|
||||
[sub_resource type="BoxShape" id=4]
|
||||
extents = Vector3( 0.415364, 0.271899, 0.607307 )
|
||||
extents = Vector3( 1, 1, 1.66041 )
|
||||
|
||||
[node name="WallStruggler" type="MeshInstance"]
|
||||
transform = Transform( 0.75, 0, 0, 0, 0.75, 0, 0, 0, 0.75, 0, 0, 0 )
|
||||
|
|
|
@ -52,7 +52,7 @@ tracks/0/keys = {
|
|||
"times": PoolRealArray( 0, 0.549, 2.928 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ 70.0, 70.0, 110.0 ]
|
||||
"values": [ 70.0, 70.0, 130.0 ]
|
||||
}
|
||||
|
||||
[sub_resource type="CylinderShape" id=4]
|
||||
|
|
|
@ -100,6 +100,7 @@ config/icon="res://meat_madness_icon.png"
|
|||
Util="*res://util.gd"
|
||||
GlobalEventBus="*res://global_event_bus.gd"
|
||||
SavedDialogueProgress="*res://saved_dialogue_progress.gd"
|
||||
DebugTools="*res://DebugTools.tscn"
|
||||
|
||||
[display]
|
||||
|
||||
|
|
Loading…
Reference in New Issue