Browse Source

Update Random_Rect_Edges_mapgenerator.c

Rudy Boudewijn van Etten 5 năm trước cách đây
mục cha
commit
c35149dfd9
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  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){
                 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});
+            }
+            
 
     }}    
 }