This commit is contained in:
Charles 2001-05-29 15:29:56 +00:00
parent 7ed15bcf97
commit 4c1f906c80
9 changed files with 65 additions and 4 deletions

View file

@ -126,7 +126,8 @@ platform_src := platform \
pfishhk3 \ pfishhk3 \
prbridge \ prbridge \
pbaloon \ pbaloon \
ptrpdoor ptrpdoor \
pconveyr
hazard_src := hazard \ hazard_src := hazard \
hfalling \ hfalling \

View file

@ -60,7 +60,7 @@ void CNpcFallingNoRespawnPlatform::processMovement( int _frames )
if ( groundHeight < moveY ) if ( groundHeight < moveY )
{ {
if ( ( CGameScene::getCollision()->getCollisionBlock( Pos.vx, Pos.vy + groundHeight + 8 ) & COLLISION_TYPE_MASK ) != (7<<COLLISION_TYPE_FLAG_SHIFT) ) if ( ( CGameScene::getCollision()->getCollisionBlock( Pos.vx, Pos.vy + groundHeight + 8 ) & COLLISION_TYPE_MASK ) != COLLISION_TYPE_FLAG_DEATH )
{ {
moveY = groundHeight; moveY = groundHeight;
moveX = 2 * _frames; moveX = 2 * _frames;

View file

@ -1,6 +1,6 @@
/*========================================================================= /*=========================================================================
pfgen.h pfgen.cpp
Author: CRB Author: CRB
Created: Created:

View file

@ -407,6 +407,30 @@ CNpcPlatform::NPC_PLATFORM_DATA CNpcPlatform::m_data[NPC_PLATFORM_TYPE_MAX] =
NPC_PLATFORM_TIMER_NONE, NPC_PLATFORM_TIMER_NONE,
}, },
{ // NPC_CONVEYOR_GENERATOR
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
10,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_CONVEYOR_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_PLAYER_BUBBLE_PLATFORM { // NPC_PLAYER_BUBBLE_PLATFORM
3, 3,
128, 128,
@ -464,6 +488,8 @@ CNpcPlatform::NPC_PLATFORM_UNIT_TYPE CNpcPlatform::mapEditConvertTable[NPC_PLATF
NPC_RISING_BRIDGE_PLATFORM, NPC_RISING_BRIDGE_PLATFORM,
NPC_BALLOON_BRIDGE_PLATFORM, NPC_BALLOON_BRIDGE_PLATFORM,
NPC_TRAPDOOR_PLATFORM, NPC_TRAPDOOR_PLATFORM,
NPC_CONVEYOR_GENERATOR,
NPC_CONVEYOR_PLATFORM,
NPC_PLAYER_BUBBLE_PLATFORM, NPC_PLAYER_BUBBLE_PLATFORM,
NPC_CLAM_PLATFORM, NPC_CLAM_PLATFORM,
}; };

View file

@ -163,6 +163,14 @@
#include "platform\ptrpdoor.h" #include "platform\ptrpdoor.h"
#endif #endif
#ifndef __PLATFORM_PCONVEYR_H__
#include "platform\pconveyr.h"
#endif
#ifndef __PLATFORM_PFALLNOR_H__
#include "platform\pfallnor.h"
#endif
#include "fx\fx.h" #include "fx\fx.h"
#include "fx\fxjfish.h" #include "fx\fxjfish.h"
@ -229,7 +237,7 @@ CNpcPlatform *CNpcPlatform::Create(int Type)
case NPC_CRATE_PLATFORM: case NPC_CRATE_PLATFORM:
case NPC_FALLING_PLATFORM: case NPC_FALLING_PLATFORM:
{ {
platform = new ("falling platform") CNpcFallingPlatform; platform = new ("falling platform") CNpcFallingNoRespawnPlatform;
break; break;
} }
@ -365,6 +373,18 @@ CNpcPlatform *CNpcPlatform::Create(int Type)
break; break;
} }
case NPC_CONVEYOR_GENERATOR:
{
platform = new ("conveyor generator") CNpcConveyorPlatformGenerator;
break;
}
case NPC_CONVEYOR_PLATFORM:
{
platform = new ("conveyor platform") CNpcConveyorPlatform;
break;
}
default: default:
{ {
ASSERT( 0 ); ASSERT( 0 );

View file

@ -84,6 +84,8 @@ public:
NPC_RISING_BRIDGE_PLATFORM, NPC_RISING_BRIDGE_PLATFORM,
NPC_BALLOON_BRIDGE_PLATFORM, NPC_BALLOON_BRIDGE_PLATFORM,
NPC_TRAPDOOR_PLATFORM, NPC_TRAPDOOR_PLATFORM,
NPC_CONVEYOR_GENERATOR,
NPC_CONVEYOR_PLATFORM,
NPC_PLAYER_BUBBLE_PLATFORM, NPC_PLAYER_BUBBLE_PLATFORM,
NPC_CLAM_PLATFORM, NPC_CLAM_PLATFORM,
NPC_PLATFORM_TYPE_MAX, NPC_PLATFORM_TYPE_MAX,

View file

@ -115,6 +115,7 @@ BalloonBridge=28
TrapdoorLeft=29 TrapdoorLeft=29
TrapdoorRight=29 TrapdoorRight=29
SinkingCrate=8 SinkingCrate=8
ConveyorCrateGenerator=30
################################################ ################################################
# Triggers # Triggers

View file

@ -120,3 +120,6 @@ Gfx=..\..\Graphics\platforms\trapdoor_wooden\trapdoor_woodenr.gin
[SinkingCrate] [SinkingCrate]
Gfx=..\..\Graphics\platforms\Crate\Crate.gin Gfx=..\..\Graphics\platforms\Crate\Crate.gin
[ConveyorCrateGenerator]
Gfx=..\..\Graphics\platforms\wooden_Crate\wooden_Crate.gin

View file

@ -1321,6 +1321,14 @@ SOURCE=..\..\..\source\platform\pclam.h
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\..\..\source\platform\pconveyr.cpp
# End Source File
# Begin Source File
SOURCE=..\..\..\source\platform\pconveyr.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\platform\pdual.cpp SOURCE=..\..\..\source\platform\pdual.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File