Linie Löschen
This commit is contained in:
parent
89071d4399
commit
3817308e0c
2
.idea/Tetris.iml
generated
2
.idea/Tetris.iml
generated
@ -10,7 +10,7 @@
|
||||
<orderEntry type="module-library" exported="">
|
||||
<library>
|
||||
<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>
|
||||
<JAVADOC />
|
||||
<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();
|
||||
return;
|
||||
}
|
||||
@ -91,18 +92,35 @@ public class Stein {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!collision) {
|
||||
if (!collision) {
|
||||
y++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
collision = true;
|
||||
}
|
||||
|
||||
} else {
|
||||
collision = true;
|
||||
}
|
||||
|
||||
beginTime = System.currentTimeMillis();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
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){
|
||||
for(int row=0;row< coords.length;row++){
|
||||
for(int col = 0;col< coords[0].length;col++){
|
||||
|
BIN
userhighscore.db
BIN
userhighscore.db
Binary file not shown.
Loading…
Reference in New Issue
Block a user