File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ L: ホールド
1616
1717スーパーローテーションシステム: 実装済
1818
19- ネクスト表示: 未実装
19+ ネクスト表示: 実装済
2020
2121![ tetris] ( https://user-images.githubusercontent.com/63438515/134529925-9f04f9af-06ed-4fc4-94a7-81bc0edfaa92.gif )
Original file line number Diff line number Diff line change @@ -127,21 +127,16 @@ impl Lienzo {
127127 }
128128
129129 fn place_check ( & mut self , now : chrono:: DateTime < chrono:: Local > ) {
130- println ! ( "delta: {}" , now. timestamp_millis( ) - self . now_placement. timestamp_millis( ) ) ;
131130 let droppable = self . grid . next . droppable ( & self . grid . colors ) ; // dropできるのかどうか
132131 if droppable {
133- println ! ( "droppable" ) ;
134132 self . now_placement = now;
135133 } else if now. timestamp_millis ( ) - self . now_placement . timestamp_millis ( ) > Self :: PLACEMENT_LOCK_DOWN_DELTA {
136134 // droppable かつ 所定時間以上経過
137135 self . place_flag = true ;
138- println ! ( "now placing" ) ;
139136 self . grid . next . place ( & mut self . grid . colors ) ;
140137 self . grid . next = self . grid . get_mino ( ) ;
141138 self . now_placement = now;
142139 self . place_flag = false ;
143- } else {
144- println ! ( "waiting..." ) ;
145140 }
146141 }
147142
You can’t perform that action at this time.
0 commit comments