Skip to content

Commit

Permalink
Correción en la cantidad de bloques que se importan
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-GA committed Sep 11, 2020
1 parent d612460 commit 8975533
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions it_is_just_a_hug/maps.pde
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ void importMap(int numMap){
if(map[i][j] == 'S'){ //Recorre todo la matriz hasta que encuentra una S por primera vez

numBGroundMap++; //Aumenta el número de bloques Ground que hay
numBGroundMap = constrain(numBGroundMap, 0, Ground.length-1); //Solución temporal al la "optimización de los bloques"
Ground[numBGroundMap].setXY(j*sizeBlocks, i*sizeBlocks); //Se establece esa la posición del bloque

for(int sX = 1; sX < map[i].length -j; sX++){
Expand Down

0 comments on commit 8975533

Please sign in to comment.