summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-20 08:42:46 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-20 08:42:46 -0400
commit915226cba15a78767647ae37868881a47dd47c10 (patch)
treebed560fc11a600a0360083519b97919989eb4b46 /src
parent514b240348a7c401fa6725ae74540d5f3ee29cfb (diff)
downloadether-915226cba15a78767647ae37868881a47dd47c10.tar.gz
ether-915226cba15a78767647ae37868881a47dd47c10.tar.bz2
ether-915226cba15a78767647ae37868881a47dd47c10.zip
added credits title card
Diffstat (limited to 'src')
-rw-r--r--src/consts.h2
-rw-r--r--src/renderer.cpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/consts.h b/src/consts.h index b3033ea..feadb46 100644 --- a/src/consts.h +++ b/src/consts.h
@@ -11,7 +11,7 @@ constexpr int ZOOM_Y_FACTOR = 9;
11constexpr int CHUNK_WIDTH = 80; 11constexpr int CHUNK_WIDTH = 80;
12constexpr int CHUNK_HEIGHT = 80; 12constexpr int CHUNK_HEIGHT = 80;
13constexpr int RADIUS = 8; 13constexpr int RADIUS = 8;
14constexpr int NUM_TITLES = 2; 14constexpr int NUM_TITLES = 3;
15constexpr int MESSAGE_MARGIN = 64; 15constexpr int MESSAGE_MARGIN = 64;
16constexpr int MESSAGE_TEXT_WIDTH = GAME_WIDTH - MESSAGE_MARGIN * 2; 16constexpr int MESSAGE_TEXT_WIDTH = GAME_WIDTH - MESSAGE_MARGIN * 2;
17constexpr int CHARS_PER_BEEP = 8; 17constexpr int CHARS_PER_BEEP = 8;
diff --git a/src/renderer.cpp b/src/renderer.cpp index b6a9b4a..724e297 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp
@@ -114,9 +114,12 @@ 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]); 117 loadTextureFromFile("../res/title1.png", titles_[1]);
118 SDL_QueryTexture(titles_[1].get(), nullptr, nullptr, &titleWidths_[1], &titleHeights_[1]); 118 SDL_QueryTexture(titles_[1].get(), nullptr, nullptr, &titleWidths_[1], &titleHeights_[1]);
119 119
120 loadTextureFromFile("../res/title3.png", titles_[2]);
121 SDL_QueryTexture(titles_[2].get(), nullptr, nullptr, &titleWidths_[2], &titleHeights_[2]);
122
120 font_ = font_ptr(TTF_OpenFont("../res/softsquare.ttf", 45)); 123 font_ = font_ptr(TTF_OpenFont("../res/softsquare.ttf", 45));
121 if (!font_) { 124 if (!font_) {
122 throw ttf_error(); 125 throw ttf_error();