Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Flutterだけでテトリス作ってみた

Aoi Umigishi
February 29, 2024

 Flutterだけでテトリス作ってみた

第2回Flutter Nightでの登壇資料です。

Aoi Umigishi

February 29, 2024
Tweet

More Decks by Aoi Umigishi

Other Decks in Programming

Transcript

  1. F l u t t e r だ け で

    テ ト リ ス 作 っ て み た F lu t t e r N i ght ���� 年 �� 月 �� 日 Aoi Umigishi
  2. 名前: Aoi Umigishi ( 東 優太 ) SNS 等: 職業:

    フリーランスエンジニア (Flutter/TypeScript) 趣味:音楽、ゲーム、 etc ... 自己紹介
  3. 作成ポイント ・テトリスのモデル化 [(false , 黒 ), (true , 紫 ),

    (false , 黒 )], [(true , 紫 ), (true , 紫 ), (true , 紫 )] [ ] List<List<PanelModel>> ブロックを PanelModel でモデル化 ブロックを PanelModel でモデル化
  4. 作成ポイント ・状態管理 (StatefulWidget) ゲーム画面 ボタン FieldState 解決方法 : InheritedWidget の利用

    TetrisController down (InheritedWidget) _InheritedTetris TetrisController.of(context).fieldState TetrisController.of(context).down