Skip to content

Commit 74506ee

Browse files
committed
Added some relic art
Tweaked wip relics and map for better functionality to get a feel for
1 parent 1f69fef commit 74506ee

12 files changed

Lines changed: 93 additions & 14 deletions

File tree

703 Bytes
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://csjx2hb4tdlw8"
6+
path="res://.godot/imported/relic_Breakfast.png-c1b968058adbb855fcf957a2aec74dc2.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://Classes/Relics/assets/relic_Breakfast.png"
14+
dest_files=["res://.godot/imported/relic_Breakfast.png-c1b968058adbb855fcf957a2aec74dc2.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1
447 Bytes
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://dg4tnp7plxmp7"
6+
path="res://.godot/imported/relic_GoodVibes.png-cd102b29bb163411bb7ce8cf724ef0c0.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://Classes/Relics/assets/relic_GoodVibes.png"
14+
dest_files=["res://.godot/imported/relic_GoodVibes.png-cd102b29bb163411bb7ce8cf724ef0c0.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

Globals/FunkEngineNameSpace.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public enum BattleEffectTrigger
1515
NotePlaced,
1616
NoteHit,
1717
SelfNoteHit,
18+
OnPickup,
1819
}
1920

2021
public enum Timing

Globals/Scribe.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,25 @@ public partial class Scribe : Node
5151
{
5252
new RelicTemplate(
5353
"Breakfast", //Reference ha ha, Item to give when relic pool is empty.
54-
"Breakfast, currently does nothing :).", //TODO: Description can include the relics values?
55-
GD.Load<Texture2D>("res://scenes/BattleDirector/assets/Character1.png"),
54+
"Increases max hp.", //TODO: Description can include the relics values?
55+
GD.Load<Texture2D>("res://Classes/Relics/assets/relic_Breakfast.png"),
5656
new RelicEffect[]
5757
{
5858
new RelicEffect(
59-
BattleEffectTrigger.NotePlaced,
60-
0,
59+
BattleEffectTrigger.OnPickup,
60+
10,
6161
(director, val) =>
6262
{
63-
director.Player.Heal(val);
63+
StageProducer.PlayerStats.MaxHealth += val;
64+
StageProducer.PlayerStats.CurrentHealth += val;
6465
}
6566
),
6667
}
6768
),
6869
new RelicTemplate(
6970
"Good Vibes",
7071
"Good vibes, heals the player whenever they place a note.", //TODO: Description can include the relics values?
71-
GD.Load<Texture2D>("res://scenes/BattleDirector/assets/Character1.png"),
72+
GD.Load<Texture2D>("res://Classes/Relics/assets/relic_GoodVibes.png"),
7273
new RelicEffect[]
7374
{
7475
new RelicEffect(

Globals/StageProducer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public partial class StageProducer : Node
1515
private Stages _curStage = Stages.Title;
1616
private Node _curScene;
1717
public static MapGrid.Room CurRoom { get; private set; }
18-
public static Vector2I MapSize { get; private set; } = new Vector2I(3, 2); //For now, make width an odd number
18+
public static Vector2I MapSize { get; private set; } = new Vector2I(7, 6); //For now, make width an odd number
1919

2020
public static MapGrid Map { get; } = new MapGrid();
2121

@@ -133,7 +133,7 @@ private void AddBossRoom(int width, int height)
133133

134134
public void StartGame()
135135
{
136-
Map.InitMapGrid(MapSize.X, MapSize.Y, 1);
136+
Map.InitMapGrid(MapSize.X, MapSize.Y, 3);
137137
_seed = GlobalRng.Seed;
138138
_lastRngState = GlobalRng.State;
139139
PlayerStats = new PlayerStats();

scenes/BattleDirector/scripts/BattleDirector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public override void _UnhandledInput(InputEvent @event)
138138
{
139139
if (eventKey.Keycode == Key.Key0)
140140
{
141-
DebugKillEnemy();
141+
//DebugKillEnemy();
142142
}
143143
}
144144

scenes/Maps/scripts/Cartographer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public override void _Ready()
1212

1313
private Vector2 GetPosition(int x, int y)
1414
{
15-
return new Vector2((float)x * 640 / StageProducer.MapSize.X - 1 + 64, y * 64 + 16);
15+
return new Vector2((float)x * 640 / StageProducer.MapSize.X - 1 + 64, y * 48 + 16);
1616
}
1717

1818
private void DrawMap()

scenes/Puppets/scripts/PlayerStats.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Linq;
3+
using FunkEngine;
34
using Godot;
45

56
public partial class PlayerStats : Resource
@@ -18,10 +19,12 @@ public partial class PlayerStats : Resource
1819

1920
public void AddRelic(RelicTemplate relic)
2021
{
21-
if (CurRelics.Any(r => r.Name == relic.Name))
22+
foreach (RelicEffect effect in relic.Effects)
2223
{
23-
GD.PrintErr("Relic already in inventory: " + relic.Name);
24-
return;
24+
if (effect.GetTrigger() == BattleEffectTrigger.OnPickup)
25+
{
26+
effect.OnTrigger(null);
27+
}
2528
}
2629
CurRelics = CurRelics.Append(relic).ToArray();
2730
GD.Print("Adding relic: " + relic.Name);

0 commit comments

Comments
 (0)