https://www.youtube.com/watch?v=ODLzYI4d-J8
转载自油管Zigurous,链接以上
Learn to make the classic 2D arcade game Tetris in Unity. Tetris is a tile-matching video game created in 1984. In Tetris, players complete lines by moving differently shaped pieces, which descend onto the playing field. The completed lines disappear and grant the player points, and the player can proceed to fill the vacated spaces. The game ends when the playing field is filled. The longer the player can delay this inevitable outcome, the higher their score will be.
学习在 Unity 中制作经典的 2D 街机游戏俄罗斯方块。 俄罗斯方块是一款创建于 1984 年的拼图视频游戏。在俄罗斯方块中,玩家通过移动不同形状的棋子来完成线条,这些棋子会落到比赛场地上。 完成的线条消失并授予玩家积分,玩家可以继续填补空出的空间。 当比赛场地填满时,比赛结束。 玩家可以延迟这个不可避免的结果的时间越长,他们的分数就会越高。
0:00 - Introduction
1:01 - Project Creation
1:56 - Importing Sprites
4:18 - Scene Setup
7:23 - Tilemap Setup
12:33 - Tetromino Data
26:00 - Spawning / Setting
43:02 - Movement
57:43 - Rotation
1:10:55 - Wall Kicks
1:21:58 - Steps & Locks
1:31:50 - Line Clears
1:43:35 - Ghost Piece
1:56:51 - Outro
🖥️ Source code and assets: https://github.com/zigurous/unity-tetris-tutorial
👍 Subscribe for more Unity tutorials: https://www.youtube.com/c/zigurous?sub_confirmation=1
💬 Join our Discord community: https://discord.gg/DdYyWVb
👑 Become a Patreon supporter: https://patreon.com/zigurous
❤️ Support my work: https://www.paypal.com/donate?hosted_button_id=BGS8Y9U798JS8
⭐ Download my Unity assets: https://zigurous.com/assets
····················································································
► Learn more about my work: https://zigurous.com
► Follow for news and updates: https://twitter.com/zigurous