Map: Difference between revisions

From DDraceNetwork
(make the tiles image bigger)
(In-depth switch explanation, grammar in Tune layer description)
Line 24: Line 24:
* Force: The force that will applied to your current speed. A minimum of 1 is required to place a speedup tile.
* Force: The force that will applied to your current speed. A minimum of 1 is required to place a speedup tile.
* Max Speed: A value that limits the maximum velocity of your tee while inside the tile. Keep this at 0 to simply use the speedup tile as a launcher.
* Max Speed: A value that limits the maximum velocity of your tee while inside the tile. Keep this at 0 to simply use the speedup tile as a launcher.
* Angle: Angle at which the speedup tile will launch you. 0 is actually 90° (aiming to the right). By this logic, 180 will make the speedup tile face to the left. It goes in increments of 45 to hit all directions as well as all diagonals.  
* Angle: Angle at which the speedup tile will launch you. 0 is actually 90° (aiming to the right). By this logic, 180 will make the speedup tile face to the left. It can be adjusted in increments of 45 to hit all directions as well as all diagonals, and you can set a specific value as well.


== Switch layer ==
== Switch layer ==
Line 33: Line 33:
In the top toolbar, you can press the Switch button while this layer is selected to change these options:
In the top toolbar, you can press the Switch button while this layer is selected to change these options:


* Number: Switch number that will be associated with the tiles you place. Similarly to the Tele layer, you can press the F button to select an unused number.
=== Number ===
* Delay: Used mainly for buttons. Amount of time in seconds before the button reverts to its former position.
* For buttons, this number will change what tiles it affects.
If the delay is used on the telegun ground tiles (index 98 and 99) it modifies which weapon it affects<ref>https://forum.ddnet.tw/viewtopic.php?t=6676</ref>:
* For bonus and penalty tiles, this number represents the number of seconds to subtract from or add to a player's race time.
* For switch layer doors, weapons, freeze, deep freeze, hearts, shields, exploding bullets, plasma turrets, spinning lasers, non-spinning lasers, and dragging lasers, this number corresponds to which buttons turn the tile on and off.
* Similarly to the Tele layer, you can press the F button to select an unused number.


* 0 - All Weapons
=== Delay ===
* 1 - Only pistol
* For buttons, this number changes how many seconds the button state will change before reverting to its previous state.
* 2 - Only grenade
* For bonus and penalty tiles, this number represents the number of minutes to subtract from or add to a player's race time.
* 3 - Only laser
* For jump tiles, this number sets the maximum number of jumps a player has. Note that if a player stands on a stopper tile, they can still jump even if this number is set to zero.
* For switch layer hit on/off tiles, it modifies which weapon it allows/disallows player collision for: 0 - All Weapons, 1 - Only pistol, 2 - Only grenade, 3 - Only laser
* For switch layer freeze tiles, this number adjusts how long tees will be frozen for.
 
* For telegun tiles (index 98 and 99), it modifies which weapon it affects: 0 - All Weapons, 1 - Only pistol, 2 - Only grenade, 3 - Only laser<ref>https://forum.ddnet.tw/viewtopic.php?t=6676</ref>


=== How to use doors with lasers ===
=== How to use doors with lasers ===
Line 46: Line 52:


== Tune layer ==
== Tune layer ==
This layer, used along [[Settings and Commands|server map commands]] is used to define areas to apply said server map commands.
This layer, used with [[Settings and Commands|server map commands]] is used to define areas to apply said server map commands.


With this layer you can achieve things like lower gravity, stronger shotgun pull, increased weapon fire rate, etc.
With this layer you can achieve things like lower gravity, stronger shotgun pull, increased weapon fire rate, etc.

Revision as of 11:13, 4 August 2021

The game layer entities

The DDNet client allows players to create and edit maps that can then be played.

A map is made up of groups of layers, here is a description of each type of layer:

Game layer

This layer contains the tiles that implement the actual in-game physics. You can see their properties in the Tiles page.

Front layer

A layer that is nearly equal to the game layer, it exists to allow 2 game tiles to exist on the same tile.

Tele layer

All tiles here are related to teleportation.

In the top toolbar, you can press the Tele button while this layer is selected to change these options:

  • Tele: Teleporter number that will be associated with the tiles you place. You can press the F button to automatically select an unused number.

Speedup layer

Has the speedup tile.

In the top toolbar, you can press the Speedup button while this layer is selected to change these options:

  • Force: The force that will applied to your current speed. A minimum of 1 is required to place a speedup tile.
  • Max Speed: A value that limits the maximum velocity of your tee while inside the tile. Keep this at 0 to simply use the speedup tile as a launcher.
  • Angle: Angle at which the speedup tile will launch you. 0 is actually 90° (aiming to the right). By this logic, 180 will make the speedup tile face to the left. It can be adjusted in increments of 45 to hit all directions as well as all diagonals, and you can set a specific value as well.

Switch layer

This layer contains switches that can enable and disable other tile functionality temporarily or permanently or change their behavior such as increasing the time a tee is frozen.

This is specially useful to use with doors, hammer hit, freeze and weapons.

In the top toolbar, you can press the Switch button while this layer is selected to change these options:

Number

  • For buttons, this number will change what tiles it affects.
  • For bonus and penalty tiles, this number represents the number of seconds to subtract from or add to a player's race time.
  • For switch layer doors, weapons, freeze, deep freeze, hearts, shields, exploding bullets, plasma turrets, spinning lasers, non-spinning lasers, and dragging lasers, this number corresponds to which buttons turn the tile on and off.
  • Similarly to the Tele layer, you can press the F button to select an unused number.

Delay

  • For buttons, this number changes how many seconds the button state will change before reverting to its previous state.
  • For bonus and penalty tiles, this number represents the number of minutes to subtract from or add to a player's race time.
  • For jump tiles, this number sets the maximum number of jumps a player has. Note that if a player stands on a stopper tile, they can still jump even if this number is set to zero.
  • For switch layer hit on/off tiles, it modifies which weapon it allows/disallows player collision for: 0 - All Weapons, 1 - Only pistol, 2 - Only grenade, 3 - Only laser
  • For switch layer freeze tiles, this number adjusts how long tees will be frozen for.
  • For telegun tiles (index 98 and 99), it modifies which weapon it affects: 0 - All Weapons, 1 - Only pistol, 2 - Only grenade, 3 - Only laser[1]

How to use doors with lasers

First, select an unused Switch number, then select the Door tile and place it at both extremities of where you want your door to be. Then, place Laser Length tiles of the appropriate length next to each of the two door tiles. The door will be activated by default. Place a Switch Deactivate tile with the same switch number to let players open the door. You can then place Switch Activate tiles after the door to make players close the door behind them. Alternatively, you can use Time Switch Deactivate and use the Delay option to make the door open, and then close after the allocated number of seconds.

Tune layer

This layer, used with server map commands is used to define areas to apply said server map commands.

With this layer you can achieve things like lower gravity, stronger shotgun pull, increased weapon fire rate, etc.

See also

References