From 9356a9a33757479b53ac5397fa0ea385390689ec Mon Sep 17 00:00:00 2001 From: ryosga Date: Tue, 31 May 2022 11:45:31 +0800 Subject: [PATCH] Update 08 Powerups.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改错字 --- docs/06 In Practice/2D-Game/08 Powerups.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/06 In Practice/2D-Game/08 Powerups.md b/docs/06 In Practice/2D-Game/08 Powerups.md index 98074e1..bded524 100644 --- a/docs/06 In Practice/2D-Game/08 Powerups.md +++ b/docs/06 In Practice/2D-Game/08 Powerups.md @@ -209,7 +209,7 @@ if (!Ball->Stuck && std::get<0>(result)) 在这里我们将小球的Stuck属性设置为它自己的Sticky属性,若**Stikcy**效果被激活,那么小球则会在与挡板接触时粘在上面,玩家不得不再次按下空格键才能释放它。 -在同样的DoCollisions函数中还有个为了实现**Pass-through**效果的类似小改动。当小球的PassThrough属性被设置为true时,我们不对非实习砖块做碰撞处理操作。 +在同样的DoCollisions函数中还有个为了实现**Pass-through**效果的类似小改动。当小球的PassThrough属性被设置为true时,我们不对非实心砖块做碰撞处理操作。 ```c++ Direction dir = std::get<1>(collision); @@ -334,4 +334,4 @@ void Game::Render() 你可以在下面找到所有更新后的代码(当关卡重置时我们同时重置所有道具效果): -- **Game**: [头文件](https://learnopengl.com/code_viewer.php?code=in-practice/breakout/game_powerups.h),[代码](https://learnopengl.com/code_viewer.php?code=in-practice/breakout/game_powerups) \ No newline at end of file +- **Game**: [头文件](https://learnopengl.com/code_viewer.php?code=in-practice/breakout/game_powerups.h),[代码](https://learnopengl.com/code_viewer.php?code=in-practice/breakout/game_powerups)