changed the scuttle spell bg

This commit is contained in:
laochailan 2017-03-11 19:42:50 +01:00
parent 9c15081ec3
commit 55c56e9bd6
4 changed files with 14 additions and 12 deletions

View file

@ -28,5 +28,8 @@ public domain or CC0 and were not taken by us. Here are some honorary mentions.
* The mountains in the main menu background are by Luca Zanon.
https://unsplash.com/photos/X0OoHrPvgXE
* the insect wings in Scuttles background are by GLady.
https://pixabay.com/en/morpho-peleides-butterfly-43483/
* For the old ones, sadly I didnt keep a list. You may find them by doing an
image search. Check out the taisei-rawmedia repository for the raw files.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 184 KiB

BIN
gfx/stage3/spellbg2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 955 KiB

View file

@ -409,12 +409,9 @@ void stage3_mid_spellbg(Boss *h, int time) {
a += (time / (float)ATTACK_START_DELAY);
float s = 0.3 + 0.7 * a;
glColor4f(b*0.7, b*0.7, b*0.7, a);
//int t = abs(time);
fill_screen(-time/50.0 + 0.5, time/100.0+0.5, s, "stage3/spellbg1");
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
/*
float ff = max(0, min(1, time * 0.01)) * 0.7;
glColor4f(ff, ff, ff, ff);
@ -423,17 +420,19 @@ void stage3_mid_spellbg(Boss *h, int time) {
fill_screen(sin(t / (10.0 + i * 0.5)) * 0.01, cos(t / (11.0 + i * 0.3)) * 0.01, s, "stage3/spellbg2");
glColor4f(b*0.7, b*0.7, b*0.7, a);
*/
fill_screen(time/50.0 + 0.5, time/90.0+0.5, s, "stage3/spellbg1");
fill_screen(-time/55.0 + 0.5, -time/100.0+0.5, s, "stage3/spellbg1");
fill_screen(time/55.0 + 0.5, -time/90.0+0.5, s, "stage3/spellbg1");
/*
glColor4f(0.7, 0, 0, a * 0.7);
fill_screen(time/99.0 + 0.5, -time/30.0+0.5, s*0.5, "stage3/spellbg1");
fill_screen(time/37.0 + 0.5, -time/53.0+0.5, s*0.5, "stage3/spellbg1");
*/
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glColor4f(.1, .1, .1, a);
draw_texture(VIEWPORT_W/2, VIEWPORT_H/2, "stage3/spellbg2");
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
fill_screen(-time/200.0 + 0.5, time/400.0+0.5, s, "stage3/spellbg1");
glColor4f(1, 1, 1, 0.1);
fill_screen(time/300.0 + 0.5, -time/340.0+0.5, s*0.5, "stage3/spellbg1");
fill_screen(time/220.0 + 0.5, -time/400.0+0.5, s*0.5, "stage3/spellbg1");
glColor4f(1, 1, 1, 1);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
}
void stage3_boss_spellbg(Boss *b, int time) {