Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/kevinfra/orga2-tp3
Browse files Browse the repository at this point in the history
  • Loading branch information
lbadell committed Jul 7, 2016
2 parents 2db5ce1 + 511b364 commit 15a7a00
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
13 changes: 9 additions & 4 deletions entregable/src/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,6 @@ void game_lanzar(unsigned int jugador) {
}
}

void game_soy(unsigned int yoSoy) {

}

void game_donde(unsigned int* pos) {
tupla* posiciones = posTareaActual();
unsigned short posx = posiciones->x;
Expand Down Expand Up @@ -486,6 +482,15 @@ void game_mapear(int x, int y) {
}
}

void pintarTareasH(){
tupla posXY = tareaActual->posicion;
int soyH = tareaActual->duenoOriginal;
if(soyH == 2 && juegoEstaIniciado){
pintarTareaMadre(posXY.x, posXY.y, tareaActual->dueno, soyH);
pintarJugador(X_A, Y_A, 0);
pintarJugador(X_B, Y_B, 1);
}
}

void pintarTareaActual(){
int player = tareaActual->dueno;
Expand Down
2 changes: 0 additions & 2 deletions entregable/src/game.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ unsigned short dameTarea();

void game_lanzar(unsigned int jugador);

void game_soy(unsigned int soy);

void game_donde(unsigned int* pos);

char validarXY(int x, int y);
Expand Down
3 changes: 2 additions & 1 deletion entregable/src/isr.asm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ extern game_mover_cursor
extern game_lanzar
extern pintarPuntajeAzul
extern pintarPuntajeRojo
extern pintarTareasH
extern print_hex
extern pintarTareaActual
extern actualizarReloj
Expand Down Expand Up @@ -297,7 +298,7 @@ _isr32:
call estaPintadoDebug
cmp eax, 1
je .salirDeReloj

call pintarTareasH
call sched_proximo_indice
;xchg bx, bx
shl eax, 3
Expand Down

0 comments on commit 15a7a00

Please sign in to comment.