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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user