🔍 s&box Package Code Search

Search C# source code, UI razor templates, shaders, and configs across s&box packages.

Showing code results for query: * (105 total matches found)
punkwithapomp.chicken_escape / styles/form/_colorproperty.scss
Game game

.colorproperty
{
	align-items: center;
	position: relative;

	.colorsquare
	{
		width: 20px;
		height: 20px;
		border-radius: 4px;
		margin-right: 8px;
		position: absolute;
		left: 7px;
		z-index: 1;
		cursor: pointer;
	}

	> .textentry:not( .a.b.c )
	{
		padding-left: 36px;
	}
}
punkwithapomp.chicken_escape / ui/button.cs.scss
Game game
.button
{
	position: relative;
	
	> .button-right-column
	{
		flex-direction: column;
	}
}

//  default menu position is below
.button-hover-menu
{
	position: absolute;
	top: 100%;
	flex-direction: column;

	&.hidden
	{
		opacity: 0;
		pointer-events: none;
	}
}
punkwithapomp.chicken_escape / ui/controlsheet/controlsheetgroup.cs.scss
Game game
.controlgroup
{
	border-radius: 8px;
	padding: 0.5rem;
	flex-direction: column;
	flex-shrink: 0;

	&.hidden
	{
		display: none;
	}
}

.controlgroup > .header
{
	font-weight: 550;
	color: #fff;
	flex-shrink: 0;
	padding: 8px 0;
	text-shadow: 1px 1px 1px #0004;
}

.controlgroup > .body
{
	flex-direction: column;
	flex-shrink: 0;
	gap: 2px;
	padding-left: 16px;

	&.hidden
	{
		display: none;
	}
}
punkwithapomp.chicken_escape / ui/controlsheet/controlsheetgroupheader.cs.scss
Game game
ControlSheetGroupHeader
{
	font-size: 1.33rem;
	color: red;
	gap: 2px;
	align-items: center;

	&.hidden
	{
		display: none;
	}

	> .title
	{
		font-weight: 600;
	}

	&.has-toggle
	{
		cursor: pointer;
		opacity: 0.8;

		&:before
		{
			content: ' ';
			width: 22px;
			height: 22px;
			background-color: #000a;
			align-items: center;
			justify-content: center;
			text-align: center;
			border-radius: 5px;
			border: 1px solid #555;
		}

		&:hover
		{
			opacity: 1;

			&:before
			{
				border-color: #888;
			}
		}

		&.checked
		{
			> .title
			{
				color: white;
			}

			&:before
			{
				content: '✓';
				font-weight: bold;
				color: #08f;
				border-color: #08f;
			}
		}
	}
}
punkwithapomp.chicken_escape / GameMusic2.cs
Game game
using Sandbox;

public sealed class GameMusic2 : Component
{
	[Property] public SoundEvent BgmEvent { get; set; }
	protected override void OnStart()
	{
		Sound.StopAll( 0f );
	}
	protected override void OnUpdate()
	{
		if ( Bgmmanager.soundHandle == null || !Bgmmanager.soundHandle.IsPlaying )
		{

			Bgmmanager.soundHandle = Sound.Play( BgmEvent );
		}

		// Start the sound if it isn't playing yet
		if ( Bgmmanager.soundHandle.Finished )
		{
			Bgmmanager.soundHandle = Sound.Play( BgmEvent );
		}
	}
}
punkwithapomp.chicken_escape / LeaderBoardDisplay2.cs
Game game
using Sandbox;
using System;
using System.Threading.Tasks;

public sealed class LeaderBoardDisplay2 : Component
{
	[Property] TextRenderer boardText;
	

	protected override void OnStart()
	{
		// Call this whenever you want to display/update the leaderboard
		DisplayLeaderboard();
	}

	public async Task DisplayLeaderboard()
	{
		// You fetch the stats from the package your organization published. You set your package name when publishing.
		var _scoreBoard = Sandbox.Services.Leaderboards.GetFromStat( "punkwithapomp.chicken_escape", "BestTimeLeaderboard" );
		
		_scoreBoard.SetAggregationMin();
		_scoreBoard.SetSortAscending();
		_scoreBoard.MaxEntries = 15;

		boardText.Text = "LOADING...";
		await _scoreBoard.Refresh();
		boardText.Text = "";

		// Loop over the entries and add them to the TextRenderer
		foreach ( var entry in _scoreBoard.Entries )
		{
			boardText.Text += $"\n{entry.CountryCode} #{entry.Rank} {entry.DisplayName}: {TimeSpan.FromSeconds( entry.Value ):mm\\:ss}";
			// Log.Info( $"#{entry.Rank} {entry.DisplayName}: {entry.Value}" );
		}


	}
	
}
punkwithapomp.chicken_escape / ScoreManager.cs
Game game
using Sandbox;
using Sandbox.VR;
using System;


public static class ScoreManager
{
	// This value will persist between scene loads
	public static int CurrentScore { get; set; }
	
	public static int HighScore { get; set; } = 3000;
	public static int WMCount { get; set; }
	public static int AllWM { get; set; }
	public static int AllTofu { get; set; }
	public static int TofuCount { get; set; }
	public static float BestTime { get; set; } = 390f;
	public static float CurrentTime { get; set; }

	public static bool WMcollect { get; set; } = false;
	public static bool WM2collect { get; set; } = false;
	public static bool WM3collect { get; set; } = false;
	public static bool WM4collect { get; set; } = false;
	public static bool WM5collect { get; set; } = false;
	public static bool WM6collect { get; set; } = false;
	public static bool WM7collect { get; set; } = false;
	public static bool WM8collect { get; set; } = false;
	public static bool WM9collect { get; set; } = false;
	public static bool WM10collect { get; set; } = false;

	
	public static bool Tofucollect { get; set; } = false;
	public static bool Tofu2collect { get; set; } = false;
	public static bool Tofu3collect { get; set; } = false;
	public static bool Tofu4collect { get; set; } = false;
	public static bool Tofu5collect { get; set; } = false;
	public static bool Tofu6collect { get; set; } = false;
	public static bool Tofu7collect { get; set; } = false;
	public static bool Tofu8collect { get; set; } = false;
	public static bool Tofu9collect { get; set; } = false;
	public static bool Tofu10collect { get; set; } = false;
	

}
punkwithapomp.chicken_escape / Tofu/TofuCollect.cs
Game game
using Sandbox;

public sealed class TofuCollect : Component, Component.ITriggerListener
{
	[Property] public SoundEvent tofu { get; set; }
	void ITriggerListener.OnTriggerEnter( Collider collision )
	{
		ScoreManager.TofuCount += 1;
		ScoreManager.Tofucollect = true;
		GameObject.PlaySound( tofu );
	}
	protected override void OnUpdate()
	{

		if ( ScoreManager.Tofucollect )
		{
			GameObject.Destroy();

		}
	}
}
punkwithapomp.chicken_escape / Tofu/TofuCollect7.cs
Game game
using Sandbox;

