Skip to content

Commit

Permalink
icon madewith added in code
Browse files Browse the repository at this point in the history
  • Loading branch information
OriolCS2 committed Dec 29, 2019
1 parent 299165e commit 9b5c3bb
Show file tree
Hide file tree
Showing 7 changed files with 318 additions and 306 deletions.
13 changes: 12 additions & 1 deletion Alien Engine/Alien Engine/Globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ __declspec(dllexport) void log(const char file[], int line, const char* format,


// DISCOMMENT TO START THE ENGINE IN PLAY MODE
//#define GAME_VERSION
#define GAME_VERSION

#define RELEASE( x )\
{\
Expand Down Expand Up @@ -51,7 +51,18 @@ enum update_status
// Configuration -----------
#define SCREEN_SIZE 1
#define VSYNC true

#ifndef GAME_VERSION
#define WINDOW_ICON_WIDTH 457
#define WINDOW_ICON_HEIGHT 300
#define WINDOW_ICON_PATH "Configuration/Engine Icons/Logo_Name.bmp"
#define WINDOW_ICON_BAR_POSY 280
#else
#define WINDOW_ICON_WIDTH 457
#define WINDOW_ICON_HEIGHT 350
#define WINDOW_ICON_PATH "Configuration/Engine Icons/Logo_Name_madewith.bmp"
#define WINDOW_ICON_BAR_POSY 330
#endif

#define BAR_BEGIN_POS 6
#define BAR_END_POS WINDOW_ICON_WIDTH - BAR_BEGIN_POS
5 changes: 3 additions & 2 deletions Alien Engine/Alien Engine/ModuleWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ bool ModuleWindow::Init()
}
else
{

renderer = SDL_CreateRenderer(window, -1, 0);
screen_surface = SDL_LoadBMP("Configuration/Engine Icons/Logo_Name.bmp");
screen_surface = SDL_LoadBMP(WINDOW_ICON_PATH);
texture = SDL_CreateTextureFromSurface(renderer, screen_surface);
SDL_RenderCopy(renderer, texture, NULL, NULL);

Expand Down Expand Up @@ -187,7 +188,7 @@ void ModuleWindow::IncreaseBar()
{
SDL_Rect r;
r.x = BAR_BEGIN_POS + segment_width * current_division;
r.y = 280;
r.y = WINDOW_ICON_BAR_POSY;
r.w = segment_width;
r.h = 15;
++current_division;
Expand Down
Binary file modified Alien Engine/CoreData/Alien Engine.lnk
Binary file not shown.
Loading

0 comments on commit 9b5c3bb

Please sign in to comment.