diff options
-rw-r--r-- | res/title3.png | bin | 0 -> 144428 bytes | |||
-rw-r--r-- | res/title3.psd | bin | 0 -> 1266936 bytes | |||
-rw-r--r-- | src/consts.h | 2 | ||||
-rw-r--r-- | src/renderer.cpp | 3 |
4 files changed, 4 insertions, 1 deletions
diff --git a/res/title3.png b/res/title3.png new file mode 100644 index 0000000..b6cd12f --- /dev/null +++ b/res/title3.png | |||
Binary files differ | |||
diff --git a/res/title3.psd b/res/title3.psd new file mode 100644 index 0000000..0cda501 --- /dev/null +++ b/res/title3.psd | |||
Binary files differ | |||
diff --git a/src/consts.h b/src/consts.h index 4c69a58..b3033ea 100644 --- a/src/consts.h +++ b/src/consts.h | |||
@@ -11,7 +11,7 @@ constexpr int ZOOM_Y_FACTOR = 9; | |||
11 | constexpr int CHUNK_WIDTH = 80; | 11 | constexpr int CHUNK_WIDTH = 80; |
12 | constexpr int CHUNK_HEIGHT = 80; | 12 | constexpr int CHUNK_HEIGHT = 80; |
13 | constexpr int RADIUS = 8; | 13 | constexpr int RADIUS = 8; |
14 | constexpr int NUM_TITLES = 1; | 14 | constexpr int NUM_TITLES = 2; |
15 | constexpr int MESSAGE_MARGIN = 64; | 15 | constexpr int MESSAGE_MARGIN = 64; |
16 | constexpr int MESSAGE_TEXT_WIDTH = GAME_WIDTH - MESSAGE_MARGIN * 2; | 16 | constexpr int MESSAGE_TEXT_WIDTH = GAME_WIDTH - MESSAGE_MARGIN * 2; |
17 | constexpr int CHARS_PER_BEEP = 8; | 17 | constexpr int CHARS_PER_BEEP = 8; |
diff --git a/src/renderer.cpp b/src/renderer.cpp index 1aa5cbf..b24ddbf 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp | |||
@@ -114,6 +114,9 @@ Renderer::Renderer() | |||
114 | loadTextureFromFile("../res/title0.png", titles_[0]); | 114 | loadTextureFromFile("../res/title0.png", titles_[0]); |
115 | SDL_QueryTexture(titles_[0].get(), nullptr, nullptr, &titleWidths_[0], &titleHeights_[0]); | 115 | SDL_QueryTexture(titles_[0].get(), nullptr, nullptr, &titleWidths_[0], &titleHeights_[0]); |
116 | 116 | ||
117 | loadTextureFromFile("../res/title3.png", titles_[1]); | ||
118 | SDL_QueryTexture(titles_[1].get(), nullptr, nullptr, &titleWidths_[1], &titleHeights_[1]); | ||
119 | |||
117 | font_ = font_ptr(TTF_OpenFont("../res/softsquare.ttf", 45)); | 120 | font_ = font_ptr(TTF_OpenFont("../res/softsquare.ttf", 45)); |
118 | if (!font_) { | 121 | if (!font_) { |
119 | throw ttf_error(); | 122 | throw ttf_error(); |