Linedef type 250

From SRB2 Wiki
Jump to: navigation, search
A Mario block which has just awarded its prize of a Fire Flower.

Linedef type 250, Mario Block, is a type of floor over floor platform which behaves like an item block from the classic Mario games. When hit from below, it will award an item or items to the player who hits it, briefly displaying a corresponding sprite appearing out of the top of the block. The Mario block can be seen in Pipe Towers Zone.

Setup

The flats, floor height, and ceiling height of the FOF are determined by the flats, floor height, and ceiling height of the control sector. The control linedef's middle texture is shown only briefly during map load as the FOF's side. After that, the below texture is used for the FOF while there are items within the control sector. If there are no items left, it will change to the upper texture. If the control linedef has a back sector, the FOF's top and bottom display the back sector's ceiling flat if there are items left, and the back sector's floor flat afterwards.

The light level of the control sector will determine the brightness of the shadow cast by the FOF. If the light level of the control sector is lower than that of the target sector, then it will cast a dark shadow. If the light level of the control sector is higher than that of the target sector, then the FOF will illuminate the area below it. If the light level of the control sector is equal to that of the target sector, then the FOF will not affect the light of the area below it.

To make the Mario block work, at least one appropriate Thing must be placed inside the control sector; otherwise, the block will behave as though all items have already been taken from it. If multiple Things are inside the control sector, the block may be struck more than once and will award one item at a time. This linedef type was specifically made for Mario mode, but it will function in any gametype. However, outside of Mario mode, it will make a different sound when struck.

Different Things will have different effects when placed inside the control sector. Rings and coins will pop out of the top, and add to the player's count. If monitors are placed inside, their screens will pop out of the top when the block is struck, and their effect will be given to the player. Enemies inside the block will take damage when the block is struck. If they are killed, the rewarding score is given to the player, and the trapped flicky will pop out of the top of the block. Enemies which take multiple hits to destroy, such as the Crawla Commander, will pop out of the top with one hit point lost, and attack the player. Bosses will not pop out of the top of the item block, nor be damaged. Other Objects will simply pop up and sit on top of the FOF, and play the sound heard when a Chaos Emerald is collected (or sfx_mario9, if the level is in Mario mode).

If the control linedef is given the Not Climbable flag, the Mario block is turned into a brick block, which will shatter when hit from below. If the Slope Skew flag is set, the Mario block will turn invisible until it is hit from below for the first time.

Aesthetic tips

  • Mario blocks should usually have dimensions of 64 fracunits by 64 fracunits by 64 fracunits, as this is the size needed to properly display the standard Mario block textures, as well as the size required to make the block easy to strike.
  • In general, Mario blocks should be given the same textures that are used in Pipe Towers Zone.
  • A little creativity in what items come out of the blocks is good, but don't overdo it or the blocks will make no sense. Generally, the best Things to put inside the blocks are a single coin, a Fire Flower, a single power-up monitor, multiple coins, or multiple coins plus a single power-up monitor.
  • A clever idea is to put springs in a block, but be sure that the top of the block is accessible, and that you don't overuse this gimmick.
  • Be very careful about putting enemies in blocks; an overabundance of blocks with enemies in them is pointless and annoying.
  • Don't put Chaos Emeralds or other powerful items in blocks unless it's a very specialized gimmick for a mod.

Sample

Example file: ex_ld250_fofmarioitemblock.wad (MAP30)
How to use
  • You may load this file into your favorite map editor, such as Zone Builder. Select MAP30 as the map to load.
  • You may also load this file in the game:
    1. Save ex_ld250_fofmarioitemblock.wad into the addons folder of your SRB2 directory.
    2. Start SRB2, go to the Addons menu, and then select ex_ld250_fofmarioitemblock.wad.
    3. Start the game in Single Player mode.
    4. Press the Console button (~), and type in the command MAP MAP30 to access the example map.
  • When you load this file in the game, it replaces Pipe Towers Zone.


  Linedef typesFloor over floor [view]
Solid:
Solid, Opaque, ShadowcastingSolid, Opaque, Non-ShadowcastingSolid, TranslucentSolid, Sides OnlySolid, No SidesSolid, InvisibleIntangible from Bottom, OpaqueIntangible from Bottom, TranslucentIntangible from Bottom, Translucent, No SidesIntangible from Top, OpaqueIntangible from Top, TranslucentIntangible from Top, Translucent, No SidesOnly Tangible from Sides
Intangible:
Water, OpaqueWater, TranslucentWater, Opaque, No SidesWater, Translucent, No SidesGoo Water, TranslucentGoo Water, Translucent, No SidesIntangible, OpaqueIntangible, TranslucentIntangible, Sides OnlyIntangible, Invisible
Moving:
Air BobbingAir Bobbing (Adjustable)Reverse Air Bobbing (Adjustable)Dynamically Sinking PlatformFloating, BobbingRising Platform, Solid, Opaque, ShadowcastingRising Platform, Solid, Opaque, Non-ShadowcastingRising Platform, Solid, TranslucentRising Platform, Solid, InvisibleRising Platform, Intangible from Bottom, OpaqueRising Platform, Intangible from Bottom, Translucent
Crumbling:
Crumbling, RespawnCrumbling, No RespawnCrumbling, Respawn, Intangible from BottomCrumbling, No Respawn, Intangible from BottomCrumbling, Respawn, Intangible from Bottom, TranslucentCrumbling, No Respawn, Intangible from Bottom, TranslucentCrumbling, Respawn, Floating, BobbingCrumbling, No Respawn, Floating, BobbingCrumbling, Respawn, FloatingCrumbling, No Respawn, FloatingCrumbling, Respawn, Air Bobbing
Special:
Light BlockHalf Light BlockFog BlockMario BlockThwomp BlockShatter BlockShatter Block, TranslucentBustable BlockSpin-Bustable BlockSpin-Bustable Block, TranslucentQuicksandLaserCustom FOF