diff --git a/Get Hooked/Game/Get Hooked.exe b/Get Hooked/Game/Get Hooked.exe
index 3809fe9..1711fde 100644
Binary files a/Get Hooked/Game/Get Hooked.exe and b/Get Hooked/Game/Get Hooked.exe differ
diff --git a/Get Hooked/Game/config.xml b/Get Hooked/Game/config.xml
index 15c2914..a0b10c2 100644
--- a/Get Hooked/Game/config.xml
+++ b/Get Hooked/Game/config.xml
@@ -89,6 +89,7 @@
+
diff --git a/Get Hooked/Motor2D/j1Scene.cpp b/Get Hooked/Motor2D/j1Scene.cpp
index 1e3af52..80ca916 100644
--- a/Get Hooked/Motor2D/j1Scene.cpp
+++ b/Get Hooked/Motor2D/j1Scene.cpp
@@ -85,6 +85,11 @@ void CloseSettings()
App->scene->settingsWindow->Deactivate();
}
+void OpenWebpage()
+{
+ ShellExecuteA(NULL, "open", "https://scotland-fury.github.io/Hook_Platformer/", NULL , NULL , SW_SHOWNORMAL);
+}
+
// ------------------------------------------------------------------------------
//Constructor
@@ -99,6 +104,7 @@ j1Scene::j1Scene() : j1Module()
shutDown = new SDL_Rect[4];
settings = new SDL_Rect[4];
back = new SDL_Rect[4];
+ webpage = new SDL_Rect[4];
}
// Destructor
@@ -110,6 +116,7 @@ j1Scene::~j1Scene()
RELEASE_ARRAY(shutDown);
RELEASE_ARRAY(settings);
RELEASE_ARRAY(back);
+ RELEASE_ARRAY(webpage);
}
// Called before render is available
@@ -149,6 +156,7 @@ bool j1Scene::Awake(pugi::xml_node& config)
RegisterButtonData(config.child("ui").child("shutDown"), shutDown);
RegisterButtonData(config.child("ui").child("settings"), settings);
RegisterButtonData(config.child("ui").child("back"), back);
+ RegisterButtonData(config.child("ui").child("webpage"), webpage);
item = config.child("ui").child("healthBar");
healthBar = { item.attribute("x").as_int(), item.attribute("y").as_int(), item.attribute("w").as_int(), item.attribute("h").as_int() };
@@ -202,6 +210,7 @@ bool j1Scene::Start()
parent = App->ui->CreateActionBox(&GoToCredits, { 1024 / 4, 315 }, button, NULL, false);
App->ui->CreateText(DEFAULT_POINT, "Credits", DEFAULT_COLOR, gameText, false, parent);
App->ui->CreateActionBox(&CloseGame, { 20, 20 }, shutDown, NULL, false);
+ App->ui->CreateActionBox(&OpenWebpage, { 55, 20 }, webpage, NULL, false);
if (result == NULL) {
loadButton->Disable();
diff --git a/Get Hooked/Motor2D/j1Scene.h b/Get Hooked/Motor2D/j1Scene.h
index 409ee99..5b9bdd9 100644
--- a/Get Hooked/Motor2D/j1Scene.h
+++ b/Get Hooked/Motor2D/j1Scene.h
@@ -114,6 +114,7 @@ class j1Scene : public j1Module //CHANGE/FIX: Remake maps 1 and 2, implement cor
SDL_Rect* shutDown;
SDL_Rect* settings;
SDL_Rect* back;
+ SDL_Rect* webpage;
SDL_Rect healthBar;
SDL_Rect healthChunck;
};