compose-tetris
compose-tetris copied to clipboard
🧱 A tetris game fully built using Jetpack Compose
Hey, we have the AppIcon.kt but how can we use it to do the app's icon ?
After starting the game, long pressing the down arrow keys will cause a crash. lateinit var ticker needs to be promoted to a member variable
以绘制左上部分举例: 注释掉的是原本的代码 我个人理解是按x轴的中心去绘制,然后垂直下滑到y轴的中心点。因为x和y的边长不一样。 但是代码的两个点的y,都看不明白是啥意思。并不是在轴的中心点。 sample:  ``` var path = Path().apply { moveTo(topLef.x, topLef.y) lineTo(topRight.x, topRight.y) lineTo( topRight.x / 2 + topLef.x / 2, // topLef.y + topRight.x / 2...