Преглед изворни кода

Update Random_Rect_Edges_mapgenerator.c

Rudy Boudewijn van Etten пре 5 година
родитељ
комит
c35149dfd9
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      ProcGen/Random_Rect_Edges_mapgenerator.c

+ 7 - 0
ProcGen/Random_Rect_Edges_mapgenerator.c

@@ -245,6 +245,13 @@ static void edgeenhance(){
             if(map[x][y]==2 && map[x+1][y]==1){
             if(map[x][y]==2 && map[x+1][y]==1){
                 DrawRectangle(dx+tileWidth,dy,tileWidth/2,tileHeight,DARKGRAY);
                 DrawRectangle(dx+tileWidth,dy,tileWidth/2,tileHeight,DARKGRAY);
             }
             }
+            if(map[x][y]==2 && map[x-1][y]==1){
+                DrawRectangle(dx-tileWidth/2,dy,tileWidth/2,tileHeight,(Color){200,150,0,255});
+            }
+            if(map[x][y]==2 && map[x][y-1]==1){
+                DrawRectangle(dx,dy-tileHeight/2,tileWidth,tileHeight/2,(Color){200,150,0,255});
+            }
+            
 
 
     }}    
     }}    
 }
 }