Efectos de sonido agregados

parent 436f35d4
Showing with 235 additions and 42 deletions
......@@ -12,6 +12,8 @@ public class BalaFlauta : MonoBehaviour
// Start is called before the first frame update
void Start()
{
SpriteRenderer SR = this.GetComponent<SpriteRenderer>();
if (!SR.flipX)
{
......
......@@ -150,6 +150,9 @@ public class Player2D : MonoBehaviour
private void DispararFlauta() {
AudioSource audio = GameObject.Find("Efectos").GetComponent<AudioSource>();
AudioClip clip = Resources.Load("Musica/EfectosSonido/flauta") as AudioClip;
audio.PlayOneShot(clip, 0.05f);
if (!spriteRenderer.flipX)
{
......@@ -167,6 +170,10 @@ public class Player2D : MonoBehaviour
private void DispararGuitarra() {
AudioSource audio = GameObject.Find("Efectos").GetComponent<AudioSource>();
AudioClip clip = Resources.Load("Musica/EfectosSonido/guitarra") as AudioClip;
audio.PlayOneShot(clip, 0.05f);
if (!spriteRenderer.flipX)
{
//Movimiento de la bala hacia la derecha
......
fileFormatVersion: 2
guid: f8671f3268516984c8898a733ddd12c1
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 40372763b82c5db4d98463d7b107e68c
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 678436d1492c92b45a2a619f4f936a40
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
......@@ -5931,6 +5931,133 @@ Transform:
type: 3}
m_PrefabInstance: {fileID: 703547965}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1212475474
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1212475476}
- component: {fileID: 1212475475}
m_Layer: 0
m_Name: Efectos
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!82 &1212475475
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1212475474}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 0}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!4 &1212475476
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1212475474}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -9.568136, y: -1.3873407, z: -0.04989327}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 18
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1234913244
GameObject:
m_ObjectHideFlags: 0
......
......@@ -59,7 +59,7 @@ public class Musica : MonoBehaviour
AudioSource audio = musica.GetComponent<AudioSource>();
audio.clip = Resources.Load("Musica/Juego/MusicTales_Nivel1") as AudioClip;
audio.volume = 0.2f;
audio.volume = 0.15f;
audio.Play();
}
......
......@@ -69,6 +69,7 @@ public class ZonaFinal : MonoBehaviour
public void VolverALaSeleccionDeNivel() {
Time.timeScale = 1;
Musica.CancionMenuInicial();
SceneManager.LoadScene("SeleccionNivel");//CAMBIAR PARA QUE VAYA A LA SELECCION DE NIVEL
}
......
......@@ -21,7 +21,7 @@ MonoBehaviour:
m_ShowMode: 4
m_Title:
m_RootView: {fileID: 6}
m_MinSize: {x: 950, y: 394}
m_MinSize: {x: 950, y: 544}
m_MaxSize: {x: 10000, y: 10000}
--- !u!114 &2
MonoBehaviour:
......@@ -44,10 +44,10 @@ MonoBehaviour:
y: 30
width: 1920
height: 947
m_MinSize: {x: 681, y: 344}
m_MaxSize: {x: 12006, y: 8044}
m_MinSize: {x: 681, y: 494}
m_MaxSize: {x: 14002, y: 14044}
vertical: 0
controlID: 134
controlID: 13
--- !u!114 &3
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -93,8 +93,8 @@ MonoBehaviour:
y: 0
width: 341
height: 630
m_MinSize: {x: 202, y: 222}
m_MaxSize: {x: 4002, y: 4022}
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 4000, y: 4000}
m_ActualView: {fileID: 15}
m_Panes:
- {fileID: 15}
......@@ -119,15 +119,15 @@ MonoBehaviour:
y: 630
width: 1589
height: 317
m_MinSize: {x: 102, y: 122}
m_MaxSize: {x: 4002, y: 4022}
m_ActualView: {fileID: 18}
m_MinSize: {x: 232, y: 272}
m_MaxSize: {x: 10002, y: 10022}
m_ActualView: {fileID: 13}
m_Panes:
- {fileID: 13}
- {fileID: 18}
- {fileID: 12}
m_Selected: 1
m_LastSelected: 0
m_Selected: 0
m_LastSelected: 1
--- !u!114 &6
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -150,7 +150,7 @@ MonoBehaviour:
y: 0
width: 1920
height: 997
m_MinSize: {x: 950, y: 394}
m_MinSize: {x: 950, y: 300}
m_MaxSize: {x: 10000, y: 10000}
--- !u!114 &7
MonoBehaviour:
......@@ -216,10 +216,10 @@ MonoBehaviour:
y: 0
width: 1589
height: 947
m_MinSize: {x: 406, y: 344}
m_MaxSize: {x: 8006, y: 8044}
m_MinSize: {x: 406, y: 494}
m_MaxSize: {x: 10002, y: 14044}
vertical: 1
controlID: 60
controlID: 14
--- !u!114 &10
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -244,7 +244,7 @@ MonoBehaviour:
m_MinSize: {x: 406, y: 222}
m_MaxSize: {x: 8006, y: 4022}
vertical: 0
controlID: 61
controlID: 15
--- !u!114 &11
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -300,7 +300,7 @@ MonoBehaviour:
m_ViewDataDictionary: {fileID: 0}
m_LockTracker:
m_IsLocked: 0
m_LastSelectedObjectID: 16334
m_LastSelectedObjectID: -32362
--- !u!114 &13
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -339,34 +339,34 @@ MonoBehaviour:
m_ShowAllHits: 0
m_SearchArea: 1
m_Folders:
- Assets/MainMenu/Scripts
- Assets/Prefabs
m_ViewMode: 1
m_StartGridSize: 64
m_LastFolders:
- Assets/MainMenu/Scripts
- Assets/Prefabs
m_LastFoldersGridSize: -1
m_LastProjectPath: C:\Users\Colme\Documents\UnityProjects\ProyectoVideojuegos\Videojuegos_Proyecto
m_LastProjectPath: C:\Users\alvmo\Documents\NetBeansProjects\DesarrolloDeVideojuegos_Proyecto\Videojuegos_Proyecto
m_LockTracker:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: a4370000
m_LastClickedID: 14244
m_ExpandedIDs: 00000000ec2c0000243500004836000000ca9a3b
m_SelectedIDs: d0370000
m_LastClickedID: 14288
m_ExpandedIDs: 00000000f62c000052360000d036000000ca9a3b
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
m_OriginalName:
m_Name: Animaciones
m_OriginalName: Animaciones
m_EditFieldRect:
serializedVersion: 2
x: 0
y: 0
width: 0
height: 0
m_UserData: 0
m_UserData: 13550
m_IsWaitingForDelay: 0
m_IsRenaming: 0
m_OriginalEventType: 11
m_OriginalEventType: 0
m_IsRenamingFilename: 1
m_ClientGUIView: {fileID: 5}
m_SearchString:
......@@ -380,7 +380,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 00000000ec2c000048360000
m_ExpandedIDs: 00000000f62c000052360000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
......@@ -405,8 +405,8 @@ MonoBehaviour:
m_Icon: {fileID: 0}
m_ResourceFile:
m_ListAreaState:
m_SelectedInstanceIDs: e2250000
m_LastClickedInstanceID: 9698
m_SelectedInstanceIDs:
m_LastClickedInstanceID: 0
m_HadKeyboardFocusLastEvent: 1
m_ExpandedInstanceIDs: c6230000a83200001c2c0000462b00004afc0000a23500000000000010d502008e350000
m_RenameOverlay:
......@@ -500,9 +500,9 @@ MonoBehaviour:
m_SceneHierarchy:
m_TreeViewState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: e2250000
m_SelectedIDs: 802d0000
m_LastClickedID: 0
m_ExpandedIDs: 966fffff6a77ffffe0f8ffff02400000984b0600
m_ExpandedIDs: 6639ffff2a8ffffffaf6ffffa6f8ffff
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
......@@ -562,9 +562,9 @@ MonoBehaviour:
m_PlayAudio: 0
m_AudioPlay: 0
m_Position:
m_Target: {x: -9.11, y: -1.52, z: 0}
m_Target: {x: -9.568136, y: -1.3873407, z: -0.04989327}
speed: 2
m_Value: {x: -9.11, y: -1.52, z: 0}
m_Value: {x: -9.568136, y: -1.3873407, z: -0.04989327}
m_RenderMode: 0
m_CameraMode:
drawMode: 0
......@@ -597,9 +597,9 @@ MonoBehaviour:
speed: 2
m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size:
m_Target: 3.535777
m_Target: 4.0349092
speed: 2
m_Value: 3.535777
m_Value: 4.0349092
m_Ortho:
m_Target: 1
speed: 2
......
{"m_ExpandedPrefabGameObjectFileIDs":[],"m_ExpandedSceneGameObjectInstanceIDs":[],"m_ScrollY":0.0,"m_LastClickedFileID":0,"m_LastClickedInstanceID":0}
\ No newline at end of file
{"m_ExpandedPrefabGameObjectFileIDs":[],"m_ExpandedSceneGameObjectInstanceIDs":[],"m_ScrollY":0.0,"m_LastClickedFileID":9101462949979880529,"m_LastClickedInstanceID":0}
\ No newline at end of file
{"m_ExpandedPrefabGameObjectFileIDs":[],"m_ExpandedSceneGameObjectInstanceIDs":[],"m_ScrollY":0.0,"m_LastClickedFileID":8319826604163745464,"m_LastClickedInstanceID":0}
\ No newline at end of file
{"cameraMode":{"drawMode":0,"name":"Shaded","section":"Shading Mode"},"sceneLighting":false,"audioPlay":false,"sceneViewState":{"showFog":true,"showMaterialUpdate":false,"showSkybox":false,"showFlares":true,"showImageEffects":true,"showParticleSystems":true},"in2DMode":true,"pivot":{"x":-7.13401985168457,"y":0.9768131375312805,"z":0.0},"rotation":{"x":0.0,"y":0.0,"z":0.0,"w":1.0},"size":1.6664180755615235,"orthographic":true}
\ No newline at end of file
{"cameraMode":{"drawMode":0,"name":"Shaded","section":"Shading Mode"},"sceneLighting":true,"audioPlay":false,"sceneViewState":{"showFog":true,"showMaterialUpdate":false,"showSkybox":true,"showFlares":true,"showImageEffects":true,"showParticleSystems":true},"in2DMode":true,"pivot":{"x":-9.109999656677246,"y":-1.5199999809265137,"z":0.0},"rotation":{"x":0.0,"y":0.0,"z":0.0,"w":1.0},"size":3.5357770919799806,"orthographic":true}
\ No newline at end of file
{"cameraMode":{"drawMode":0,"name":"Shaded","section":"Shading Mode"},"sceneLighting":true,"audioPlay":false,"sceneViewState":{"showFog":true,"showMaterialUpdate":false,"showSkybox":true,"showFlares":true,"showImageEffects":true,"showParticleSystems":true},"in2DMode":true,"pivot":{"x":-9.568136215209961,"y":-1.3873406648635865,"z":-0.049893271178007129},"rotation":{"x":0.0,"y":0.0,"z":0.0,"w":1.0},"size":4.034909248352051,"orthographic":true}
\ No newline at end of file
Base path: C:/Program Files/Unity/Hub/Editor/2019.1.11f1/Editor/Data
Base path: C:/Program Files/Unity/Editor/Data
Cmd: initializeCompiler
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment