029第12章 A SHIP THAT FIRES BULLETS_續6_
IPFS
💛20230129 晨讀感言:
💔我們習慣使用的 十進位(含小數點) ,與在電腦螢幕 上使用screen.get_rect() 方法 來標示位置 所使用的 rect.x 是不同 的資料型態,一個是 float ,另一個 是 int 。
💛晨讀摘要:
💚242 We’re using decimal values for the speed setting to give us finer control of the ship’s speed when we increase the tempo of the game later on. However, rect attributes such as x store only integer values, so we need to make some modifications to Ship。
from:《python crash course》
Like my work? Don't forget to support and clap, let me know that you are with me on the road of creation. Keep this enthusiasm together!
- Author
- More