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
4acaccbe
authored
Mar 20, 2025
by
Jaime de la Chica Bergillos
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Hitboxes arregladas en principio
parent
a6356d58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
Executable
PantallaPrincipal.cpp
Executable
View file @
4acaccbe
No preview for this file type
PantallaPrincipal.cpp
View file @
4acaccbe
...
...
@@ -14,7 +14,7 @@ PantallaPrincipal::PantallaPrincipal() :
Sprite
sprOjoAbierto
(
"assets/ojoAbierto.png"
);
Sprite
sprOjoCerrado
(
"assets/ojoCerrado.png"
);
Hitbox
hitPlanta
(
0
,
-
1
0
,
1200
,
-
1000000000
);
Hitbox
hitPlanta
(
900
,
70
0
,
1200
,
-
1000000000
);
Hitbox
hitInterfaz
(
1920
,
0
,
900
,
700
);
...
...
@@ -25,10 +25,10 @@ PantallaPrincipal::PantallaPrincipal() :
Hitbox
hitFondo
(
1000000
,
-
10000000
,
55
0
,
0
);
Hitbox
hitCama
(
5
00
,
0
,
1200
,
-
10000000
);
Hitbox
hitDer
(
510
,
45
0
,
10000000
,
-
10000000
);
Hitbox
hitIzq
(
-
800
,
-
90
0
,
10000000
,
-
10000000
);
Hitbox
hitFondo
(
1000000
,
-
10000000
,
30
0
,
0
);
//Hitbox hitCama(10
00, 0, 1200,-10000000);
Hitbox
hitDer
(
1000
,
80
0
,
10000000
,
-
10000000
);
Hitbox
hitIzq
(
300
,
0
,
10000000
,
-
10000000
);
objetos
.
push_back
(
Interfaz
);
...
...
@@ -41,13 +41,11 @@ PantallaPrincipal::PantallaPrincipal() :
colisionesInterfaz
.
push_back
(
hitOjo
);
/*
colisionesActivas
.
push_back
(
hitFondo
);
colisionesActivas.push_back(hitCama);
colisionesActivas.push_back(hitDer);
colisionesActivas
.
push_back
(
hitIzq
);
*/
colisionesActivas
.
push_back
(
hitDer
);
//colisionesActivas.push_back(hitCama);
}
...
...
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