public sealed class TofuCollect7 : Component, Component.ITriggerListener
{
	[Property] public SoundEvent tofu { get; set; }
	void ITriggerListener.OnTriggerEnter( Collider collision )
	{
		ScoreManager.TofuCount += 1;
		ScoreManager.Tofu7collect = true;
		GameObject.PlaySound( tofu );
	}
	protected override void OnUpdate()
	{

		if ( ScoreManager.Tofu7collect )
		{
			GameObject.Destroy();

		}
	}
}
punkwithapomp.chicken_escape / UI/HatSelect.razor
Game game
@using Sandbox;
@using Sandbox.UI;
@inherits PanelComponent
@namespace Sandbox

<root>
	<h2>Hat Selection</h2>
	<div class="hatselector">
		<div class="image-button" onclick=@Henrietta>
			<image src="images/henriettapicture.png" />
		</div>
		<div class="image-button" onclick=@Watermelon>
			<image src="images/melonchickenpic.png" />
		</div>
		<div class="image-button" onclick=@Shooter>
			<image src="images/shooterchickenpic.png" />
		</div>
		<div class="image-button" onclick=@Tofu>
			<image src="images/tofuchickenpic.png" />
		</div>

	</div>

</root>
<root>
	<div class="options">

		<div class="button" onclick=@Back>
			Back
		</div>

		
	</div>
</root>
<root>
	<div class="howtoplay">

		<p>Press A & D or Left and Right on a gamepad to move.</p>
		<p>Press Space or A on a gamepad to jump, double jump, and triple jump.</p>
		<p>Press Shift or B on a gamepad to dodge.</p>
	</div>
</root>
@code
{
	[Property] public SceneFile hen1 { get; set; }
	[Property] public SceneFile hen2 { get; set; }
	[Property] public SceneFile hen3 { get; set; }
	[Property] public SceneFile hen4 { get; set; }
	[Property] public SceneFile LB { get; set; }

	
	[Property, TextArea] public string MyStringValue { get; set; } = "Hat Selection";
	void Henrietta()
	{
		Scene.Load(hen1);
	}
	void Watermelon()
	{
		Scene.Load(hen2);
	}
	void Shooter()
	{
		Scene.Load(hen3);
	}
	void Tofu()
	{
		Scene.Load(hen4);
	}
	void Back()
	{
		Scene.Load(LB);
	}
	/// <summary>
	/// the hash determines if the system should be rebuilt. If it changes, it will be rebuilt
	/// </summary>
	protected override int BuildHash() => System.HashCode.Combine( MyStringValue );
}
punkwithapomp.chicken_escape / ui/titlescreen.razor.scss
Game game
TitleScreen {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url("images/mainmenu.png");
	background-size: cover;
	background-position: center;
	justify-content: center;
	justify-content: center;
	align-items: center;
	font-family: GrotesqueNo9T;
	font-size: 32px;

	.title {
		position: absolute;
		bottom: 64px;
		font-weight: bold;
		text-stroke: 5px black;
		color: white;
		
		
	}
}
punkwithapomp.chicken_escape / Move.cs
Game game
using System.Collections;
using System.Collections.Generic;
using Sandbox;
using System.Numerics;
using static Sandbox.Sprite;
using static System.Runtime.CompilerServices.RuntimeHelpers;

public sealed class Move : Component
{
	private CharacterController controller;
	private Animation anim;
	private Vector3 moveDirection = Vector3.Zero;

	public float gravity = 2f;
	public float jumpforce = 6f;
	public float speed = 2f;
	public float timer = 0f;
	public float flyforce = 20f;
	public float flyspeed = 4f;
	public float dodgedir = 0f;

	public int tapCount = 0;

	private AudioListener chickenAudio;
	public SoundEvent chickenrun;
	public SoundEvent cluck;
	public SoundEvent wingsflap;
	public SoundEvent wingsfly;
	public SoundEvent dodge;

	[RequireComponent] SkinnedModelRenderer model { get; set; }




	// Start is called before the first frame update
	void Start()
	{
		controller = GetComponent<CharacterController>();
		anim = GameObject.GetComponentInChildren<Animation>();
		chickenAudio = GetComponent<AudioListener>();


	}

	// Update is called once per frame
	void Update()
	{
		ProcessGroundMovement();
		ProcessGroundJump();
		ProcessFly();
		ProcessFlyMovement();
		ProcessDodge();
	}

	void ProcessGroundMovement()
	{

		if ( controller.IsOnGround && Input.Keyboard.Pressed( "D" ) && (timer < 1) )
		{
			MoveRight();
		}
		if ( controller.IsOnGround && Input.Keyboard.Pressed( "A" ) && (timer < 1) )
		{
			MoveLeft();
		}
	}
	void ProcessDodge()
	{
		if ( controller.IsOnGround && Input.Keyboard.Down( "LeftShift" ) )
		{
			Dodge();
		}
		else if ( controller.IsOnGround && !Input.Keyboard.Pressed( "D" ) && !Input.Keyboard.Pressed( "A" ) )
		{
			StopDodging();
		}
	}
	void ProcessGroundJump()
	{


		if ( Input.Keyboard.Pressed( "Space" ) && (timer < 1) )
		{
			Jump();
		}

		if ( controller.IsOnGround && Input.Keyboard.Pressed( "Space" ) && (timer > 1) )
		{
			StopJumping();
		}
		if ( Input.Keyboard.Down( "Space" ) )
		{
			tapCount += 1;
		}
		if ( Input.Keyboard.Released( "Space" ) )
		{
			timer = 0;
		}
		if ( controller.IsOnGround )
		{
			tapCount = 0;
		}

	}
	void ProcessFly()
	{
		if ( (tapCount > 0) && (tapCount < 3) && Input.Keyboard.Pressed( "Space" ) && !controller.IsOnGround && (timer < .5f) )
		{
			DoubleJump();
		}
		if ( (tapCount > 1) && (tapCount < 3) && Input.Keyboard.Pressed( "Space" ) && !controller.IsOnGround && (timer < .5f) )
		{
			TripleJump();
		}
	}
	void ProcessFlyMovement()
	{
		if ( !controller.IsOnGround && Input.Keyboard.Pressed( "D" ) && !Input.Keyboard.Pressed( "Space" ) )
		{
			FlyRight();
		}
		if ( !controller.IsOnGround && Input.Keyboard.Pressed( "A" ) && !Input.Keyboard.Pressed( "Space" ) )
		{
			FlyLeft();
		}
		if ( !controller.IsOnGround && !Input.Keyboard.Pressed( "anyKey" ) )//&& (chickenAudio.clip != dodge) )
		{
			FlyIdle();
		}
		else if ( controller.IsOnGround && !Input.Keyboard.Pressed( "D" ) && !Input.Keyboard.Pressed( "A" ) && !Input.Keyboard.Down( "LeftShift" ) )
		{
			StopFlying();
		}


		moveDirection.y -= gravity * Time.Delta;
		controller.Velocity = moveDirection * speed;
	}

