Luna Brovchuk 2023-10-02 17:41:07 +02:00
commit 0364fc179b
19 changed files with 205 additions and 39 deletions

Binary file not shown.

View File

@ -0,0 +1,15 @@
[remap]
importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/card_select.ogg-d67a6f7f8c8f8a582e1c42a34d767426.oggstr"
[deps]
source_file="res://res/sounds/card_select/card_select.ogg"
dest_files=[ "res://.import/card_select.ogg-d67a6f7f8c8f8a582e1c42a34d767426.oggstr" ]
[params]
loop=false
loop_offset=0

View File

@ -3,6 +3,7 @@
[ext_resource path="res://res/fonts/silkscreen/Silkscreen-Regular.ttf" type="DynamicFontData" id=1] [ext_resource path="res://res/fonts/silkscreen/Silkscreen-Regular.ttf" type="DynamicFontData" id=1]
[sub_resource type="DynamicFont" id=1] [sub_resource type="DynamicFont" id=1]
size = 8
font_data = ExtResource( 1 ) font_data = ExtResource( 1 )
[resource] [resource]

View File

@ -1,8 +1,10 @@
[gd_scene load_steps=6 format=2] [gd_scene load_steps=8 format=2]
[ext_resource path="res://src/models/enemies/bat/sprites/bat_spriteframes.tres" type="SpriteFrames" id=1] [ext_resource path="res://src/models/enemies/bat/sprites/bat_spriteframes.tres" type="SpriteFrames" id=1]
[ext_resource path="res://src/models/enemies/bat/bat.gd" type="Script" id=2] [ext_resource path="res://src/models/enemies/bat/bat.gd" type="Script" id=2]
[ext_resource path="res://src/models/shadow/shadow.png" type="Texture" id=3] [ext_resource path="res://src/models/shadow/shadow.png" type="Texture" id=3]
[ext_resource path="res://res/sounds/bat/damaged.ogg" type="AudioStream" id=4]
[ext_resource path="res://res/sounds/bat/screem.wav" type="AudioStream" id=5]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 4, 3 ) extents = Vector2( 4, 3 )
@ -20,7 +22,6 @@ script = ExtResource( 2 )
use_parent_material = true use_parent_material = true
frames = ExtResource( 1 ) frames = ExtResource( 1 )
animation = "idle" animation = "idle"
frame = 3
playing = true playing = true
centered = false centered = false
@ -38,3 +39,9 @@ shape = SubResource( 2 )
position = Vector2( 11, 21 ) position = Vector2( 11, 21 )
z_index = -1 z_index = -1
texture = ExtResource( 3 ) texture = ExtResource( 3 )
[node name="AudioDamage" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 4 )
[node name="AudioScreem" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )

View File

@ -61,3 +61,4 @@ func _shoot():
get_parent().add_child(sonic_wave) get_parent().add_child(sonic_wave)
sonic_wave.global_position.x = self.global_position.x + 8 sonic_wave.global_position.x = self.global_position.x + 8
sonic_wave.global_position.y = self.global_position.y + 8 sonic_wave.global_position.y = self.global_position.y + 8
$AudioScreem.play()

View File

@ -1,8 +1,11 @@
[gd_scene load_steps=5 format=2] [gd_scene load_steps=8 format=2]
[ext_resource path="res://src/models/enemies/ghost/sprites/ghost_spriteframes.tres" type="SpriteFrames" id=1] [ext_resource path="res://src/models/enemies/ghost/sprites/ghost_spriteframes.tres" type="SpriteFrames" id=1]
[ext_resource path="res://src/models/enemies/ghost/ghost.gd" type="Script" id=2] [ext_resource path="res://src/models/enemies/ghost/ghost.gd" type="Script" id=2]
[ext_resource path="res://src/models/enemies/ghost/sprites/aiming/aiming_spriteframes.tres" type="SpriteFrames" id=3] [ext_resource path="res://src/models/enemies/ghost/sprites/aiming/aiming_spriteframes.tres" type="SpriteFrames" id=3]
[ext_resource path="res://res/sounds/ghost/damaged.wav" type="AudioStream" id=4]
[ext_resource path="res://res/sounds/ghost/dash_charge.wav" type="AudioStream" id=5]
[ext_resource path="res://res/sounds/ghost/dash.wav" type="AudioStream" id=6]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 7, 9 ) extents = Vector2( 7, 9 )
@ -25,6 +28,7 @@ flip_h = true
use_parent_material = true use_parent_material = true
frames = ExtResource( 1 ) frames = ExtResource( 1 )
animation = "idle" animation = "idle"
frame = 1
playing = true playing = true
centered = false centered = false
@ -33,3 +37,12 @@ centered = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( 8.5, 13.5 ) position = Vector2( 8.5, 13.5 )
shape = SubResource( 1 ) shape = SubResource( 1 )
[node name="AudioDamage" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 4 )
[node name="AudioDashCharge" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )
[node name="AudioDash" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )

