develop-tetris-srs #11
Reference in New Issue
Block a user
Delete Branch "develop-tetris-srs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
srs und ein lock timer hatten echt noch dringend gefehlt, jetzt ist das Spiel vollendet! (vielleicht)
@@ -0,0 +20,4 @@case LEFT -> {return clockwise ? Orientation.NONE : Orientation.UPSIDE_DOWN;}default -> {ist default hier überhaupt erreichbar?
@@ -0,0 +3,4 @@import java.util.Map;import java.util.stream.IntStream;public final class RotationChecker {private static final Map<Orientation, int[][]> STANDARD_WALL_KICKS = Map.of(zeilenumbruch
@@ -238,1 +250,3 @@private void setActiveTetrominoDown() {private void scheduleTetrominoLock() {if(this.tetrominoLockTask == null || !this.tetrominoLockTask.isAlive())this.tetrominoLockTask = this.instance.scheduler().scheduleTask(() -> {tasks hierfür fühlen sich falsch an...
Wo kommen die Limits (500ms) her? Ist das im Original auch genau so?
Ja, die 500ms sind wie in den Tetris Guidelines. Allerdings gibt es dort keinen hard lock task, sondern einen Counter.
Änder ich um.
@@ -65,3 +68,4 @@}if(this.lost || this.paused) return;hier ein if, welches
left,rightundrotateabfängt undthis.stopTetrominoLockTask(false)macht ist glaub ich schöner als die 3 Methoden, die praktisch nur weiterreichen...@@ -0,0 +7,4 @@UPSIDE_DOWN;public Orientation rotated(boolean clockwise) {switch(this) {Das switch statement ließe sich etwas vereinfachen