Added final features for this release. Now only polishing (if needed) remains.
Features: Sacrifice-Node, Maintain-Node, Options for screen type, lightcolor and soundvolume, tied in sound effects, game pause when menu is open, visibly open up gate when opening it.
This commit is contained in:
@@ -29,6 +29,8 @@ public partial class Robot : Node3D
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if (GameData.isPaused) return;
|
||||
|
||||
if (isExecuting)
|
||||
{
|
||||
if (CanExecute(delta))
|
||||
@@ -155,6 +157,16 @@ public partial class Robot : Node3D
|
||||
currentMessage = "";
|
||||
}
|
||||
|
||||
public void Maintain(float amount)
|
||||
{
|
||||
maintenance = Math.Clamp(maintenance + amount, 0f, 100f);
|
||||
if (maintenance > 0f)
|
||||
{
|
||||
isBroken = false;
|
||||
}
|
||||
currentMessage = "";
|
||||
}
|
||||
|
||||
public RobotSaveData CreateSaveData()
|
||||
{
|
||||
return new RobotSaveData
|
||||
|
||||
Reference in New Issue
Block a user