credit
This commit is contained in:
parent
57f4729ba2
commit
28fed460ef
4 changed files with 28 additions and 6 deletions
Binary file not shown.
|
@ -40,14 +40,14 @@ void PutStripper()
|
|||
{
|
||||
//Draw text
|
||||
RECT rc = {0, 16 * s, 320, 16 * s + 16};
|
||||
PutBitmap3(&grcFull, Strip[s].x / 0x200, Strip[s].y / 0x200, &rc, SURFACE_ID_CREDIT_CAST);
|
||||
PutBitmap3(&grcFull, (Strip[s].x + ((WINDOW_WIDTH - 320) << 8)) / 0x200, Strip[s].y / 0x200, &rc, SURFACE_ID_CREDIT_CAST);
|
||||
|
||||
//Draw character
|
||||
rc.left = 24 * (Strip[s].cast % 13);
|
||||
rc.right = rc.left + 24;
|
||||
rc.top = 24 * (Strip[s].cast / 13);
|
||||
rc.bottom = rc.top + 24;
|
||||
PutBitmap3(&grcFull, Strip[s].x / 0x200 - 24, Strip[s].y / 0x200 - 8, &rc, SURFACE_ID_CASTS);
|
||||
PutBitmap3(&grcFull, (Strip[s].x + ((WINDOW_WIDTH - 320) << 8)) / 0x200 - 24, Strip[s].y / 0x200 - 8, &rc, SURFACE_ID_CASTS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -116,7 +116,8 @@ void ActionIllust()
|
|||
void PutIllust()
|
||||
{
|
||||
RECT rcIllust = {0, 0, 160, 240};
|
||||
PutBitmap3(&grcFull, Illust.x / 0x200, 0, &rcIllust, SURFACE_ID_CREDITS_IMAGE);
|
||||
RECT rcClip = {(WINDOW_WIDTH - 320) / 2, 0, WINDOW_WIDTH, WINDOW_HEIGHT};
|
||||
PutBitmap3(&rcClip, (Illust.x + ((WINDOW_WIDTH - 320) << 8)) / 0x200, (WINDOW_HEIGHT - 240) / 2, &rcIllust, SURFACE_ID_CREDITS_IMAGE);
|
||||
}
|
||||
|
||||
//Load illustration
|
||||
|
@ -183,7 +184,10 @@ bool StartCreditScript()
|
|||
Illust.act_no = 0;
|
||||
|
||||
//Modify cliprect
|
||||
grcGame.left = 160;
|
||||
grcGame.left = WINDOW_WIDTH / 2;
|
||||
grcGame.right = ((WINDOW_WIDTH - 320) / 2) + 320;
|
||||
grcGame.top = (WINDOW_HEIGHT - 240) / 2;
|
||||
grcGame.bottom = ((WINDOW_HEIGHT - 240) / 2) + 240;
|
||||
|
||||
//Reload casts
|
||||
if (!ReloadBitmap_File("casts", SURFACE_ID_CASTS))
|
||||
|
|
|
@ -114,7 +114,7 @@ int ModeOpening()
|
|||
SetFadeMask();
|
||||
|
||||
//Reset cliprect and flags
|
||||
grcGame.left = 0;
|
||||
grcGame = {0, 0, WINDOW_WIDTH, WINDOW_HEIGHT};
|
||||
g_GameFlags = 3;
|
||||
|
||||
CutNoise();
|
||||
|
@ -290,7 +290,7 @@ int ModeTitle()
|
|||
}
|
||||
|
||||
//Reset cliprect, flags, and give the player the nikumaru counter
|
||||
grcGame.left = 0;
|
||||
grcGame = {0, 0, WINDOW_WIDTH, WINDOW_HEIGHT};
|
||||
g_GameFlags = 0;
|
||||
gMC.equip |= 0x100;
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "Frame.h"
|
||||
#include "MycParam.h"
|
||||
#include "Flags.h"
|
||||
#include "Ending.h"
|
||||
#include "Profile.h"
|
||||
#include "Map.h"
|
||||
#include "MiniMap.h"
|
||||
|
@ -1204,6 +1205,23 @@ int TextScriptProc()
|
|||
SetNumberTextScript(z);
|
||||
gTS.p_read += 8;
|
||||
}
|
||||
else if (IS_COMMAND('C','R','E'))
|
||||
{
|
||||
g_GameFlags |= 8;
|
||||
StartCreditScript();
|
||||
gTS.p_read += 4;
|
||||
}
|
||||
else if (IS_COMMAND('S','I','L'))
|
||||
{
|
||||
z = GetTextScriptNo(gTS.p_read + 4);
|
||||
SetCreditIllust(z);
|
||||
gTS.p_read += 8;
|
||||
}
|
||||
else if (IS_COMMAND('C','I','L'))
|
||||
{
|
||||
CutCreditIllust();
|
||||
gTS.p_read += 4;
|
||||
}
|
||||
else if (IS_COMMAND('E','S','C'))
|
||||
{
|
||||
return 2;
|
||||
|
|
Loading…
Add table
Reference in a new issue