Beginning of "development limbo" phase, I guess.

This commit is contained in:
Mari the Deer 2025-11-29 11:01:35 +01:00
commit 515af97ca7
23 changed files with 61 additions and 573 deletions

View file

@ -78,17 +78,17 @@ Class SWWMBrutalHandler : StaticEventHandler
eztex[5] = TexMan.CheckForTexture("graphics/BDScreen/BDBubble2.png");
eztex[6] = TexMan.CheckForTexture("graphics/BDScreen/BDBubble3.png");
for ( int i=0; i<6; i++ ) ezstate[i] = false;
for ( int i=0; i<4; i++ ) ezslide[i] = 2800.;
for ( int i=0; i<4; i++ ) ezslide[i] = 1400.;
eztext[0] = "Eeeeeh?\nReally\nnow\n!?";
eztext[1] = "\c[BDRed]Brutal\nDoom\c-?\n\nThat's\ncringe";
eztext[2] = "Only a\ncomplete\nfool\nwould try\nto load\n\c[BDRed]Brutal Doom\c-\nwith\nother game-\nplay mods,\nright?";
eztext[3] = "Ha\nha\nha\nha";
eztext[4] = "Ki\nhi\nhi\nhi";
eztextpos[0] = (2500.,100.);
eztextpos[1] = (1620.,1580.);
eztextpos[2] = (80.,140.);
eztextpos[3] = (100.,1660.);
eztextpos[4] = (300.,1660.);
eztextpos[0] = (1250.,50.);
eztextpos[1] = (810.,790.);
eztextpos[2] = (40.,70.);
eztextpos[3] = (50.,830.);
eztextpos[4] = (150.,830.);
ezcolor[0] = Font.FindFontColor('BDSayaRed');
ezcolor[1] = Font.FindFontColor('BDSayaRed');
ezcolor[2] = Font.FindFontColor('BDDemoGreen');
@ -97,7 +97,7 @@ Class SWWMBrutalHandler : StaticEventHandler
fnt = Font.GetFont('TewiFontOutline');
for ( int i=0; i<5; i++ )
{
ezlines[i] = fnt.BreakLines(eztext[i],1000);
ezlines[i] = fnt.BreakLines(eztext[i],500);
ezlinesw[i] = 0.;
for ( int j=0; j<ezlines[i].Count(); j++ )
ezlinesw[i] = max(ezlinesw[i],ezlines[i].StringWidth(j));
@ -154,28 +154,28 @@ Class SWWMBrutalHandler : StaticEventHandler
if ( !detected ) return;
Screen.Dim(0xFF000000,clamp((timer+e.fractic)/50.,0.,.5),0,0,Screen.GetWidth(),Screen.GetHeight());
if ( timer < 50 ) return;
double hs = max(min(floor(Screen.GetWidth()/640.),floor(Screen.GetHeight()/360.)),1.)/6.;
Vector2 pos = ((Screen.GetWidth()-(2800.*hs))/2.,(Screen.GetHeight()-(2100.*hs))/2.);
double hs = max(min(floor(Screen.GetWidth()/640.),floor(Screen.GetHeight()/360.)),1.)/3.;
Vector2 pos = ((Screen.GetWidth()-(1400.*hs))/2.,(Screen.GetHeight()-(1050.*hs))/2.);
if ( timer > 300 )
{
double fact = clamp(((timer+e.fractic)-300.)/100.,0.,1.);
Screen.Dim(0xFFFF0000,fact,0,0,Screen.GetWidth(),Screen.GetHeight(),STYLE_Add);
SetUIRandom(MSTime()/10);
pos.x += RandomShiver()*128.*hs*fact*fact;
pos.y += RandomShiver()*128.*hs*fact*fact;
pos.x += RandomShiver()*64.*hs*fact*fact;
pos.y += RandomShiver()*64.*hs*fact*fact;
}
Screen.SetClipRect(int(pos.x),int(pos.y),int(2800.*hs),int(2100.*hs));
Screen.Dim(0xFFFFFFFF,1.,int(pos.x),int(pos.y),int(2800.*hs),int(2100.*hs));
Screen.SetClipRect(int(pos.x),int(pos.y),int(1400.*hs),int(1050.*hs));
Screen.Dim(0xFFFFFFFF,1.,int(pos.x),int(pos.y),int(1400.*hs),int(1050.*hs));
SetUIRandom(MSTime()/40);
for ( int i=0; i<6; i++ )
{
double ypos = RandomOffset()*2100.*hs;
Screen.DrawThickLine(pos.x,pos.y+ypos,pos.x+2800.*hs,pos.y+ypos,8.*hs,0xFF000000);
double ypos = RandomOffset()*1050.*hs;
Screen.DrawThickLine(pos.x,pos.y+ypos,pos.x+1400.*hs,pos.y+ypos,4.*hs,0xFF000000);
}
for ( int i=0; i<12; i++ )
{
double ypos = RandomOffset()*2100.*hs;
Screen.DrawThickLine(pos.x,pos.y+ypos,pos.x+2800.*hs,pos.y+ypos,2.*hs,0xFF000000);
double ypos = RandomOffset()*1050.*hs;
Screen.DrawThickLine(pos.x,pos.y+ypos,pos.x+1400.*hs,pos.y+ypos,hs,0xFF000000);
}
if ( ezstate[1] )
Screen.DrawTexture(eztex[2],false,pos.x+SWWMUtility.Lerp(ezslide[3],ezslide[2],e.fractic),pos.y,DTA_ScaleX,hs,DTA_ScaleY,hs);
@ -187,9 +187,9 @@ Class SWWMBrutalHandler : StaticEventHandler
if ( i<4 ) Screen.DrawTexture(eztex[3+i],false,pos.x,pos.y,DTA_ScaleX,hs,DTA_ScaleY,hs);
for ( int j=0; j<ezlines[i].Count(); j++ )
{
double xofs = (ezlinesw[i]-ezlines[i].StringWidth(j))*3.*hs;
double yofs = (fnt.GetHeight()+2)*j*6.*hs;
Screen.DrawText(fnt,ezcolor[i],pos.x+eztextpos[i].x*hs+xofs,pos.y+eztextpos[i].y*hs+yofs,ezlines[i].StringAt(j),DTA_ScaleX,hs*6.,DTA_ScaleY,hs*6.);
double xofs = (ezlinesw[i]-ezlines[i].StringWidth(j))*1.5*hs;
double yofs = (fnt.GetHeight()+2)*j*3.*hs;
Screen.DrawText(fnt,ezcolor[i],pos.x+eztextpos[i].x*hs+xofs,pos.y+eztextpos[i].y*hs+yofs,ezlines[i].StringAt(j),DTA_ScaleX,hs*3.,DTA_ScaleY,hs*3.);
}
}
Screen.ClearClipRect();