Maps of square tiles in three layers plus a collision layer, mounted over the 2D shell when their scene is entered. WASD walking, E/F action events, touch teleports, story-flag conditions, random encounters, rpg.battle and rpg.teleport actions, position saving. Integration suite rpg_walk.
15 lines
447 B
C#
15 lines
447 B
C#
using Cthangover.Core.Bootstrap;
|
|
|
|
namespace Cthangover.Mods.Rpg
|
|
{
|
|
/// <summary>New game: the player starts at the spawn of the entry map.</summary>
|
|
public class RpgStateReset : IResettable
|
|
{
|
|
/// <summary>Deduplication key in <see cref="AppServices"/>.</summary>
|
|
public string Id => "rpg";
|
|
|
|
/// <summary>Forgets the position.</summary>
|
|
public void ResetForNewGame() => RpgState.Instance.Reset();
|
|
}
|
|
}
|