Skip to content

Commit

Permalink
Merge pull request #133 from open531/dev
Browse files Browse the repository at this point in the history
1.0.1
  • Loading branch information
panxuc authored Apr 13, 2024
2 parents 8bad22f + 0b9a2f9 commit d270d05
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 39 deletions.
3 changes: 3 additions & 0 deletions Assets/Localizations/dialogue.csv
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ E_PYTHON,蟒蛇,蟒蛇,Python,Python
E_SHANLOONG,香龙,香龍,Shanloong,シャン竜
E_SCHRODINGERCAT,薛定谔猫,薛定謝貓,Schrödinger cat,シュレディンガーの猫
E_XIQIN,鱼骨守护者,魚骨守護者,Fishbone guardian,魚骨の守護者
P_CODER,编码术士,編碼術士,Code warlock,コードウォーロック
P_HARDWARE,硬件战士,硬件戰士,Hardware warrior,ハードウェア戦士
P_SIGNAL,信号法师,信號法師,Signal mage,シグナルメイジ
D_1_1,在那个阳光灿烂的下午,整个实验室沐浴在柔和的阳光中,空气中弥漫着轻微的电子元件的香气。你站在实验台前,手中的「万花尺」实验装置运作得如此完美,仿佛是一台精密的机械,每一次波形的生成都显得轻而易举。你自信满满地高举双手,心中充满了对即将到来的赞誉的期待。,在那個陽光燦爛的下午,整個實驗室沐浴在柔和的陽光中,空氣中瀰漫著輕微的電子元件的香氣。你站在實驗台前,手中的「萬花尺」實驗裝置運作得如此完美,仿佛是一台精密的機械,每一次波形的生成都顯得輕而易舉。你自信滿滿地高舉雙手,心中充滿了對即將到來的讚譽的期待。,"On that sunny afternoon, the entire laboratory was bathed in soft sunlight, and the air was filled with the faint aroma of electronic components. You stood in front of the experimental platform, and the ""Flower Ruler"" experimental device in your hand worked so perfectly that it seemed like a precision machine, and every waveform generation seemed effortless. You raised your hands confidently, full of expectation for the praise that was about to come.",その晴れた午後、実験室全体が柔らかい日差しに包まれ、空気中には電子部品のかすかな香りが漂っていた。あなたは実験台の前に立ち、手に持った「万花尺」実験装置が完璧に動作しているように思え、まるで精密機械のようで、毎回の波形生成が軽々しく見えた。あなたは自信を持って両手を高く掲げ、今にも訪れる賞賛に対する期待に満ちていた。
D_1_2,助教步履轻快地走来,他的眼睛紧盯着你的实验结果,眼神中透露出敬佩。他仔细地比对波形图,每一个细节都与预期完美吻合,没有丝毫的偏差。他赞扬你的精确操作,你的心中涌起一股自豪感。随着助教的一笔签名,你的优异成绩就将铭刻在成绩册上,A+ 在向你招手。,助教步履輕快地走來,他的眼睛緊盯著你的實驗結果,眼神中透露出敬佩。他仔細地比對波形圖,每一個細節都與預期完美吻合,沒有絲毫的偏差。他讚揚你的精確操作,你的心中湧起一股自豪感。隨著助教的一筆簽名,你的優異成績就將銘刻在成績冊上,A+ 在向你招手。,"The teaching assistant walked briskly, his eyes fixed on your experimental results, his eyes showing admiration. He carefully compared the waveform, and every detail matched perfectly with the expected results, without any deviation. He praised your precise operation, and you felt a sense of pride. With a stroke of the teaching assistant's pen, your excellent results will be engraved in the grade book, and an A+ is beckoning to you.",助教は軽快な足取りで歩いてきた。彼の目はあなたの実験結果に注がれ、敬意を示していた。彼は波形を注意深く比較し、すべての詳細が予想通りに完璧に一致し、少しも逸脱がなかった。彼はあなたの正確な操作を称賛し、あなたは誇りを感じた。助教のペンの一筆で、あなたの優れた成績が成績簿に刻まれ、A+ があなたを招いている。
D_2_1,正当你兴奋地准备在签名册上留下你的大名时,一声巨响切割了平静的空气,震耳欲聋。你转头一看,只见一团烟雾从一名同学的实验台上升起,电容器在电压的逼迫下爆炸了。冷风突然袭来,一种不详的预感笼罩了你的心头。你感到意识正在迅速地流失,周围的世界开始旋转,最终,一片黑暗将你吞噬。,正當你興奮地準備在簽名冊上留下你的大名時,一聲巨響切割了平靜的空氣,震耳欲聾。你轉頭一看,只見一團煙霧從一名同學的實驗台上升起,電容器在電壓的逼迫下爆炸了。冷風突然襲來,一種不詳的預感籠罩了你的心頭。你感到意識正在迅速地流失,周圍的世界開始旋轉,最終,一片黑暗將你吞噬。,"Just as you were excitedly preparing to leave your name in the grade book, a loud noise cut through the calm air, deafening. You turned around and saw a cloud of smoke rising from a classmate's experimental platform, and the capacitor exploded under the pressure of the voltage. A cold wind suddenly struck, and an ominous premonition shrouded your heart. You felt your consciousness rapidly slipping away, the world around you began to spin, and finally, darkness swallowed you up.",あなたが興奮して成績簿に名前を残そうとしていると、大きな音が静かな空気を切り裂き、耳をつんざくようだった。振り返ると、同級生の実験台から煙が立ち上り、コンデンサが電圧の圧力で爆発した。突然冷たい風が吹き、不吉な予感があなたの心を覆いました。あなたは意識が急速に失われているのを感じ、周囲の世界が回り始め、最終的には暗闇に飲み込まれました。
Expand Down
4 changes: 2 additions & 2 deletions Scenes/Entities/BattleEnemies/binary_tree.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[gd_scene load_steps=9 format=3 uid="uid://8rvgctj32ph7"]
[gd_scene load_steps=9 format=3 uid="uid://dhb0ir7pmtwrh"]

