1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-27 20:07:40 +00:00

ads-game:: footer/copyright shown

This commit is contained in:
Zeno Rogue
2022-09-29 12:11:50 +02:00
parent 3808d93a11
commit cc1d2c1b48
5 changed files with 29 additions and 1 deletions

View File

@@ -77,6 +77,8 @@ ld smoothstep(ld x) {
return x * x * (3-2*x);
}
string copyright_shown;
void draw_texture(texture_to_use& tu) {
if(!talpha) return;
auto& et = *tu.tx;
@@ -169,10 +171,13 @@ void draw_texture(texture_to_use& tu) {
poly.tinf = &et.tinf;
poly.flags |= POLY_TRIANGLES;
poly.offset_texture = 0;
copyright_shown = et.copyright;
}
void draw_textures() {
pick_textures();
copyright_shown = "";
for(auto& tu: textures_to_use)
if(current.shift > tu.from && current.shift < tu.to)
draw_texture(tu);