	void MoveRight()
	{
		model.Set( "AnimPar", 1 );
		controller.Move( );
		Vector3 newRot = new Vector3( 0f, 270f, 0f );
		//transform.rotation = Quaternion( newRot );
		dodgedir = 0;
		GameObject.PlaySound( chickenrun );
		if ( Input.Keyboard.Pressed( "Space" ) )
		{
			GameObject.PlaySound( wingsflap );
		}
	}
	void MoveLeft()
	{
		model.Set( "AnimPar", 1 );
		moveDirection = Transform.Local.Forward * Vector3.Backward * speed;
		Vector3 newRot = new Vector3( 0f, 90f, 0f );
		//Rotation myRotation = ToRotation(newRot);
		dodgedir = 1;
		GameObject.PlaySound( chickenrun ); 
		
		if ( Input.Keyboard.Pressed( "Space" ) )
		{
			GameObject.PlaySound( wingsflap );
		}
	}

	

	void StopDodging()
	{
		model.Set( "AnimPar", 0 );
		GameObject.StopAllSounds();
		moveDirection.x = 0;
		if ( Input.Keyboard.Down( "LeftShift" ) )
		{
			GameObject.PlaySound( dodge );
			model.Set( "AnimPar", 5 );
		}
	}

	void Dodge()
	{
		model.Set( "AnimPar", 5 );
		if ( dodgedir == 0 )
		{
			moveDirection = new Vector3( -5, 7, 0 );
		}
		if ( dodgedir == 1 )
		{
			moveDirection = new Vector3( 5, 7, 0 );
		}

		GameObject.PlaySound( dodge );
	}

	void StopJumping()
	{
		model.Set( "AnimPar", 0 );
		moveDirection.x = 0;
		moveDirection.y = 0;
	}
	void Jump()
	{
		model.Set( "AnimPar", 2 );
		moveDirection.y = jumpforce;
		timer += Time.Delta;
		GameObject.PlaySound( wingsflap );
		if ( (tapCount > 0) && (tapCount == 1) )
		{
			GameObject.PlaySound(wingsfly);
		}
	}
	void TripleJump()
	{
		model.Set( "AnimPar", 4 );
		moveDirection.y += flyforce;
		GameObject.PlaySound(cluck);
	}
	void DoubleJump()
	{
		model.Set( "AnimPar", 4 );
		moveDirection.y += flyforce;
		GameObject.PlaySound( wingsfly );
		if ( tapCount > 1 )
		{
			GameObject.PlaySound( cluck );
		}
	}
	void StopFlying()
	{
		model.Set( "AnimPar", 0 );
	}
	void FlyIdle()
	{
		model.Set( "AnimPar", 3 );
		GameObject.StopAllSounds();
	}
	void FlyLeft()
	{
		model.Set( "AnimPar", 3 );
		moveDirection = Transform.Local.Forward * Vector3.Backward * flyspeed;
		Vector3 newRot = new Vector3( 0f, 90f, 0f );
		//transform.rotation = Quaternion.Euler( newRot );
		dodgedir = 1;
	}
	void FlyRight()
	{
		model.Set( "AnimPar", 3 );
		moveDirection = -Transform.Local.Forward * Vector3.Forward * flyspeed;
		Vector3 newRot = new Vector3( 0f, 270f, 0f );
		//transform.rotation = Quaternion.Euler( newRot );
		dodgedir = 0;
	}
}

punkwithapomp.chicken_escape / TimeReset.cs
Game game
using Sandbox;

public sealed class TimeReset : Component
{
	[Property] ChickenControls chicken { get; set; }
	protected override void OnStart()
	{
		ScoreManager.CurrentTime = 0;
		
	}
}
punkwithapomp.chicken_escape / Tofu/TofuCollect4.cs
Game game
using Sandbox;

public sealed class TofuCollect4 : Component, Component.ITriggerListener
{
	[Property] public SoundEvent tofu { get; set; }
	void ITriggerListener.OnTriggerEnter( Collider collision )
	{
		ScoreManager.TofuCount += 1;
		ScoreManager.Tofu4collect = true;
		GameObject.PlaySound( tofu );
	}
	protected override void OnUpdate()
	{

		if ( ScoreManager.Tofu4collect )
		{
			GameObject.Destroy();

		}
	}
}
punkwithapomp.chicken_escape / UI/BestTimeLeaderBoard.razor
Game game
@using Sandbox;
@using Sandbox.UI;
@inherits PanelComponent
@namespace Sandbox

<root>
	<h2>Best Time</h2>
	<div class="options">

		<div class="button" onclick=@Back>
			Back
		</div>

		
	</div>
</root>

@code
{

	
	[Property] public SceneFile LB { get; set; }

	void Back()
	{
		Scene.Load(LB);
	}


	
}
punkwithapomp.chicken_escape / UI/HighScoreLeaderBoard.razor
Game game
@using Sandbox;
@using Sandbox.UI;
@inherits PanelComponent
@namespace Sandbox

<root>
	<h2>High Score</h2>
	<div class="options">
		
		
		
		<div class="button" onclick=@Back>
			Back
		</div>

		
	</div>
</root>

@code
{

	
	[Property] public SceneFile LB{ get; set; }
	


	void Back()
	{
		Scene.Load(LB);
	}
	

	
	
	
	
	
}
punkwithapomp.chicken_escape / WM/WatermelonCollect.cs
Game game
using Sandbox; 

public sealed class WatermelonCollect : Component, Component.ITriggerListener
{
	[Property] public SoundEvent melon { get; set; }
	void ITriggerListener.OnTriggerEnter( Collider collision )
	{

		ScoreManager.WMCount += 1;
		ScoreManager.WMcollect = true;
		GameObject.PlaySound( melon );

	}
	protected override void OnUpdate()
	{
		
		if ( ScoreManager.WMcollect)
		{
			GameObject.Destroy();
			
		}
	}
	
}

punkwithapomp.chicken_escape / WM/WatermelonCollect3.cs
Game game
using Sandbox; 

public sealed class WatermelonCollect3 : Component, Component.ITriggerListener
{
	[Property] public SoundEvent melon { get; set; }
	void ITriggerListener.OnTriggerEnter( Collider collision )
	{

		ScoreManager.WMCount += 1;
		ScoreManager.WM3collect = true;
		GameObject.PlaySound( melon );

	}
	protected override void OnUpdate()
	{
		
		if ( ScoreManager.WM3collect)
		{
			GameObject.Destroy();
			
		}
	}
	
}

