FORTNTIE
This commit is contained in:
parent
c59f9ef418
commit
4a104a527c
4 changed files with 48 additions and 9 deletions
9
Makefile
9
Makefile
|
@ -21,11 +21,12 @@ CXXFLAGS += -DFIX_BUGS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(WINDOWS), 1)
|
ifeq ($(WINDOWS), 1)
|
||||||
ifeq ($(CONSOLE), 1)
|
CXXFLAGS += -DWINDOWS
|
||||||
|
LIBS += -lkernel32
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONSOLE), 1)
|
||||||
CXXFLAGS += -mconsole
|
CXXFLAGS += -mconsole
|
||||||
endif
|
|
||||||
CXXFLAGS += -DWINDOWS
|
|
||||||
LIBS += -lkernel32
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CXXFLAGS += `sdl2-config --cflags` `pkg-config freetype2 --cflags`
|
CXXFLAGS += `sdl2-config --cflags` `pkg-config freetype2 --cflags`
|
||||||
|
|
|
@ -206,7 +206,7 @@ void PutMapDataVector(int fx, int fy)
|
||||||
|
|
||||||
//Animate the wind
|
//Animate the wind
|
||||||
static int count = 0;
|
static int count = 0;
|
||||||
count++;
|
count += 2;
|
||||||
|
|
||||||
for (int j = put_y; put_y + num_y > j; j++)
|
for (int j = put_y; put_y + num_y > j; j++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -160,10 +160,7 @@ int MiniMapLoop()
|
||||||
}
|
}
|
||||||
|
|
||||||
PutBitmap4(&grcGame, 0, 0, &grcGame, 10);
|
PutBitmap4(&grcGame, 0, 0, &grcGame, 10);
|
||||||
rcView.left = 160 - f * gMap.width / 16;
|
rcView = {(WINDOW_WIDTH / 2) - f * gMap.width / 16, (WINDOW_HEIGHT / 2) - f * gMap.length / 16, (WINDOW_WIDTH / 2) + f * gMap.width / 16, (WINDOW_HEIGHT / 2) + f * gMap.length / 16};
|
||||||
rcView.right = f * gMap.width / 16 + 160;
|
|
||||||
rcView.top = 120 - f * gMap.length / 16;
|
|
||||||
rcView.bottom = f * gMap.length / 16 + 120;
|
|
||||||
PutMapName(true);
|
PutMapName(true);
|
||||||
CortBox(&rcView, 0);
|
CortBox(&rcView, 0);
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include "MyChar.h"
|
#include "MyChar.h"
|
||||||
#include "Fade.h"
|
#include "Fade.h"
|
||||||
#include "Stage.h"
|
#include "Stage.h"
|
||||||
|
#include "Frame.h"
|
||||||
#include "MycParam.h"
|
#include "MycParam.h"
|
||||||
#include "Flags.h"
|
#include "Flags.h"
|
||||||
#include "Profile.h"
|
#include "Profile.h"
|
||||||
|
@ -839,6 +840,33 @@ int TextScriptProc()
|
||||||
else
|
else
|
||||||
gTS.p_read += 13;
|
gTS.p_read += 13;
|
||||||
}
|
}
|
||||||
|
else if (IS_COMMAND('S','S','S'))
|
||||||
|
{
|
||||||
|
x = GetTextScriptNo(gTS.p_read + 4);
|
||||||
|
SetNoise(1, x);
|
||||||
|
gTS.p_read += 8;
|
||||||
|
}
|
||||||
|
else if (IS_COMMAND('C','S','S'))
|
||||||
|
{
|
||||||
|
CutNoise();
|
||||||
|
gTS.p_read += 4;
|
||||||
|
}
|
||||||
|
else if (IS_COMMAND('S','P','S'))
|
||||||
|
{
|
||||||
|
SetNoise(2, x);
|
||||||
|
gTS.p_read += 8;
|
||||||
|
}
|
||||||
|
else if (IS_COMMAND('C','P','S'))
|
||||||
|
{
|
||||||
|
CutNoise();
|
||||||
|
gTS.p_read += 4;
|
||||||
|
}
|
||||||
|
else if (IS_COMMAND('Q','U','A'))
|
||||||
|
{
|
||||||
|
z = GetTextScriptNo(gTS.p_read + 4);
|
||||||
|
SetQuake(z);
|
||||||
|
gTS.p_read += 8;
|
||||||
|
}
|
||||||
else if (IS_COMMAND('F','A','I'))
|
else if (IS_COMMAND('F','A','I'))
|
||||||
{
|
{
|
||||||
z = GetTextScriptNo(gTS.p_read + 4);
|
z = GetTextScriptNo(gTS.p_read + 4);
|
||||||
|
@ -860,6 +888,19 @@ int TextScriptProc()
|
||||||
StartMapName();
|
StartMapName();
|
||||||
gTS.p_read += 4;
|
gTS.p_read += 4;
|
||||||
}
|
}
|
||||||
|
else if (IS_COMMAND('F','O','M'))
|
||||||
|
{
|
||||||
|
z = GetTextScriptNo(gTS.p_read + 4);
|
||||||
|
SetFrameTargetMyChar(z);
|
||||||
|
gTS.p_read += 8;
|
||||||
|
}
|
||||||
|
else if (IS_COMMAND('F','O','N'))
|
||||||
|
{
|
||||||
|
x = GetTextScriptNo(gTS.p_read + 4);
|
||||||
|
y = GetTextScriptNo(gTS.p_read + 9);
|
||||||
|
SetFrameTargetNpChar(x, y);
|
||||||
|
gTS.p_read += 13;
|
||||||
|
}
|
||||||
else if (IS_COMMAND('S','O','U'))
|
else if (IS_COMMAND('S','O','U'))
|
||||||
{
|
{
|
||||||
z = GetTextScriptNo(gTS.p_read + 4);
|
z = GetTextScriptNo(gTS.p_read + 4);
|
||||||
|
|
Loading…
Add table
Reference in a new issue