Luna Brovchuk 2023-10-02 20:02:27 +02:00
commit 9ce8c66680
7 changed files with 70 additions and 43 deletions

View File

@ -10,7 +10,8 @@ config_version=4
[application]
config/name="LD54"
config/name="Long Night"
config/description="Game made for Ludum Dare 54 by iLunaiLuna, Manskage and JustDzhi"
run/main_scene="res://src/scenes/menu/Menu.tscn"
boot_splash/show_image=false
boot_splash/bg_color=Color( 0, 0, 0, 1 )

View File

@ -15,5 +15,5 @@ void fragment(){
[resource]
shader = SubResource( 3 )
shader_param/active = true
shader_param/color = Color( 1, 1, 1, 0 )
shader_param/active = false
shader_param/color = Color( 1, 1, 1, 1 )

View File

@ -11,5 +11,5 @@ dest_files=[ "res://.import/damaged.ogg-ef3864fff26832b4277374ecefd47594.oggstr"
[params]
loop=true
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]
[sub_resource type="DynamicFont" id=1]
size = 8
font_data = ExtResource( 1 )
[resource]

View File

@ -1,11 +1,11 @@
[gd_scene load_steps=33 format=2]
[gd_scene load_steps=27 format=2]
[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/spell_holder.gd" type="Script" id=3]
[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/scenes/game/sprites/health/health.png" type="Texture" id=6]
[ext_resource path="res://src/scenes/game/sprites/health/health_spriteframes.tres" type="SpriteFrames" id=6]
[ext_resource path="res://src/scenes/game/sprites/cast_time.png" type="Texture" id=7]
[ext_resource path="res://src/scenes/game/card_placeholder.gd" type="Script" id=8]
[ext_resource path="res://res/sounds/card_select/card_select.ogg" type="AudioStream" id=9]
@ -21,6 +21,7 @@
[ext_resource path="res://src/scenes/game/sprites/stun/stun_placeholder_spriteframes.tres" type="SpriteFrames" id=19]
[ext_resource path="res://src/scenes/game/camera.gd" type="Script" id=20]
[ext_resource path="res://src/scenes/game/sprites/shake_border.png" type="Texture" id=21]
[ext_resource path="res://src/scenes/game/sprites/damage.png" type="Texture" id=22]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 10, 60 )
@ -28,38 +29,6 @@ extents = Vector2( 10, 60 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 140, 10.125 )
[sub_resource type="AtlasTexture" id=7]
atlas = ExtResource( 6 )
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]
atlas = ExtResource( 6 )
region = Rect2( 93, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=10]
atlas = ExtResource( 6 )
region = Rect2( 62, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=11]
atlas = ExtResource( 6 )
region = Rect2( 31, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=12]
atlas = ExtResource( 6 )
region = Rect2( 0, 0, 31, 11 )
[sub_resource type="SpriteFrames" id=4]
animations = [ {
"frames": [ SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[sub_resource type="Animation" id=5]
length = 0.001
tracks/0/type = "value"
@ -228,7 +197,8 @@ margin_bottom = 40.0
[node name="HealthSprite" type="AnimatedSprite" parent="UIWrapper/UI/Left/Health"]
position = Vector2( 52, 156 )
frames = SubResource( 4 )
frames = ExtResource( 6 )
animation = "idle"
centered = false
[node name="PlayerIcon" type="Sprite" parent="UIWrapper/UI/Left"]
@ -276,19 +246,40 @@ margin_right = 40.0
margin_bottom = 40.0
[node name="CastTime" type="Control" parent="UIWrapper/UI/Right"]
margin_top = 4.0
margin_right = 40.0
margin_bottom = 40.0
margin_bottom = 44.0
[node name="CastTime" type="Sprite" parent="UIWrapper/UI/Right/CastTime"]
position = Vector2( 256, 140 )
texture = ExtResource( 7 )
[node name="CastTimeLabel" type="Label" parent="UIWrapper/UI/Right/CastTime"]
modulate = Color( 1, 0.870588, 0, 1 )
margin_left = 266.0
margin_top = 133.0
margin_right = 306.0
margin_bottom = 147.0
theme = ExtResource( 4 )
text = "0.8"
[node name="Damage" type="Control" parent="UIWrapper/UI/Right"]
margin_top = 1.0
margin_right = 40.0
margin_bottom = 40.0
margin_bottom = 41.0
[node name="Damage" type="Sprite" parent="UIWrapper/UI/Right/Damage"]
position = Vector2( 256, 160 )
texture = ExtResource( 22 )
[node name="DamageLabel" type="Label" parent="UIWrapper/UI/Right/Damage"]
modulate = Color( 1, 0.870588, 0, 1 )
margin_left = 266.0
margin_top = 153.0
margin_right = 306.0
margin_bottom = 167.0
theme = ExtResource( 4 )
text = "15"
[node name="Cards" type="Control" parent="UIWrapper/UI"]
visible = false

View File

@ -14,7 +14,6 @@ func add_modifier(spell_name, selected_modifier):
modifiers.append(spell_name)
var spell_icon = icon_preload.instance()
spell_icon.frame = selected_modifier
self.add_child(spell_icon)
spell_icon.global_position.x += 7 + (modifiers.size() - 1) * (14 + 2)
spell_icon.global_position.y += 7
self.add_child(spell_icon)

View File

@ -0,0 +1,35 @@
[gd_resource type="SpriteFrames" load_steps=8 format=2]
[ext_resource path="res://src/scenes/game/sprites/health/health.png" type="Texture" id=1]
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 1 )
region = Rect2( 155, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 1 )
region = Rect2( 93, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 1 )
region = Rect2( 124, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 62, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 31, 0, 31, 11 )
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 31, 11 )
[resource]
animations = [ {
"frames": [ SubResource( 6 ), SubResource( 4 ), SubResource( 5 ), SubResource( 3 ), SubResource( 2 ), SubResource( 1 ) ],
"loop": false,
"name": "idle",
"speed": 0.0
} ]