Linie Löschen
This commit is contained in:
		
							
								
								
									
										2
									
								
								.idea/Tetris.iml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								.idea/Tetris.iml
									
									
									
										generated
									
									
									
								
							@@ -10,7 +10,7 @@
 | 
				
			|||||||
    <orderEntry type="module-library" exported="">
 | 
					    <orderEntry type="module-library" exported="">
 | 
				
			||||||
      <library>
 | 
					      <library>
 | 
				
			||||||
        <CLASSES>
 | 
					        <CLASSES>
 | 
				
			||||||
          <root url="jar://$MODULE_DIR$/Datenbank/sqlite-jdbc-3.36.0.3.jar!/" />
 | 
					          <root url="jar://$MODULE_DIR$/Daenbank/sqlite-jdbc-3.36.0.3.jar!/" />
 | 
				
			||||||
        </CLASSES>
 | 
					        </CLASSES>
 | 
				
			||||||
        <JAVADOC />
 | 
					        <JAVADOC />
 | 
				
			||||||
        <SOURCES />
 | 
					        <SOURCES />
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										11
									
								
								.idea/aws.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								.idea/aws.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<project version="4">
 | 
				
			||||||
 | 
					  <component name="accountSettings">
 | 
				
			||||||
 | 
					    <option name="activeRegion" value="us-east-1" />
 | 
				
			||||||
 | 
					    <option name="recentlyUsedRegions">
 | 
				
			||||||
 | 
					      <list>
 | 
				
			||||||
 | 
					        <option value="us-east-1" />
 | 
				
			||||||
 | 
					      </list>
 | 
				
			||||||
 | 
					    </option>
 | 
				
			||||||
 | 
					  </component>
 | 
				
			||||||
 | 
					</project>
 | 
				
			||||||
							
								
								
									
										5
									
								
								.idea/codeStyles/codeStyleConfig.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								.idea/codeStyles/codeStyleConfig.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					<component name="ProjectCodeStyleConfiguration">
 | 
				
			||||||
 | 
					  <state>
 | 
				
			||||||
 | 
					    <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
 | 
				
			||||||
 | 
					  </state>
 | 
				
			||||||
 | 
					</component>
 | 
				
			||||||
							
								
								
									
										10
									
								
								.idea/runConfigurations.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										10
									
								
								.idea/runConfigurations.xml
									
									
									
										generated
									
									
									
								
							@@ -1,10 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					 | 
				
			||||||
<project version="4">
 | 
					 | 
				
			||||||
  <component name="RunConfigurationProducerService">
 | 
					 | 
				
			||||||
    <option name="ignoredProducers">
 | 
					 | 
				
			||||||
      <set>
 | 
					 | 
				
			||||||
        <option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
 | 
					 | 
				
			||||||
      </set>
 | 
					 | 
				
			||||||
    </option>
 | 
					 | 
				
			||||||
  </component>
 | 
					 | 
				
			||||||
</project>
 | 
					 | 
				
			||||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							@@ -56,6 +56,7 @@ public class Stein {
 | 
				
			|||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            linieLöschen();
 | 
				
			||||||
            board.setCurrenStein();
 | 
					            board.setCurrenStein();
 | 
				
			||||||
            return;
 | 
					            return;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -94,8 +95,8 @@ public class Stein {
 | 
				
			|||||||
                if (!collision) {
 | 
					                if (!collision) {
 | 
				
			||||||
                y++;
 | 
					                y++;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        } else {
 | 
					            else {
 | 
				
			||||||
                collision = true;
 | 
					                collision = true;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -103,6 +104,23 @@ public class Stein {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public void linieLöschen(){
 | 
				
			||||||
 | 
					        int bollomLine = board.getBoard().length - 1;
 | 
				
			||||||
 | 
					        for(int topLine =  board.getBoard().length - 1; topLine > 0; topLine--){
 | 
				
			||||||
 | 
					             int anZahl = 0;
 | 
				
			||||||
 | 
					             for(int col = 0; col < board.getBoard()[0].length; col++){
 | 
				
			||||||
 | 
					                 if(board.getBoard()[topLine][col] != null) {
 | 
				
			||||||
 | 
					                     anZahl++;
 | 
				
			||||||
 | 
					                 }
 | 
				
			||||||
 | 
					                 board.getBoard()[bollomLine][col] = board.getBoard()[topLine][col];
 | 
				
			||||||
 | 
					             }
 | 
				
			||||||
 | 
					             if(anZahl < board.getBoard()[0].length){
 | 
				
			||||||
 | 
					                 bollomLine--;
 | 
				
			||||||
 | 
					             }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public void render(Graphics g){
 | 
					public void render(Graphics g){
 | 
				
			||||||
    for(int row=0;row< coords.length;row++){
 | 
					    for(int row=0;row< coords.length;row++){
 | 
				
			||||||
        for(int col = 0;col< coords[0].length;col++){
 | 
					        for(int col = 0;col< coords[0].length;col++){
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								userhighscore.db
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								userhighscore.db
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user