官术网_书友最值得收藏!

Events and Basic Game Mechanisms

In the last chapter, we saw how to add dependencies into a project thanks to Cargo and the basics of the SDL2 library.

We now have all the Rust basics in order to write the Tetris game. Time to look at how we will actually write Tetris.

In this chapter, we will cover the following topics:

  • Tetrimino
  • Creating tetriminos
  • Generating a tetrimino
  • Tetris struct
  • Interacting with the game map
  • SDL events
  • Score, level, lines sent
主站蜘蛛池模板: 海原县| 同江市| 新竹市| 台北市| 桐城市| 都匀市| 滕州市| 吴桥县| 延津县| 阿拉善右旗| 尖扎县| 涡阳县| 从江县| 上虞市| 伊金霍洛旗| 莱阳市| 高青县| 卢湾区| 新乡县| 罗定市| 五指山市| 团风县| 奉新县| 射阳县| 扬中市| 育儿| 津南区| 闻喜县| 绥阳县| 邯郸县| 赞皇县| 左贡县| 宁津县| 清河县| 临桂县| 左云县| 定日县| 宣化县| 安阳市| 台江县| 双辽市|