initial commit
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using Platformer.Mechanics;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Platformer.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// The main model containing needed data to implement a platformer style
|
||||
/// game. This class should only contain data, and methods that operate
|
||||
/// on the data. It is initialised with data in the GameController class.
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class PlatformerModel
|
||||
{
|
||||
/// <summary>
|
||||
/// The virtual camera in the scene.
|
||||
/// </summary>
|
||||
public Cinemachine.CinemachineVirtualCamera virtualCamera;
|
||||
|
||||
/// <summary>
|
||||
/// The main component which controls the player sprite, controlled
|
||||
/// by the user.
|
||||
/// </summary>
|
||||
public PlayerController player;
|
||||
|
||||
/// <summary>
|
||||
/// The spawn point in the scene.
|
||||
/// </summary>
|
||||
public Transform spawnPoint;
|
||||
|
||||
/// <summary>
|
||||
/// A global jump modifier applied to all initial jump velocities.
|
||||
/// </summary>
|
||||
public float jumpModifier = 1.5f;
|
||||
|
||||
/// <summary>
|
||||
/// A global jump modifier applied to slow down an active jump when
|
||||
/// the user releases the jump input.
|
||||
/// </summary>
|
||||
public float jumpDeceleration = 0.5f;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 76778dfacd2bc4a1993874eec5ccfe34
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user