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

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
主站蜘蛛池模板: 资溪县| 新丰县| 贞丰县| 栾川县| 涿鹿县| 鄢陵县| 邻水| 通城县| 张北县| 靖边县| 金寨县| 嘉义市| 襄城县| 红桥区| 彭泽县| 五指山市| 南昌市| 青河县| 邵东县| 勃利县| 自贡市| 陇南市| 阿鲁科尔沁旗| 盘锦市| 读书| 德兴市| 德安县| 濉溪县| 高青县| 宜章县| 定安县| 越西县| 太白县| 含山县| 河池市| 潢川县| 剑河县| 昌吉市| 克山县| 马公市| 广灵县|