punkwithapomp.chicken_escape / WM/WatermelonCollect7.cs
Game game
using Sandbox; 

public sealed class WatermelonCollect7 : Component, Component.ITriggerListener
{
	[Property] public SoundEvent melon { get; set; }
	void ITriggerListener.OnTriggerEnter( Collider collision )
	{

		ScoreManager.WMCount += 1;
		ScoreManager.WM7collect = true;
		GameObject.PlaySound( melon );

	}
	protected override void OnUpdate()
	{
		
		if ( ScoreManager.WM7collect)
		{
			GameObject.Destroy();
			
		}
	}
	
}

punkwithapomp.chicken_escape / WM/WatermelonCollect8.cs
Game game
using Sandbox; 

public sealed class WatermelonCollect8 : Component, Component.ITriggerListener
{
	[Property] public SoundEvent melon { get; set; }
	void ITriggerListener.OnTriggerEnter( Collider collision )
	{

		ScoreManager.WMCount += 1;
		ScoreManager.WM8collect = true;
		GameObject.PlaySound( melon );

	}
	protected override void OnUpdate()
	{
		
		if ( ScoreManager.WM8collect)
		{
			GameObject.Destroy();
			
		}
	}
	
}

Debug: View Raw JSON Response
{
    "TotalCount": 105,
    "Files": [
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "styles/form/_colorproperty.scss",
            "FileName": "_colorproperty.scss",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "\r\n\r\n.colorproperty\r\n{\r\n\talign-items: center;\r\n\tposition: relative;\r\n\r\n\t.colorsquare\r\n\t{\r\n\t\twidth: 20px;\r\n\t\theight: 20px;\r\n\t\tborder-radius: 4px;\r\n\t\tmargin-right: 8px;\r\n\t\tposition: absolute;\r\n\t\tleft: 7px;\r\n\t\tz-index: 1;\r\n\t\tcursor: pointer;\r\n\t}\r\n\r\n\t> .textentry:not( .a.b.c )\r\n\t{\r\n\t\tpadding-left: 36px;\r\n\t}\r\n}"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "ui/button.cs.scss",
            "FileName": "button.cs.scss",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": ".button\r\n{\r\n\tposition: relative;\r\n\t\r\n\t> .button-right-column\r\n\t{\r\n\t\tflex-direction: column;\r\n\t}\r\n}\r\n\r\n//  default menu position is below\r\n.button-hover-menu\r\n{\r\n\tposition: absolute;\r\n\ttop: 100%;\r\n\tflex-direction: column;\r\n\r\n\t&.hidden\r\n\t{\r\n\t\topacity: 0;\r\n\t\tpointer-events: none;\r\n\t}\r\n}"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "ui/controlsheet/controlsheetgroup.cs.scss",
            "FileName": "controlsheetgroup.cs.scss",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": ".controlgroup\r\n{\r\n\tborder-radius: 8px;\r\n\tpadding: 0.5rem;\r\n\tflex-direction: column;\r\n\tflex-shrink: 0;\r\n\r\n\t&.hidden\r\n\t{\r\n\t\tdisplay: none;\r\n\t}\r\n}\r\n\r\n.controlgroup > .header\r\n{\r\n\tfont-weight: 550;\r\n\tcolor: #fff;\r\n\tflex-shrink: 0;\r\n\tpadding: 8px 0;\r\n\ttext-shadow: 1px 1px 1px #0004;\r\n}\r\n\r\n.controlgroup > .body\r\n{\r\n\tflex-direction: column;\r\n\tflex-shrink: 0;\r\n\tgap: 2px;\r\n\tpadding-left: 16px;\r\n\r\n\t&.hidden\r\n\t{\r\n\t\tdisplay: none;\r\n\t}\r\n}"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "ui/controlsheet/controlsheetgroupheader.cs.scss",
            "FileName": "controlsheetgroupheader.cs.scss",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "ControlSheetGroupHeader\r\n{\r\n\tfont-size: 1.33rem;\r\n\tcolor: red;\r\n\tgap: 2px;\r\n\talign-items: center;\r\n\r\n\t&.hidden\r\n\t{\r\n\t\tdisplay: none;\r\n\t}\r\n\r\n\t> .title\r\n\t{\r\n\t\tfont-weight: 600;\r\n\t}\r\n\r\n\t&.has-toggle\r\n\t{\r\n\t\tcursor: pointer;\r\n\t\topacity: 0.8;\r\n\r\n\t\t&:before\r\n\t\t{\r\n\t\t\tcontent: ' ';\r\n\t\t\twidth: 22px;\r\n\t\t\theight: 22px;\r\n\t\t\tbackground-color: #000a;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\t\t\ttext-align: center;\r\n\t\t\tborder-radius: 5px;\r\n\t\t\tborder: 1px solid #555;\r\n\t\t}\r\n\r\n\t\t&:hover\r\n\t\t{\r\n\t\t\topacity: 1;\r\n\r\n\t\t\t&:before\r\n\t\t\t{\r\n\t\t\t\tborder-color: #888;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&.checked\r\n\t\t{\r\n\t\t\t> .title\r\n\t\t\t{\r\n\t\t\t\tcolor: white;\r\n\t\t\t}\r\n\r\n\t\t\t&:before\r\n\t\t\t{\r\n\t\t\t\tcontent: '\u2713';\r\n\t\t\t\tfont-weight: bold;\r\n\t\t\t\tcolor: #08f;\r\n\t\t\t\tborder-color: #08f;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "GameMusic2.cs",
            "FileName": "GameMusic2.cs",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "using Sandbox;\r\n\r\npublic sealed class GameMusic2 : Component\r\n{\r\n\t[Property] public SoundEvent BgmEvent { get; set; }\r\n\tprotected override void OnStart()\r\n\t{\r\n\t\tSound.StopAll( 0f );\r\n\t}\r\n\tprotected override void OnUpdate()\r\n\t{\r\n\t\tif ( Bgmmanager.soundHandle == null || !Bgmmanager.soundHandle.IsPlaying )\r\n\t\t{\r\n\r\n\t\t\tBgmmanager.soundHandle = Sound.Play( BgmEvent );\r\n\t\t}\r\n\r\n\t\t// Start the sound if it isn't playing yet\r\n\t\tif ( Bgmmanager.soundHandle.Finished )\r\n\t\t{\r\n\t\t\tBgmmanager.soundHandle = Sound.Play( BgmEvent );\r\n\t\t}\r\n\t}\r\n}\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "LeaderBoardDisplay2.cs",
            "FileName": "LeaderBoardDisplay2.cs",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "using Sandbox;\r\nusing System;\r\nusing System.Threading.Tasks;\r\n\r\npublic sealed class LeaderBoardDisplay2 : Component\r\n{\r\n\t[Property] TextRenderer boardText;\r\n\t\r\n\r\n\tprotected override void OnStart()\r\n\t{\r\n\t\t// Call this whenever you want to display/update the leaderboard\r\n\t\tDisplayLeaderboard();\r\n\t}\r\n\r\n\tpublic async Task DisplayLeaderboard()\r\n\t{\r\n\t\t// You fetch the stats from the package your organization published. You set your package name when publishing.\r\n\t\tvar _scoreBoard = Sandbox.Services.Leaderboards.GetFromStat( \"punkwithapomp.chicken_escape\", \"BestTimeLeaderboard\" );\r\n\t\t\r\n\t\t_scoreBoard.SetAggregationMin();\r\n\t\t_scoreBoard.SetSortAscending();\r\n\t\t_scoreBoard.MaxEntries = 15;\r\n\r\n\t\tboardText.Text = \"LOADING...\";\r\n\t\tawait _scoreBoard.Refresh();\r\n\t\tboardText.Text = \"\";\r\n\r\n\t\t// Loop over the entries and add them to the TextRenderer\r\n\t\tforeach ( var entry in _scoreBoard.Entries )\r\n\t\t{\r\n\t\t\tboardText.Text += $\"\\n{entry.CountryCode} #{entry.Rank} {entry.DisplayName}: {TimeSpan.FromSeconds( entry.Value ):mm\\\\:ss}\";\r\n\t\t\t// Log.Info( $\"#{entry.Rank} {entry.DisplayName}: {entry.Value}\" );\r\n\t\t}\r\n\r\n\r\n\t}\r\n\t\r\n}\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "ScoreManager.cs",
            "FileName": "ScoreManager.cs",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "using Sandbox;\r\nusing Sandbox.VR;\r\nusing System;\r\n\r\n\r\npublic static class ScoreManager\r\n{\r\n\t// This value will persist between scene loads\r\n\tpublic static int CurrentScore { get; set; }\r\n\t\r\n\tpublic static int HighScore { get; set; } = 3000;\r\n\tpublic static int WMCount { get; set; }\r\n\tpublic static int AllWM { get; set; }\r\n\tpublic static int AllTofu { get; set; }\r\n\tpublic static int TofuCount { get; set; }\r\n\tpublic static float BestTime { get; set; } = 390f;\r\n\tpublic static float CurrentTime { get; set; }\r\n\r\n\tpublic static bool WMcollect { get; set; } = false;\r\n\tpublic static bool WM2collect { get; set; } = false;\r\n\tpublic static bool WM3collect { get; set; } = false;\r\n\tpublic static bool WM4collect { get; set; } = false;\r\n\tpublic static bool WM5collect { get; set; } = false;\r\n\tpublic static bool WM6collect { get; set; } = false;\r\n\tpublic static bool WM7collect { get; set; } = false;\r\n\tpublic static bool WM8collect { get; set; } = false;\r\n\tpublic static bool WM9collect { get; set; } = false;\r\n\tpublic static bool WM10collect { get; set; } = false;\r\n\r\n\t\r\n\tpublic static bool Tofucollect { get; set; } = false;\r\n\tpublic static bool Tofu2collect { get; set; } = false;\r\n\tpublic static bool Tofu3collect { get; set; } = false;\r\n\tpublic static bool Tofu4collect { get; set; } = false;\r\n\tpublic static bool Tofu5collect { get; set; } = false;\r\n\tpublic static bool Tofu6collect { get; set; } = false;\r\n\tpublic static bool Tofu7collect { get; set; } = false;\r\n\tpublic static bool Tofu8collect { get; set; } = false;\r\n\tpublic static bool Tofu9collect { get; set; } = false;\r\n\tpublic static bool Tofu10collect { get; set; } = false;\r\n\t\r\n\r\n}\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "Tofu/TofuCollect.cs",
            "FileName": "TofuCollect.cs",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "using Sandbox;\r\n\r\npublic sealed class TofuCollect : Component, Component.ITriggerListener\r\n{\r\n\t[Property] public SoundEvent tofu { get; set; }\r\n\tvoid ITriggerListener.OnTriggerEnter( Collider collision )\r\n\t{\r\n\t\tScoreManager.TofuCount += 1;\r\n\t\tScoreManager.Tofucollect = true;\r\n\t\tGameObject.PlaySound( tofu );\r\n\t}\r\n\tprotected override void OnUpdate()\r\n\t{\r\n\r\n\t\tif ( ScoreManager.Tofucollect )\r\n\t\t{\r\n\t\t\tGameObject.Destroy();\r\n\r\n\t\t}\r\n\t}\r\n}\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "Tofu/TofuCollect7.cs",
            "FileName": "TofuCollect7.cs",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "using Sandbox;\r\n\r\npublic sealed class TofuCollect7 : Component, Component.ITriggerListener\r\n{\r\n\t[Property] public SoundEvent tofu { get; set; }\r\n\tvoid ITriggerListener.OnTriggerEnter( Collider collision )\r\n\t{\r\n\t\tScoreManager.TofuCount += 1;\r\n\t\tScoreManager.Tofu7collect = true;\r\n\t\tGameObject.PlaySound( tofu );\r\n\t}\r\n\tprotected override void OnUpdate()\r\n\t{\r\n\r\n\t\tif ( ScoreManager.Tofu7collect )\r\n\t\t{\r\n\t\t\tGameObject.Destroy();\r\n\r\n\t\t}\r\n\t}\r\n}\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "UI/HatSelect.razor",
            "FileName": "HatSelect.razor",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "@using Sandbox;\r\n@using Sandbox.UI;\r\n@inherits PanelComponent\r\n@namespace Sandbox\r\n\r\n<root>\r\n\t<h2>Hat Selection</h2>\r\n\t<div class=\"hatselector\">\r\n\t\t<div class=\"image-button\" onclick=@Henrietta>\r\n\t\t\t<image src=\"images/henriettapicture.png\" />\r\n\t\t</div>\r\n\t\t<div class=\"image-button\" onclick=@Watermelon>\r\n\t\t\t<image src=\"images/melonchickenpic.png\" />\r\n\t\t</div>\r\n\t\t<div class=\"image-button\" onclick=@Shooter>\r\n\t\t\t<image src=\"images/shooterchickenpic.png\" />\r\n\t\t</div>\r\n\t\t<div class=\"image-button\" onclick=@Tofu>\r\n\t\t\t<image src=\"images/tofuchickenpic.png\" />\r\n\t\t</div>\r\n\r\n\t</div>\r\n\r\n</root>\r\n<root>\r\n\t<div class=\"options\">\r\n\r\n\t\t<div class=\"button\" onclick=@Back>\r\n\t\t\tBack\r\n\t\t</div>\r\n\r\n\t\t\r\n\t</div>\r\n</root>\r\n<root>\r\n\t<div class=\"howtoplay\">\r\n\r\n\t\t<p>Press A & D or Left and Right on a gamepad to move.</p>\r\n\t\t<p>Press Space or A on a gamepad to jump, double jump, and triple jump.</p>\r\n\t\t<p>Press Shift or B on a gamepad to dodge.</p>\r\n\t</div>\r\n</root>\r\n@code\r\n{\r\n\t[Property] public SceneFile hen1 { get; set; }\r\n\t[Property] public SceneFile hen2 { get; set; }\r\n\t[Property] public SceneFile hen3 { get; set; }\r\n\t[Property] public SceneFile hen4 { get; set; }\r\n\t[Property] public SceneFile LB { get; set; }\r\n\r\n\t\r\n\t[Property, TextArea] public string MyStringValue { get; set; } = \"Hat Selection\";\r\n\tvoid Henrietta()\r\n\t{\r\n\t\tScene.Load(hen1);\r\n\t}\r\n\tvoid Watermelon()\r\n\t{\r\n\t\tScene.Load(hen2);\r\n\t}\r\n\tvoid Shooter()\r\n\t{\r\n\t\tScene.Load(hen3);\r\n\t}\r\n\tvoid Tofu()\r\n\t{\r\n\t\tScene.Load(hen4);\r\n\t}\r\n\tvoid Back()\r\n\t{\r\n\t\tScene.Load(LB);\r\n\t}\r\n\t/// <summary>\r\n\t/// the hash determines if the system should be rebuilt. If it changes, it will be rebuilt\r\n\t/// </summary>\r\n\tprotected override int BuildHash() => System.HashCode.Combine( MyStringValue );\r\n}\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "ui/titlescreen.razor.scss",
            "FileName": "titlescreen.razor.scss",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "TitleScreen {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\tbackground-image: url(\"images/mainmenu.png\");\r\n\tbackground-size: cover;\r\n\tbackground-position: center;\r\n\tjustify-content: center;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\tfont-family: GrotesqueNo9T;\r\n\tfont-size: 32px;\r\n\r\n\t.title {\r\n\t\tposition: absolute;\r\n\t\tbottom: 64px;\r\n\t\tfont-weight: bold;\r\n\t\ttext-stroke: 5px black;\r\n\t\tcolor: white;\r\n\t\t\r\n\t\t\r\n\t}\r\n}\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "Move.cs",
            "FileName": "Move.cs",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "using System.Collections;\r\nusing System.Collections.Generic;\r\nusing Sandbox;\r\nusing System.Numerics;\r\nusing static Sandbox.Sprite;\r\nusing static System.Runtime.CompilerServices.RuntimeHelpers;\r\n\r\npublic sealed class Move : Component\r\n{\r\n\tprivate CharacterController controller;\r\n\tprivate Animation anim;\r\n\tprivate Vector3 moveDirection = Vector3.Zero;\r\n\r\n\tpublic float gravity = 2f;\r\n\tpublic float jumpforce = 6f;\r\n\tpublic float speed = 2f;\r\n\tpublic float timer = 0f;\r\n\tpublic float flyforce = 20f;\r\n\tpublic float flyspeed = 4f;\r\n\tpublic float dodgedir = 0f;\r\n\r\n\tpublic int tapCount = 0;\r\n\r\n\tprivate AudioListener chickenAudio;\r\n\tpublic SoundEvent chickenrun;\r\n\tpublic SoundEvent cluck;\r\n\tpublic SoundEvent wingsflap;\r\n\tpublic SoundEvent wingsfly;\r\n\tpublic SoundEvent dodge;\r\n\r\n\t[RequireComponent] SkinnedModelRenderer model { get; set; }\r\n\r\n\r\n\r\n\r\n\t// Start is called before the first frame update\r\n\tvoid Start()\r\n\t{\r\n\t\tcontroller = GetComponent<CharacterController>();\r\n\t\tanim = GameObject.GetComponentInChildren<Animation>();\r\n\t\tchickenAudio = GetComponent<AudioListener>();\r\n\r\n\r\n\t}\r\n\r\n\t// Update is called once per frame\r\n\tvoid Update()\r\n\t{\r\n\t\tProcessGroundMovement();\r\n\t\tProcessGroundJump();\r\n\t\tProcessFly();\r\n\t\tProcessFlyMovement();\r\n\t\tProcessDodge();\r\n\t}\r\n\r\n\tvoid ProcessGroundMovement()\r\n\t{\r\n\r\n\t\tif ( controller.IsOnGround && Input.Keyboard.Pressed( \"D\" ) && (timer < 1) )\r\n\t\t{\r\n\t\t\tMoveRight();\r\n\t\t}\r\n\t\tif ( controller.IsOnGround && Input.Keyboard.Pressed( \"A\" ) && (timer < 1) )\r\n\t\t{\r\n\t\t\tMoveLeft();\r\n\t\t}\r\n\t}\r\n\tvoid ProcessDodge()\r\n\t{\r\n\t\tif ( controller.IsOnGround && Input.Keyboard.Down( \"LeftShift\" ) )\r\n\t\t{\r\n\t\t\tDodge();\r\n\t\t}\r\n\t\telse if ( controller.IsOnGround && !Input.Keyboard.Pressed( \"D\" ) && !Input.Keyboard.Pressed( \"A\" ) )\r\n\t\t{\r\n\t\t\tStopDodging();\r\n\t\t}\r\n\t}\r\n\tvoid ProcessGroundJump()\r\n\t{\r\n\r\n\r\n\t\tif ( Input.Keyboard.Pressed( \"Space\" ) && (timer < 1) )\r\n\t\t{\r\n\t\t\tJump();\r\n\t\t}\r\n\r\n\t\tif ( controller.IsOnGround && Input.Keyboard.Pressed( \"Space\" ) && (timer > 1) )\r\n\t\t{\r\n\t\t\tStopJumping();\r\n\t\t}\r\n\t\tif ( Input.Keyboard.Down( \"Space\" ) )\r\n\t\t{\r\n\t\t\ttapCount += 1;\r\n\t\t}\r\n\t\tif ( Input.Keyboard.Released( \"Space\" ) )\r\n\t\t{\r\n\t\t\ttimer = 0;\r\n\t\t}\r\n\t\tif ( controller.IsOnGround )\r\n\t\t{\r\n\t\t\ttapCount = 0;\r\n\t\t}\r\n\r\n\t}\r\n\tvoid ProcessFly()\r\n\t{\r\n\t\tif ( (tapCount > 0) && (tapCount < 3) && Input.Keyboard.Pressed( \"Space\" ) && !controller.IsOnGround && (timer < .5f) )\r\n\t\t{\r\n\t\t\tDoubleJump();\r\n\t\t}\r\n\t\tif ( (tapCount > 1) && (tapCount < 3) && Input.Keyboard.Pressed( \"Space\" ) && !controller.IsOnGround && (timer < .5f) )\r\n\t\t{\r\n\t\t\tTripleJump();\r\n\t\t}\r\n\t}\r\n\tvoid ProcessFlyMovement()\r\n\t{\r\n\t\tif ( !controller.IsOnGround && Input.Keyboard.Pressed( \"D\" ) && !Input.Keyboard.Pressed( \"Space\" ) )\r\n\t\t{\r\n\t\t\tFlyRight();\r\n\t\t}\r\n\t\tif ( !controller.IsOnGround && Input.Keyboard.Pressed( \"A\" ) && !Input.Keyboard.Pressed( \"Space\" ) )\r\n\t\t{\r\n\t\t\tFlyLeft();\r\n\t\t}\r\n\t\tif ( !controller.IsOnGround && !Input.Keyboard.Pressed( \"anyKey\" ) )//&& (chickenAudio.clip != dodge) )\r\n\t\t{\r\n\t\t\tFlyIdle();\r\n\t\t}\r\n\t\telse if ( controller.IsOnGround && !Input.Keyboard.Pressed( \"D\" ) && !Input.Keyboard.Pressed( \"A\" ) && !Input.Keyboard.Down( \"LeftShift\" ) )\r\n\t\t{\r\n\t\t\tStopFlying();\r\n\t\t}\r\n\r\n\r\n\t\tmoveDirection.y -= gravity * Time.Delta;\r\n\t\tcontroller.Velocity = moveDirection * speed;\r\n\t}\r\n\r\n\tvoid MoveRight()\r\n\t{\r\n\t\tmodel.Set( \"AnimPar\", 1 );\r\n\t\tcontroller.Move( );\r\n\t\tVector3 newRot = new Vector3( 0f, 270f, 0f );\r\n\t\t//transform.rotation = Quaternion( newRot );\r\n\t\tdodgedir = 0;\r\n\t\tGameObject.PlaySound( chickenrun );\r\n\t\tif ( Input.Keyboard.Pressed( \"Space\" ) )\r\n\t\t{\r\n\t\t\tGameObject.PlaySound( wingsflap );\r\n\t\t}\r\n\t}\r\n\tvoid MoveLeft()\r\n\t{\r\n\t\tmodel.Set( \"AnimPar\", 1 );\r\n\t\tmoveDirection = Transform.Local.Forward * Vector3.Backward * speed;\r\n\t\tVector3 newRot = new Vector3( 0f, 90f, 0f );\r\n\t\t//Rotation myRotation = ToRotation(newRot);\r\n\t\tdodgedir = 1;\r\n\t\tGameObject.PlaySound( chickenrun ); \r\n\t\t\r\n\t\tif ( Input.Keyboard.Pressed( \"Space\" ) )\r\n\t\t{\r\n\t\t\tGameObject.PlaySound( wingsflap );\r\n\t\t}\r\n\t}\r\n\r\n\t\r\n\r\n\tvoid StopDodging()\r\n\t{\r\n\t\tmodel.Set( \"AnimPar\", 0 );\r\n\t\tGameObject.StopAllSounds();\r\n\t\tmoveDirection.x = 0;\r\n\t\tif ( Input.Keyboard.Down( \"LeftShift\" ) )\r\n\t\t{\r\n\t\t\tGameObject.PlaySound( dodge );\r\n\t\t\tmodel.Set( \"AnimPar\", 5 );\r\n\t\t}\r\n\t}\r\n\r\n\tvoid Dodge()\r\n\t{\r\n\t\tmodel.Set( \"AnimPar\", 5 );\r\n\t\tif ( dodgedir == 0 )\r\n\t\t{\r\n\t\t\tmoveDirection = new Vector3( -5, 7, 0 );\r\n\t\t}\r\n\t\tif ( dodgedir == 1 )\r\n\t\t{\r\n\t\t\tmoveDirection = new Vector3( 5, 7, 0 );\r\n\t\t}\r\n\r\n\t\tGameObject.PlaySound( dodge );\r\n\t}\r\n\r\n\tvoid StopJumping()\r\n\t{\r\n\t\tmodel.Set( \"AnimPar\", 0 );\r\n\t\tmoveDirection.x = 0;\r\n\t\tmoveDirection.y = 0;\r\n\t}\r\n\tvoid Jump()\r\n\t{\r\n\t\tmodel.Set( \"AnimPar\", 2 );\r\n\t\tmoveDirection.y = jumpforce;\r\n\t\ttimer += Time.Delta;\r\n\t\tGameObject.PlaySound( wingsflap );\r\n\t\tif ( (tapCount > 0) && (tapCount == 1) )\r\n\t\t{\r\n\t\t\tGameObject.PlaySound(wingsfly);\r\n\t\t}\r\n\t}\r\n\tvoid TripleJump()\r\n\t{\r\n\t\tmodel.Set( \"AnimPar\", 4 );\r\n\t\tmoveDirection.y += flyforce;\r\n\t\tGameObject.PlaySound(cluck);\r\n\t}\r\n\tvoid DoubleJump()\r\n\t{\r\n\t\tmodel.Set( \"AnimPar\", 4 );\r\n\t\tmoveDirection.y += flyforce;\r\n\t\tGameObject.PlaySound( wingsfly );\r\n\t\tif ( tapCount > 1 )\r\n\t\t{\r\n\t\t\tGameObject.PlaySound( cluck );\r\n\t\t}\r\n\t}\r\n\tvoid StopFlying()\r\n\t{\r\n\t\tmodel.Set( \"AnimPar\", 0 );\r\n\t}\r\n\tvoid FlyIdle()\r\n\t{\r\n\t\tmodel.Set( \"AnimPar\", 3 );\r\n\t\tGameObject.StopAllSounds();\r\n\t}\r\n\tvoid FlyLeft()\r\n\t{\r\n\t\tmodel.Set( \"AnimPar\", 3 );\r\n\t\tmoveDirection = Transform.Local.Forward * Vector3.Backward * flyspeed;\r\n\t\tVector3 newRot = new Vector3( 0f, 90f, 0f );\r\n\t\t//transform.rotation = Quaternion.Euler( newRot );\r\n\t\tdodgedir = 1;\r\n\t}\r\n\tvoid FlyRight()\r\n\t{\r\n\t\tmodel.Set( \"AnimPar\", 3 );\r\n\t\tmoveDirection = -Transform.Local.Forward * Vector3.Forward * flyspeed;\r\n\t\tVector3 newRot = new Vector3( 0f, 270f, 0f );\r\n\t\t//transform.rotation = Quaternion.Euler( newRot );\r\n\t\tdodgedir = 0;\r\n\t}\r\n}\r\n\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "TimeReset.cs",
            "FileName": "TimeReset.cs",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "using Sandbox;\r\n\r\npublic sealed class TimeReset : Component\r\n{\r\n\t[Property] ChickenControls chicken { get; set; }\r\n\tprotected override void OnStart()\r\n\t{\r\n\t\tScoreManager.CurrentTime = 0;\r\n\t\t\r\n\t}\r\n}\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "Tofu/TofuCollect4.cs",
            "FileName": "TofuCollect4.cs",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "using Sandbox;\r\n\r\npublic sealed class TofuCollect4 : Component, Component.ITriggerListener\r\n{\r\n\t[Property] public SoundEvent tofu { get; set; }\r\n\tvoid ITriggerListener.OnTriggerEnter( Collider collision )\r\n\t{\r\n\t\tScoreManager.TofuCount += 1;\r\n\t\tScoreManager.Tofu4collect = true;\r\n\t\tGameObject.PlaySound( tofu );\r\n\t}\r\n\tprotected override void OnUpdate()\r\n\t{\r\n\r\n\t\tif ( ScoreManager.Tofu4collect )\r\n\t\t{\r\n\t\t\tGameObject.Destroy();\r\n\r\n\t\t}\r\n\t}\r\n}\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "UI/BestTimeLeaderBoard.razor",
            "FileName": "BestTimeLeaderBoard.razor",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "@using Sandbox;\r\n@using Sandbox.UI;\r\n@inherits PanelComponent\r\n@namespace Sandbox\r\n\r\n<root>\r\n\t<h2>Best Time</h2>\r\n\t<div class=\"options\">\r\n\r\n\t\t<div class=\"button\" onclick=@Back>\r\n\t\t\tBack\r\n\t\t</div>\r\n\r\n\t\t\r\n\t</div>\r\n</root>\r\n\r\n@code\r\n{\r\n\r\n\t\r\n\t[Property] public SceneFile LB { get; set; }\r\n\r\n\tvoid Back()\r\n\t{\r\n\t\tScene.Load(LB);\r\n\t}\r\n\r\n\r\n\t\r\n}\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "UI/HighScoreLeaderBoard.razor",
            "FileName": "HighScoreLeaderBoard.razor",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "@using Sandbox;\r\n@using Sandbox.UI;\r\n@inherits PanelComponent\r\n@namespace Sandbox\r\n\r\n<root>\r\n\t<h2>High Score</h2>\r\n\t<div class=\"options\">\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t<div class=\"button\" onclick=@Back>\r\n\t\t\tBack\r\n\t\t</div>\r\n\r\n\t\t\r\n\t</div>\r\n</root>\r\n\r\n@code\r\n{\r\n\r\n\t\r\n\t[Property] public SceneFile LB{ get; set; }\r\n\t\r\n\r\n\r\n\tvoid Back()\r\n\t{\r\n\t\tScene.Load(LB);\r\n\t}\r\n\t\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n}\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "WM/WatermelonCollect.cs",
            "FileName": "WatermelonCollect.cs",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "using Sandbox; \r\n\r\npublic sealed class WatermelonCollect : Component, Component.ITriggerListener\r\n{\r\n\t[Property] public SoundEvent melon { get; set; }\r\n\tvoid ITriggerListener.OnTriggerEnter( Collider collision )\r\n\t{\r\n\r\n\t\tScoreManager.WMCount += 1;\r\n\t\tScoreManager.WMcollect = true;\r\n\t\tGameObject.PlaySound( melon );\r\n\r\n\t}\r\n\tprotected override void OnUpdate()\r\n\t{\r\n\t\t\r\n\t\tif ( ScoreManager.WMcollect)\r\n\t\t{\r\n\t\t\tGameObject.Destroy();\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\t\r\n}\r\n\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "WM/WatermelonCollect3.cs",
            "FileName": "WatermelonCollect3.cs",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "using Sandbox; \r\n\r\npublic sealed class WatermelonCollect3 : Component, Component.ITriggerListener\r\n{\r\n\t[Property] public SoundEvent melon { get; set; }\r\n\tvoid ITriggerListener.OnTriggerEnter( Collider collision )\r\n\t{\r\n\r\n\t\tScoreManager.WMCount += 1;\r\n\t\tScoreManager.WM3collect = true;\r\n\t\tGameObject.PlaySound( melon );\r\n\r\n\t}\r\n\tprotected override void OnUpdate()\r\n\t{\r\n\t\t\r\n\t\tif ( ScoreManager.WM3collect)\r\n\t\t{\r\n\t\t\tGameObject.Destroy();\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\t\r\n}\r\n\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "WM/WatermelonCollect7.cs",
            "FileName": "WatermelonCollect7.cs",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "using Sandbox; \r\n\r\npublic sealed class WatermelonCollect7 : Component, Component.ITriggerListener\r\n{\r\n\t[Property] public SoundEvent melon { get; set; }\r\n\tvoid ITriggerListener.OnTriggerEnter( Collider collision )\r\n\t{\r\n\r\n\t\tScoreManager.WMCount += 1;\r\n\t\tScoreManager.WM7collect = true;\r\n\t\tGameObject.PlaySound( melon );\r\n\r\n\t}\r\n\tprotected override void OnUpdate()\r\n\t{\r\n\t\t\r\n\t\tif ( ScoreManager.WM7collect)\r\n\t\t{\r\n\t\t\tGameObject.Destroy();\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\t\r\n}\r\n\r\n"
        },
        {
            "Ident": "punkwithapomp.chicken_escape",
            "Path": "WM/WatermelonCollect8.cs",
            "FileName": "WatermelonCollect8.cs",
            "PackageType": "game",
            "CodeKind": "Game",
            "AssetVersionId": 344371,
            "Code": "using Sandbox; \r\n\r\npublic sealed class WatermelonCollect8 : Component, Component.ITriggerListener\r\n{\r\n\t[Property] public SoundEvent melon { get; set; }\r\n\tvoid ITriggerListener.OnTriggerEnter( Collider collision )\r\n\t{\r\n\r\n\t\tScoreManager.WMCount += 1;\r\n\t\tScoreManager.WM8collect = true;\r\n\t\tGameObject.PlaySound( melon );\r\n\r\n\t}\r\n\tprotected override void OnUpdate()\r\n\t{\r\n\t\t\r\n\t\tif ( ScoreManager.WM8collect)\r\n\t\t{\r\n\t\t\tGameObject.Destroy();\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\t\r\n}\r\n\r\n"
        }
    ]
}