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
f06a79a5
authored
Mar 27, 2025
by
José Pardo Madera
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
ARREGLO CALIENTE: UNA VEZ SE ABRÍA EL OJO, NO SE PUEDE VOLVER ATRAS
parent
bf4e2202
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
PantallaMundo.cpp
PantallaPrincipal.cpp
PantallaMundo.cpp
View file @
f06a79a5
...
...
@@ -37,6 +37,7 @@ void PantallaMundo::comprobarColisionesActivas() {
}
void
PantallaMundo
::
comprobarColisionesPasivas
()
{
ojo_abierto
=
false
;
int
i
=
0
;
while
(
!
ojo_abierto
&&
i
<
objetos
.
size
()){
if
(
Agapito
.
comprobarColisionPasiva
(
objetos
[
i
].
getHitbox
())){
...
...
@@ -123,4 +124,4 @@ void PantallaMundo::borrarElementos(){
void
PantallaMundo
::
anadirObjeto
(
Objeto
nuevo
){
objetos
.
push_back
(
nuevo
);
}
\ No newline at end of file
}
PantallaPrincipal.cpp
View file @
f06a79a5
...
...
@@ -16,7 +16,7 @@ PantallaPrincipal::PantallaPrincipal() :
Hitbox
hitFondo
(
1000000
,
-
10000000
,
300
,
0
);
//Hitbox hitCama(1000, 0, 1200,-10000000);
Hitbox
hitDer
(
1000
,
800
,
10000000
,
-
10000000
);
Hitbox
hitIzq
(
30
0
,
0
,
10000000
,
-
10000000
);
Hitbox
hitIzq
(
25
0
,
0
,
10000000
,
-
10000000
);
colisionesActivas
.
push_back
(
hitFondo
);
...
...
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