[ext_resource type="PackedScene" uid="uid://die583u8tgrrl" path="res://Scenes/Entities/BattleEnemies/battle_enemy.tscn" id="1_la4l8"]
[ext_resource type="Script" path="res://Scripts/Entities/BattleEnemies/BinaryTree.cs" id="2_2mywo"]
[ext_resource type="Texture2D" uid="uid://vlfjbm04l8tb" path="res://Assets/Textures/binary_tree_idle.png" id="3_7boio"]
[ext_resource type="Texture2D" uid="uid://c13uc50xnbyv2" path="res://Assets/Textures/binary_tree_idle.png" id="3_7boio"]

[sub_resource type="AtlasTexture" id="AtlasTexture_gak30"]
atlas = ExtResource("3_7boio")
Expand Down
1 change: 1 addition & 0 deletions Scenes/UI/card_viewer.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ script = ExtResource("1_ioauv")

[node name="ScrollContainer" type="ScrollContainer" parent="."]
unique_name_in_owner = true
clip_contents = false
offset_left = 4.0
offset_top = 4.0
offset_right = 496.0
Expand Down
46 changes: 11 additions & 35 deletions Scripts/Data/SaveData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ public partial class SaveData : Node
EnergyMax = 4,
Energy = 4,
Agility = 10,
AttackCardNum = 0,
AttackCardNum = 3,
BashCardNum = 0,
DoubleBeatCardNum = 0,
DefendCardNum = 0,
DefendCardNum = 3,
ConsolidateCardNum = 0,
EcsCardNum = 0,
FuryCardNum = 0,
Expand All @@ -39,12 +39,6 @@ public partial class SaveData : Node
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
Expand All @@ -58,16 +52,16 @@ public partial class SaveData : Node
#region Coder
public static Player Coder { get; set; } = new()
{
PlayerName = "The Coder",
PlayerName = "P_CODER",
HealthMax = 70,
Health = 70,
EnergyMax = 4,
Energy = 4,
Agility = 10,
AttackCardNum = 6,
AttackCardNum = 3,
BashCardNum = 0,
DoubleBeatCardNum = 0,
DefendCardNum = 6,
DefendCardNum = 3,
ConsolidateCardNum = 0,
EcsCardNum = 0,
FuryCardNum = 0,
Expand All @@ -85,12 +79,6 @@ public partial class SaveData : Node
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
Expand All @@ -104,16 +92,16 @@ public partial class SaveData : Node
#region Hardware Warrior
public static Player HardwareWarrior { get; set; } = new()
{
PlayerName = "Hardware Warrior",
PlayerName = "P_HARDWARE",
HealthMax = 100,
Health = 100,
EnergyMax = 4,
Energy = 4,
Agility = 10,
AttackCardNum = 6,
AttackCardNum = 3,
BashCardNum = 0,
DoubleBeatCardNum = 0,
DefendCardNum = 6,
DefendCardNum = 3,
ConsolidateCardNum = 0,
EcsCardNum = 0,
FuryCardNum = 0,
Expand All @@ -131,12 +119,6 @@ public partial class SaveData : Node
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
Expand All @@ -150,16 +132,16 @@ public partial class SaveData : Node
#region Signal Master
public static Player SignalMaster { get; set; } = new()
{
PlayerName = "Yang Zhang",
PlayerName = "P_SIGNAL",
HealthMax = 100,
Health = 100,
EnergyMax = 4,
Energy = 4,
Agility = 10,
AttackCardNum = 6,
AttackCardNum = 3,
BashCardNum = 0,
DoubleBeatCardNum = 0,
DefendCardNum = 6,
DefendCardNum = 3,
ConsolidateCardNum = 0,
EcsCardNum = 0,
FuryCardNum = 0,
Expand All @@ -177,12 +159,6 @@ public partial class SaveData : Node
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CAStrike,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
CardData.CDDefend,
Expand Down
1 change: 0 additions & 1 deletion Scripts/Maps/PieceBattle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,6 @@ public void PreCheckGameOver(BattlePiece battlePiece)
CardBattle.ResetCards(SaveData.Coder.BattleCards);
CardBattle.ResetCards(SaveData.HardwareWarrior.BattleCards);
CardBattle.ResetCards(SaveData.SignalMaster.BattleCards);
SaveData.Save();
_sceneSwitcher.PushScene(SceneSwitcher.CardsSelectionScene);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Scripts/UI/CardsSelection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void OnCardSelected(CardInfo cardInfo)
{
SaveData.SignalMaster.BattleCards.DeckCards.Add(card);
}

SaveData.Save();
_sceneSwitcher.PushScene(SceneSwitcher.GameWinScene);
}

Expand Down

0 comments on commit d270d05

Please sign in to comment.