mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 03:27:37 +02:00
DJ School sounds
This commit is contained in:
8
Assets/Scripts/Games/DJSchool.meta
Normal file
8
Assets/Scripts/Games/DJSchool.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 51d95684617a83745b551fa3687d2a01
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
34
Assets/Scripts/Games/DJSchool/DJSchool.cs
Normal file
34
Assets/Scripts/Games/DJSchool/DJSchool.cs
Normal file
@ -0,0 +1,34 @@
|
||||
using RhythmHeavenMania.Util;
|
||||
|
||||
namespace RhythmHeavenMania.Games.DJSchool
|
||||
{
|
||||
public class DJSchool : Minigame
|
||||
{
|
||||
public static DJSchool instance { get; private set; }
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
instance = this;
|
||||
}
|
||||
|
||||
public void BreakCmon(float beat)
|
||||
{
|
||||
MultiSound.Play(new MultiSound.Sound[]
|
||||
{
|
||||
new MultiSound.Sound("djSchool/breakCmon1", beat),
|
||||
new MultiSound.Sound("djSchool/breakCmon2", beat + 1f),
|
||||
new MultiSound.Sound("djSchool/ooh", beat + 2f),
|
||||
});
|
||||
}
|
||||
|
||||
public void ScratchoHey(float beat)
|
||||
{
|
||||
MultiSound.Play(new MultiSound.Sound[]
|
||||
{
|
||||
new MultiSound.Sound("djSchool/scratchoHey1", beat),
|
||||
new MultiSound.Sound("djSchool/scratchoHey2", beat + 1f),
|
||||
new MultiSound.Sound("djSchool/hey", beat + 2f),
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/Games/DJSchool/DJSchool.cs.meta
Normal file
11
Assets/Scripts/Games/DJSchool/DJSchool.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 36f587267a500e643bcbf5b9c04bb1b5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Scripts/Games/RhythmRally.meta
Normal file
8
Assets/Scripts/Games/RhythmRally.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c3ad2a7be988b204e8eb10ec0871948c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
25
Assets/Scripts/Games/RhythmRally/RhythmRally.cs
Normal file
25
Assets/Scripts/Games/RhythmRally/RhythmRally.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RhythmHeavenMania.Games.RhythmRally
|
||||
{
|
||||
public class RhythmRally : MonoBehaviour
|
||||
{
|
||||
public Transform cameraPos;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
GameCamera.instance.camera.transform.position = cameraPos.position;
|
||||
GameCamera.instance.camera.transform.rotation = cameraPos.rotation;
|
||||
GameCamera.instance.camera.fieldOfView = 41f;
|
||||
GameCamera.instance.camera.backgroundColor = Color.white;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/Games/RhythmRally/RhythmRally.cs.meta
Normal file
11
Assets/Scripts/Games/RhythmRally/RhythmRally.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 35772aee9756b5040ab64a73ebc3f8ae
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -197,7 +197,7 @@ namespace RhythmHeavenMania.Games.SpaceSoccer
|
||||
}
|
||||
else
|
||||
{
|
||||
toeCurve.KeyPoints[1].transform.position = new Vector3(kicker.transform.position.x - 0.7f, kicker.transform.position.y - 6f);
|
||||
toeCurve.KeyPoints[1].transform.position = new Vector3(kicker.transform.position.x - 1.0f, kicker.transform.position.y - 6f);
|
||||
}
|
||||
|
||||
holder.transform.localPosition = toeCurve.GetPoint(normalizedBeatAnim);
|
||||
|
@ -33,7 +33,7 @@ namespace RhythmHeavenMania.Games.Spaceball
|
||||
{
|
||||
for (int i = 1; i < BallsHolder.transform.childCount; i++)
|
||||
Destroy(BallsHolder.transform.GetChild(i).gameObject);
|
||||
GameManager.instance.GameCamera.orthographic = false;
|
||||
GameCamera.instance.camera.orthographic = false;
|
||||
|
||||
if (EligibleHits.Count > 0)
|
||||
EligibleHits.RemoveRange(0, EligibleHits.Count);
|
||||
@ -52,7 +52,7 @@ namespace RhythmHeavenMania.Games.Spaceball
|
||||
private void Start()
|
||||
{
|
||||
allCameraEvents = EventCaller.GetAllInGameManagerList("spaceball", new string[] { "cameraZoom" });
|
||||
GameManager.instance.GameCamera.transform.localPosition = new Vector3(0, 0, -10);
|
||||
GameCamera.instance.camera.transform.localPosition = new Vector3(0, 0, -10);
|
||||
}
|
||||
|
||||
private void Update()
|
||||
@ -83,18 +83,18 @@ namespace RhythmHeavenMania.Games.Spaceball
|
||||
|
||||
if (normalizedBeat > Minigame.EndTime())
|
||||
{
|
||||
lastCamDistance = GameManager.instance.GameCamera.transform.localPosition.z;
|
||||
lastCamDistance = GameCamera.instance.camera.transform.localPosition.z;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (currentZoomCamLength <= 0)
|
||||
{
|
||||
GameManager.instance.GameCamera.transform.localPosition = new Vector3(0, 0, currentZoomCamDistance);
|
||||
GameCamera.instance.camera.transform.localPosition = new Vector3(0, 0, currentZoomCamDistance);
|
||||
}
|
||||
else
|
||||
{
|
||||
float newPosZ = Mathf.Lerp(lastCamDistance, currentZoomCamDistance, normalizedBeat);
|
||||
GameManager.instance.GameCamera.transform.localPosition = new Vector3(0, 0, newPosZ);
|
||||
GameCamera.instance.camera.transform.localPosition = new Vector3(0, 0, newPosZ);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user