View File

@ -34,8 +34,8 @@ func _physics_process(delta):
global_position = global_position.move_toward(dash_target, 10) global_position = global_position.move_toward(dash_target, 10)
if global_position == dash_target: if global_position == dash_target:
dashing = false dashing = false
$AudioDash.play()
afterdash = true afterdash = true
if afterdash: if afterdash:
afterdash_timer += delta afterdash_timer += delta
if afterdash_timer >= 1: if afterdash_timer >= 1:

View File

@ -1,8 +1,9 @@
[gd_scene load_steps=5 format=2] [gd_scene load_steps=6 format=2]
[ext_resource path="res://src/models/enemies/rat/sprites/rat_spriteframes.tres" type="SpriteFrames" id=1] [ext_resource path="res://src/models/enemies/rat/sprites/rat_spriteframes.tres" type="SpriteFrames" id=1]
[ext_resource path="res://src/models/enemies/rat/rat.gd" type="Script" id=2] [ext_resource path="res://src/models/enemies/rat/rat.gd" type="Script" id=2]
[ext_resource path="res://src/models/shadow/shadow.png" type="Texture" id=3] [ext_resource path="res://src/models/shadow/shadow.png" type="Texture" id=3]
[ext_resource path="res://res/sounds/rat/damaged.wav" type="AudioStream" id=4]
[sub_resource type="RectangleShape2D" id=1] [sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 8, 3.5 ) extents = Vector2( 8, 3.5 )
@ -29,3 +30,6 @@ shape = SubResource( 1 )
position = Vector2( 11, 9 ) position = Vector2( 11, 9 )
z_index = -1 z_index = -1
texture = ExtResource( 3 ) texture = ExtResource( 3 )
[node name="AudioDamage" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 4 )

View File

