Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
José Pardo Madera
/
ProjectoMultimeda2025
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a2a48f65
authored
Mar 24, 2025
by
José Pardo Madera
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Mas audio
parent
587dfe3e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
7 deletions
Executable
PantallaInicio.cpp
Sonido.cpp
assets/Encerrado_es.vtt
Executable
View file @
a2a48f65
No preview for this file type
PantallaInicio.cpp
View file @
a2a48f65
...
@@ -32,7 +32,7 @@ void PantallaInicio::manejarEntrada(Handle &handle) {
...
@@ -32,7 +32,7 @@ void PantallaInicio::manejarEntrada(Handle &handle) {
switch
(
event
.
key
.
keysym
.
sym
)
{
switch
(
event
.
key
.
keysym
.
sym
)
{
case
13
:
case
13
:
Cancion
.
pausar
();
Cancion
.
pausar
();
play_video
(
"assets/Encerrado
.mp4
"
,
"es"
);
play_video
(
"assets/Encerrado"
,
"es"
);
handle
.
reemplazamePor
(
colPantallas
[
0
]);
handle
.
reemplazamePor
(
colPantallas
[
0
]);
break
;
break
;
}
}
...
@@ -47,7 +47,7 @@ void PantallaInicio::manejarEntrada(Handle &handle) {
...
@@ -47,7 +47,7 @@ void PantallaInicio::manejarEntrada(Handle &handle) {
cout
<<
"Raton x "
<<
xRaton
<<
" Raton z "
<<
zRaton
<<
endl
;
cout
<<
"Raton x "
<<
xRaton
<<
" Raton z "
<<
zRaton
<<
endl
;
if
(
colisionesInterfaz
[
0
].
colisiona
(
xRaton
,
zRaton
)
){
if
(
colisionesInterfaz
[
0
].
colisiona
(
xRaton
,
zRaton
)
){
Cancion
.
pausar
();
Cancion
.
pausar
();
play_video
(
"assets/Encerrado
.mp4
"
,
"es"
);
play_video
(
"assets/Encerrado"
,
"es"
);
handle
.
reemplazamePor
(
colPantallas
[
0
]);
handle
.
reemplazamePor
(
colPantallas
[
0
]);
}
}
}
}
...
@@ -73,4 +73,4 @@ void PantallaInicio::renderizar(SDL_Renderer *renderer, int tamx, int tamy) {
...
@@ -73,4 +73,4 @@ void PantallaInicio::renderizar(SDL_Renderer *renderer, int tamx, int tamy) {
}
}
}
}
\ No newline at end of file
Sonido.cpp
View file @
a2a48f65
...
@@ -30,7 +30,7 @@ void Sonido::play(){
...
@@ -30,7 +30,7 @@ void Sonido::play(){
}
}
void
Sonido
::
pausar
(){
void
Sonido
::
pausar
(){
Mix_
Pause
(
-
1
);
Mix_
HaltMusic
(
);
}
}
bool
Sonido
::
getTocada
(){
return
tocada
;}
bool
Sonido
::
getTocada
(){
return
tocada
;}
...
@@ -38,4 +38,4 @@ bool Sonido::getTocada(){return tocada;}
...
@@ -38,4 +38,4 @@ bool Sonido::getTocada(){return tocada;}
bool
Sonido
::
acabado
(){
bool
Sonido
::
acabado
(){
acaba
=!
Mix_PlayingMusic
();
acaba
=!
Mix_PlayingMusic
();
return
acaba
;
return
acaba
;
}
}
\ No newline at end of file
assets/Encerrado_es.vtt
0 → 100644
View file @
a2a48f65
WEBVTT
1
00:00:01.750 --> 00:00:03.500
Así que esta es la habitación donde
2
00:00:03.500 --> 00:00:05.000
van ha probar si soy apto
3
00:00:05.000 --> 00:00:06.000
para el trabajo o no
3
00:00:06.125 --> 00:00:07.500
(Distorsionado) Jajaja
4
00:00:07.650 --> 00:00:08.000
¿¿Huh??
5
00:00:08.125 --> 00:00:09.000
¿Qué es esa voz?
6
00:00:09.250 --> 00:00:10.300
*Toques al microfono*
7
00:00:10.300 --> 00:00:11.000
(Distorsionado) Eh..
8
00:00:11.000 --> 00:00:12.000
(Distorsionado) Esto no va
9
00:00:12.000 --> 00:00:13.000
(Distorsionado) Ah!
10
00:00:13.750 --> 00:00:15.000
(Distorsionado) ¡Te he encerrado!
11
00:00:15.000 --> 00:00:16.000
¡Maldita sea!
12
00:00:16.000 --> 00:00:18.000
¡Me ha encerrado!
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment