Skip to content

Commit

Permalink
First Push
Browse files Browse the repository at this point in the history
First push of project
  • Loading branch information
Redtricity committed Oct 10, 2023
1 parent 9c43740 commit 66367e9
Show file tree
Hide file tree
Showing 763 changed files with 131,512 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .idea/.idea.Game_Engine_2/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/.idea.Game_Engine_2/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea.Game_Engine_2/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Art.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Art/Assets.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Art/Assets/MainMenuAssets.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Art/Assets/MainMenuAssets/dogica.ttf
Binary file not shown.
21 changes: 21 additions & 0 deletions Assets/Art/Assets/MainMenuAssets/dogica.ttf.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Art/Assets/MainMenuAssets/dogicapixel.ttf
Binary file not shown.
21 changes: 21 additions & 0 deletions Assets/Art/Assets/MainMenuAssets/dogicapixel.ttf.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Art/Materials.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Art/Models.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Art/Textures.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Audio.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Audio/Music.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Audio/Sound.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Code.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Code/Scripts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Code/Scripts/C#.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Code/Scripts/C#/AnimationControls.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions Assets/Code/Scripts/C#/AnimationControls/AnimateCockpitControls.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AnimateCockpitControls : MonoBehaviour
{
//flight control transforms
[SerializeField]
private Transform _joystick;

[SerializeField]
Vector3 _joystickRange = Vector3.zero;

[SerializeField]
List<Transform> _throttles;

[SerializeField]
float _throttleRange = 35f;

[SerializeField]
private ShipMovementInput _movementInput;

private IMovementControls ControlInput => _movementInput.MovementControls;

// Update is called once per frame
void Update()
{
_joystick.localRotation = Quaternion.Euler(ControlInput.PitchAmount * _joystickRange.x, ControlInput.YawAmount *_joystickRange.y,ControlInput.RollAmount * _joystickRange.z);

Vector3 throttleRotation = _throttles[0].localRotation.eulerAngles;
throttleRotation.x = ControlInput.ThrustAmount * _throttleRange;
foreach (Transform throttle in _throttles)
{
throttle.localRotation = Quaternion.Euler(throttleRotation);
}
}


}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Code/Scripts/C#/Managers.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions Assets/Code/Scripts/C#/Managers/GameManager.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameManager : MonoBehaviour
{
private bool ShouldQuitGame => Input.GetKeyUp(KeyCode.Escape);
// Start is called before the first frame update
void Start()
{
Cursor.lockState = CursorLockMode.Confined;
Cursor.visible = false;
}

// Update is called once per frame
void Update()
{
if (ShouldQuitGame)
{
ShouldGame();
}
}

private void ShouldGame()
{
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#else
// todo handle WedGL
Application.Quit();
#endif
}
}
11 changes: 11 additions & 0 deletions Assets/Code/Scripts/C#/Managers/GameManager.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions Assets/Code/Scripts/C#/Managers/Managers.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Managers : MonoBehaviour
{
private static Managers _instance;

private void Awake()
{
if (_instance != null && _instance != this)
{
Destroy(this.gameObject);
}
else
{
_instance = this;
DontDestroyOnLoad(this.gameObject);
}
}
}
11 changes: 11 additions & 0 deletions Assets/Code/Scripts/C#/Managers/Managers.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Assets/Code/Scripts/C#/MatchRotation.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MatchRotation : MonoBehaviour
{
[SerializeField] public Transform _target;
// Start is called before the first frame update

private void LateUpdate()
{
transform.rotation = _target.rotation;
}
}
11 changes: 11 additions & 0 deletions Assets/Code/Scripts/C#/MatchRotation.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Code/Scripts/C#/ShipControls.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 66367e9

Please sign in to comment.