1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-21 23:54:23 +00:00
This commit is contained in:
Caterina Gazzotti 2024-04-15 21:40:03 +02:00
commit c1a1a024cf
14 changed files with 103 additions and 11 deletions

View file

@ -9,5 +9,5 @@ class_name SpriteLeftRight
func handle_move(movement: Vector2):
if movement.x > 0:
texture = right_texture
else:
elif movement.x < 0:
texture = left_texture

View file

@ -1,8 +1,8 @@
[gd_scene load_steps=4 format=3 uid="uid://b38wkla8e7rmo"]
[ext_resource type="Script" path="res://main.gd" id="1_jyg3q"]
[ext_resource type="Material" uid="uid://dpumcyplql08q" path="res://postprocess.material" id="2_3o1ux"]
[ext_resource type="PackedScene" uid="uid://bkm7id1wdwywg" path="res://scenes/menu/safe_margin_container.tscn" id="2_ah6n8"]
[ext_resource type="PackedScene" uid="uid://dyodbq3yrbi87" path="res://postprocessing/postprocessing_rect.tscn" id="2_shp84"]
[node name="Main" type="Node"]
script = ExtResource("1_jyg3q")
@ -10,15 +10,7 @@ starting_stage = 3
[node name="PostprocessingCanvas" type="CanvasLayer" parent="."]
[node name="ColorRect" type="ColorRect" parent="PostprocessingCanvas"]
texture_filter = 1
material = ExtResource("2_3o1ux")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)
[node name="PostprocessingRect" parent="PostprocessingCanvas" instance=ExtResource("2_shp84")]
[node name="InterfaceCanvas" type="CanvasLayer" parent="."]

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,8 @@
extends ColorRect
class_name PostprocessingRect
func _input(event: InputEvent) -> void:
if event is InputEventKey:
if event.is_action_pressed(&"postprocessing_toggle"):
visible = !visible

View file

@ -0,0 +1,15 @@
[gd_scene load_steps=3 format=3 uid="uid://dyodbq3yrbi87"]
[ext_resource type="Material" uid="uid://dpumcyplql08q" path="res://postprocessing/postprocess.material" id="1_sswlf"]
[ext_resource type="Script" path="res://postprocessing/postprocessing_rect.gd" id="2_om0qv"]
[node name="PostprocessingRect" type="ColorRect"]
texture_filter = 1
material = ExtResource("1_sswlf")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)
script = ExtResource("2_om0qv")

View file

@ -33,6 +33,11 @@ main_menu={
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194317,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
postprocessing_toggle={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194311,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
[layer_names]

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://ca7div60m5v6v"
path="res://.godot/imported/demon_dying.wav-f781d9d5c9ca2f286e7dbcaad0cf6ece.sample"
[deps]
source_file="res://temp/demon_dying.wav"
dest_files=["res://.godot/imported/demon_dying.wav-f781d9d5c9ca2f286e7dbcaad0cf6ece.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://c770xsgaupkqp"
path="res://.godot/imported/monster_bite.wav-998daf3973ea57342de9f661bcc37e94.sample"
[deps]
source_file="res://temp/monster_bite.wav"
dest_files=["res://.godot/imported/monster_bite.wav-998daf3973ea57342de9f661bcc37e94.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0

Binary file not shown.

24
temp/tank.wav.import Normal file
View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://d0feiq5s6fnux"
path="res://.godot/imported/tank.wav-76da0daecf3b365c21fcd97289993799.sample"
[deps]
source_file="res://temp/tank.wav"
dest_files=["res://.godot/imported/tank.wav-76da0daecf3b365c21fcd97289993799.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0