Demo build: 150 kg goal, end screen, separate AppId and store assets
GC_DEMO define (ProjectBuilder GC_DEMO=1 / -demo) builds GrassCutterDemo.exe for app 5668050 with its own product name, version 0.1-demo and no achievements. Purchases lock after shipping 150 kg; a goal label and a thanks/wishlist card follow. Menu gets a DEMO badge and wishlist button. Store texts (12 languages) and DEMO-badged capsules for the demo page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
25
Assets/Scripts/Core/Demo.cs
Normal file
25
Assets/Scripts/Core/Demo.cs
Normal file
@ -0,0 +1,25 @@
|
||||
namespace GrassCutter
|
||||
{
|
||||
/// <summary>
|
||||
/// The demo build (built with GC_DEMO): its own Steam app, its own saves (another product name, so another data
|
||||
/// folder and other settings), no achievements, and an end once the crew has shipped <see cref="GoalKg"/>: a thank-you
|
||||
/// screen with the wishlist and feedback links, and nothing more for sale after it.
|
||||
/// </summary>
|
||||
public static class Demo
|
||||
{
|
||||
#if GC_DEMO
|
||||
public const bool On = true;
|
||||
#else
|
||||
public const bool On = false;
|
||||
#endif
|
||||
/// <summary>The full game: what the wishlist and feedback links go to.</summary>
|
||||
public const uint FullAppId = 5551720;
|
||||
public const uint DemoAppId = 5668050;
|
||||
/// <summary>About half an hour for a first-time player: the paced opening ships 178 kg in 30 minutes knowing exactly what to do.</summary>
|
||||
public const double GoalKg = 150;
|
||||
|
||||
public static double Shipped => TeamState.Instance ? TeamState.Instance.Shipped.Value : 0d;
|
||||
/// <summary>The crew has reached the end of the demo.</summary>
|
||||
public static bool Over => On && Shipped >= GoalKg;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user