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

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
主站蜘蛛池模板: 资中县| 南宁市| 额敏县| 凌源市| 南皮县| 腾冲县| 阳山县| 茶陵县| 苍南县| 宁蒗| 娄底市| 友谊县| 昭觉县| 忻州市| 莱西市| 皮山县| 绩溪县| 贵港市| 佛坪县| 镇宁| 邢台市| 确山县| 鲁甸县| 雷山县| 丰台区| 东平县| 沁阳市| 柳江县| 伊金霍洛旗| 祁阳县| 九寨沟县| 哈尔滨市| 西昌市| 宜黄县| 辽阳县| 盖州市| 尖扎县| 临泽县| 合川市| 芜湖市| 无极县|