Working MVP code for Valentines

This commit is contained in:
Michal Pikulski
2025-12-04 15:10:20 +01:00
parent 38e4cdcf88
commit 6d4080438d
44 changed files with 2731 additions and 294 deletions

View File

@@ -0,0 +1,14 @@
namespace Minigames.Airplane.Data
{
/// <summary>
/// Camera states for the airplane minigame
/// </summary>
public enum AirplaneCameraState
{
Intro, // Intro sequence camera
NextPerson, // Camera focusing on the next person
Aiming, // Camera for aiming the airplane
Flight // Camera following the airplane in flight
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: f5b6a3623e7040be9dfeac6ee8e195cf
timeCreated: 1764851235

View File

@@ -0,0 +1,16 @@
namespace Minigames.Airplane.Data
{
/// <summary>
/// Game states for the airplane minigame
/// </summary>
public enum AirplaneGameState
{
Intro, // Intro sequence
NextPerson, // Introducing the next person
Aiming, // Player is aiming the airplane
Flying, // Airplane is in flight
Evaluating, // Evaluating the result of the flight
GameOver // All people have had their turn
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 59636bd1dbca4575b431820510da201f
timeCreated: 1764851235

View File

@@ -0,0 +1,52 @@
using UnityEngine;
namespace Minigames.Airplane.Data
{
/// <summary>
/// Data for a person participating in the airplane minigame.
/// Contains their name, target assignment, and scene reference.
/// </summary>
[System.Serializable]
public class PersonData
{
[Tooltip("Name of the person")]
public string personName;
[Tooltip("Target name they need to hit")]
public string targetName;
[Tooltip("Transform reference to the person in the scene")]
public Transform personTransform;
[Tooltip("Turn number (assigned at runtime)")]
public int turnNumber;
/// <summary>
/// Constructor for creating person data
/// </summary>
public PersonData(string name, string target, Transform transform, int turn = 0)
{
personName = name;
targetName = target;
personTransform = transform;
turnNumber = turn;
}
/// <summary>
/// Default constructor for serialization
/// </summary>
public PersonData()
{
personName = "Unknown";
targetName = "Unknown";
personTransform = null;
turnNumber = 0;
}
public override string ToString()
{
return $"Person: {personName}, Target: {targetName}, Turn: {turnNumber}";
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: b9a03de5cfa64dadaf6c53b8f3935d3e
timeCreated: 1764851235