Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MacOS-9 committed Jul 1, 2023
1 parent d2b9a9b commit 43c210e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
Binary file modified Project1.tds
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Hug the Sealand is a game where you hug Sealandball!\
In this game, your main goal is to hug Sealandball.\
You can also get other characters by eating certain food.\
To increase Sealand's happiness, hug them!\
[Click here](https://github.com/MacOS-9/hug-the-sealand/releases/tag/latest) to download the latest version.
[Click here](https://github.com/MacOS-9/hug-the-sealand/releases/latest) to download the latest version.
6 changes: 6 additions & 0 deletions Unit1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ void __fastcall TForm1::playButtonClick(TObject *Sender)
itemsBox->Clear();
for (int i = 0; i < itemCount; i++)
itemsBox->AddItem("Baguette", NULL);
workButton->Caption = "Work at the park";
workButton->Visible = true;
workButton->Left = 88;
shopButton->Caption = "Go to the shop";
shopButton->Visible = true;
shopButton->Left = 192;
beniuCaught = false;
stonkFishCaught = false;
tryAgainButton->Visible = false;
Expand Down
4 changes: 2 additions & 2 deletions Unit1.dfm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
object Form1: TForm1
Left = 339
Top = 138
Left = 304
Top = 193
BorderIcons = [biSystemMenu, biMinimize]
BorderStyle = bsSingle
Caption = 'hug the sealand v1.1'
Expand Down
Binary file modified Unit1.obj
Binary file not shown.
18 changes: 9 additions & 9 deletions Unit1.~cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ void __fastcall TForm1::playButtonClick(TObject *Sender)
sealand->Top = 320;
stonkFish->Top = 320;
beniu->Top = 320;
sealand->Picture->LoadFromFile(".\\sealand.jpg");
stonkFish->Picture->LoadFromFile(".\\stonkFish.jpg");
beniu->Picture->LoadFromFile(".\\beniu.jpg");
sealand->Picture->LoadFromFile(".\\assets\\sealand.jpg");
stonkFish->Picture->LoadFromFile(".\\assets\\stonkFish.jpg");
beniu->Picture->LoadFromFile(".\\assets\\beniu.jpg");
}
//---------------------------------------------------------------------------
void __fastcall TForm1::gameTimerTimer(TObject *Sender)
Expand Down Expand Up @@ -326,9 +326,9 @@ void __fastcall TForm1::workButtonClick(TObject *Sender)
stonkFish->Left = 224;
beniu->Top = 330;
beniu->Left = 112;
sealand->Picture->LoadFromFile(".\\sealand.jpg");
stonkFish->Picture->LoadFromFile(".\\stonkfish.jpg");
beniu->Picture->LoadFromFile(".\\beniu.jpg");
sealand->Picture->LoadFromFile(".\\assets\\sealand.jpg");
stonkFish->Picture->LoadFromFile(".\\assets\\stonkfish.jpg");
beniu->Picture->LoadFromFile(".\\assets\\beniu.jpg");
} else {
workButton->Caption = "Go back home";
shopButton->Visible = false;
Expand All @@ -354,9 +354,9 @@ void __fastcall TForm1::workButtonClick(TObject *Sender)
stonkFish->Top = 350;
stonkFish->Left = 185;
beniu->Top = 335;
sealand->Picture->LoadFromFile(".\\smallerSealand.jpg");
stonkFish->Picture->LoadFromFile(".\\smallerStonkfish.jpg");
beniu->Picture->LoadFromFile(".\\smallerBeniu.jpg");
sealand->Picture->LoadFromFile(".\\assets\\smallerSealand.jpg");
stonkFish->Picture->LoadFromFile(".\\assets\\smallerStonkfish.jpg");
beniu->Picture->LoadFromFile(".\\assets\\smallerBeniu.jpg");
}
}
//---------------------------------------------------------------------------
Expand Down

0 comments on commit 43c210e

Please sign in to comment.