@ -4,4 +4,5 @@
[node name="Music" type="AudioStreamPlayer"] [node name="Music" type="AudioStreamPlayer"]
stream = ExtResource( 1 ) stream = ExtResource( 1 )
volume_db = -15.0
autoplay = true autoplay = true

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=29 format=2] [gd_scene load_steps=31 format=2]
[ext_resource path="res://src/scenes/menu/background/background.png" type="Texture" id=1] [ext_resource path="res://src/scenes/menu/background/background.png" type="Texture" id=1]
[ext_resource path="res://src/scenes/game/sprites/background_houses.png" type="Texture" id=2] [ext_resource path="res://src/scenes/game/sprites/background_houses.png" type="Texture" id=2]
@ -6,6 +6,8 @@
[ext_resource path="res://res/themes/8px.tres" type="Theme" id=4] [ext_resource path="res://res/themes/8px.tres" type="Theme" id=4]
[ext_resource path="res://src/models/player/Player.tscn" type="PackedScene" id=5] [ext_resource path="res://src/models/player/Player.tscn" type="PackedScene" id=5]
[ext_resource path="res://src/scenes/game/sprites/health/health.png" type="Texture" id=6] [ext_resource path="res://src/scenes/game/sprites/health/health.png" type="Texture" id=6]
[ext_resource path="res://src/scenes/game/sprites/cast_time.png" type="Texture" id=7]
[ext_resource path="res://src/scenes/game/sprites/damage.png" type="Texture" id=8]
[ext_resource path="res://src/scenes/game/card_placeholder.gd" type="Script" id=8] [ext_resource path="res://src/scenes/game/card_placeholder.gd" type="Script" id=8]
[ext_resource path="res://src/scenes/game/sprites/player_icon.png" type="Texture" id=10] [ext_resource path="res://src/scenes/game/sprites/player_icon.png" type="Texture" id=10]
[ext_resource path="res://src/scenes/game/game.gd" type="Script" id=11] [ext_resource path="res://src/scenes/game/game.gd" type="Script" id=11]
@ -28,14 +30,14 @@ extents = Vector2( 140, 10.125 )
atlas = ExtResource( 6 ) atlas = ExtResource( 6 )
region = Rect2( 155, 0, 31, 11 ) region = Rect2( 155, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=8]
atlas = ExtResource( 6 )
region = Rect2( 124, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=9] [sub_resource type="AtlasTexture" id=9]
atlas = ExtResource( 6 ) atlas = ExtResource( 6 )
region = Rect2( 93, 0, 31, 11 ) region = Rect2( 93, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=8]
atlas = ExtResource( 6 )
region = Rect2( 124, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=10] [sub_resource type="AtlasTexture" id=10]
atlas = ExtResource( 6 ) atlas = ExtResource( 6 )
region = Rect2( 62, 0, 31, 11 ) region = Rect2( 62, 0, 31, 11 )
@ -50,10 +52,10 @@ region = Rect2( 0, 0, 31, 11 )
[sub_resource type="SpriteFrames" id=4] [sub_resource type="SpriteFrames" id=4]
animations = [ { animations = [ {
"frames": [ SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ], "frames": [ SubResource( 7 ), SubResource( 9 ), SubResource( 8 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
"loop": true, "loop": false,
"name": "default", "name": "idle",
"speed": 5.0 "speed": 0.0
} ] } ]
[sub_resource type="Animation" id=5] [sub_resource type="Animation" id=5]
@ -174,6 +176,11 @@ margin_top = 126.0
margin_right = 310.0 margin_right = 310.0
margin_bottom = 128.0 margin_bottom = 128.0
[node name="ColorRectBackground" type="ColorRect" parent="UIWrapper/UI/LevelProgressBar"]
margin_right = 300.0
margin_bottom = 2.0
color = Color( 0.0862745, 0.141176, 0.2, 1 )
[node name="ColorRect" type="ColorRect" parent="UIWrapper/UI/LevelProgressBar"] [node name="ColorRect" type="ColorRect" parent="UIWrapper/UI/LevelProgressBar"]
margin_right = 300.0 margin_right = 300.0
margin_bottom = 2.0 margin_bottom = 2.0
@ -212,7 +219,7 @@ margin_bottom = 40.0
[node name="HealthSprite" type="AnimatedSprite" parent="UIWrapper/UI/Left/Health"] [node name="HealthSprite" type="AnimatedSprite" parent="UIWrapper/UI/Left/Health"]
position = Vector2( 52, 156 ) position = Vector2( 52, 156 )
frames = SubResource( 4 ) frames = SubResource( 4 )
frame = 5 animation = "idle"
centered = false centered = false
[node name="PlayerIcon" type="Sprite" parent="UIWrapper/UI/Left"] [node name="PlayerIcon" type="Sprite" parent="UIWrapper/UI/Left"]
@ -246,6 +253,11 @@ margin_right = 200.0
margin_bottom = 165.0 margin_bottom = 165.0
script = ExtResource( 16 ) script = ExtResource( 16 )
[node name="ColorRectBackground" type="ColorRect" parent="UIWrapper/UI/Center/SpellRechargeBar"]
margin_right = 80.0
margin_bottom = 3.0
color = Color( 0.0862745, 0.141176, 0.2, 1 )
[node name="ColorRect" type="ColorRect" parent="UIWrapper/UI/Center/SpellRechargeBar"] [node name="ColorRect" type="ColorRect" parent="UIWrapper/UI/Center/SpellRechargeBar"]
margin_right = 80.0 margin_right = 80.0
margin_bottom = 3.0 margin_bottom = 3.0
@ -254,6 +266,22 @@ margin_bottom = 3.0
margin_right = 40.0 margin_right = 40.0
margin_bottom = 40.0 margin_bottom = 40.0
[node name="CastTime" type="Control" parent="UIWrapper/UI/Right"]
margin_right = 40.0
margin_bottom = 40.0
[node name="CastTime" type="Sprite" parent="UIWrapper/UI/Right/CastTime"]
position = Vector2( 256, 140 )
texture = ExtResource( 7 )
[node name="Damage" type="Control" parent="UIWrapper/UI/Right"]
margin_right = 40.0
margin_bottom = 40.0
[node name="Damage" type="Sprite" parent="UIWrapper/UI/Right/Damage"]
position = Vector2( 256, 160 )
texture = ExtResource( 8 )
[node name="Cards" type="Control" parent="UIWrapper/UI"] [node name="Cards" type="Control" parent="UIWrapper/UI"]
visible = false visible = false
margin_right = 320.0 margin_right = 320.0

View File

@ -14,7 +14,7 @@ var mob_threshold = [5, 7, 10, 7]
func _ready(): func _ready():
Global.playing = true Global.playing = true
Global.play_time = 56 Global.play_time = .0
Global.health = 5 Global.health = 5
Global.add_health(0) Global.add_health(0)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/cast_time.png-236467b38d086f7887f1b94b4c0e9f8d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://src/scenes/game/sprites/cast_time.png"
dest_files=[ "res://.import/cast_time.png-236467b38d086f7887f1b94b4c0e9f8d.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=false
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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/damage.png-add8d9c6f61d8b55c2333dfcd00b0797.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://src/scenes/game/sprites/damage.png"
dest_files=[ "res://.import/damage.png-add8d9c6f61d8b55c2333dfcd00b0797.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=false
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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=7 format=2] [gd_scene load_steps=7 format=2]
[ext_resource path="res://src/scenes/menu/menu.gd" type="Script" id=1] [ext_resource path="res://src/scenes/menu/menu.gd" type="Script" id=1]
[ext_resource path="res://src/scenes/menu/background/background.png" type="Texture" id=2] [ext_resource path="res://src/scenes/menu/background/main_menu.png" type="Texture" id=2]
[ext_resource path="res://res/themes/default.tres" type="Theme" id=3] [ext_resource path="res://res/themes/default.tres" type="Theme" id=3]
[ext_resource path="res://src/scenes/menu/button/button_outline.png" type="Texture" id=4] [ext_resource path="res://src/scenes/menu/button/button_outline.png" type="Texture" id=4]
[ext_resource path="res://res/sounds/menu/click.wav" type="AudioStream" id=5] [ext_resource path="res://res/sounds/menu/click.wav" type="AudioStream" id=5]
@ -35,17 +35,17 @@ margin_right = 160.0
margin_bottom = 90.0 margin_bottom = 90.0
[node name="PlayButton" type="Button" parent="UI"] [node name="PlayButton" type="Button" parent="UI"]
margin_left = 20.0 margin_left = 138.0
margin_top = 40.0 margin_top = 45.0
margin_right = 140.0 margin_right = 218.0
margin_bottom = 80.0 margin_bottom = 72.0
theme = ExtResource( 3 ) theme = ExtResource( 3 )
text = "Play" text = "Play"
flat = true flat = true
[node name="Button_Outline" type="NinePatchRect" parent="UI/PlayButton"] [node name="Button_Outline" type="NinePatchRect" parent="UI/PlayButton"]
margin_right = 120.0 margin_right = 80.0
margin_bottom = 40.0 margin_bottom = 27.0
rect_clip_content = true rect_clip_content = true
texture = ExtResource( 4 ) texture = ExtResource( 4 )
patch_margin_left = 2 patch_margin_left = 2
@ -60,17 +60,17 @@ stream = ExtResource( 5 )
stream = ExtResource( 6 ) stream = ExtResource( 6 )
[node name="ExitButton" type="Button" parent="UI"] [node name="ExitButton" type="Button" parent="UI"]
margin_left = 20.0 margin_left = 122.0
margin_top = 100.0 margin_top = 90.0
margin_right = 140.0 margin_right = 202.0
margin_bottom = 140.0 margin_bottom = 117.0
theme = ExtResource( 3 ) theme = ExtResource( 3 )
text = "Exit" text = "Exit"
flat = true flat = true
[node name="Button_Outline" type="NinePatchRect" parent="UI/ExitButton"] [node name="Button_Outline" type="NinePatchRect" parent="UI/ExitButton"]
margin_right = 120.0 margin_right = 80.0
margin_bottom = 40.0 margin_bottom = 27.0
rect_clip_content = true rect_clip_content = true
texture = ExtResource( 4 ) texture = ExtResource( 4 )
patch_margin_left = 2 patch_margin_left = 2
@ -84,16 +84,6 @@ stream = ExtResource( 5 )
[node name="AudioHovering" type="AudioStreamPlayer" parent="UI/ExitButton"] [node name="AudioHovering" type="AudioStreamPlayer" parent="UI/ExitButton"]
stream = ExtResource( 6 ) stream = ExtResource( 6 )
[node name="Label" type="Label" parent="UI"]
margin_left = 192.0
margin_top = 56.0
margin_right = 300.0
margin_bottom = 125.0
theme = ExtResource( 3 )
text = "Manskage
iLunaiLuna
JustDzhi"
[connection signal="mouse_entered" from="UI/PlayButton" to="." method="_on_PlayButton_mouse_entered"] [connection signal="mouse_entered" from="UI/PlayButton" to="." method="_on_PlayButton_mouse_entered"]
[connection signal="mouse_exited" from="UI/PlayButton" to="." method="_on_PlayButton_mouse_exited"] [connection signal="mouse_exited" from="UI/PlayButton" to="." method="_on_PlayButton_mouse_exited"]
[connection signal="pressed" from="UI/PlayButton" to="." method="game_start"] [connection signal="pressed" from="UI/PlayButton" to="." method="game_start"]

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/main_menu.png-de2bf9e679f8b63409cdc558ee8ea050.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://src/scenes/menu/background/main_menu.png"
dest_files=[ "res://.import/main_menu.png-de2bf9e679f8b63409cdc558ee8ea050.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=false
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
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

View File

@ -19,6 +19,7 @@ var frozen = false
func deal_damage(amount): func deal_damage(amount):
hp -= amount hp -= amount
$AudioDamage.play()
if hp <= 0: if hp <= 0:
death() death()