repo.or.cz
/
Projeto-PCG.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Criada classe Controle.
[Projeto-PCG.git]
/
player.cpp
blob
693720a201546728e93e89e5fcc2eb4223ab9e90
1
#include
"player.h"
2
3
Player
::
Player
(
int
x
,
int
y
) {
4
posicao
.
x
=
x
;
5
posicao
.
y
=
y
;
6
velocidade
.
x
=
0
;
7
velocidade
.
y
=
0
;
8
}
9
10
void
Player
::
desenha
() {
11
glPushMatrix
();
12
glTranslatef
(
posicao
.
x
,
posicao
.
y
,
0
);
13
drawCircle
(
10
,
30
);
14
glPopMatrix
();
15
}