This commit is contained in:
syui 2025-04-18 08:45:41 +09:00
parent 05d3d9a689
commit f80367e17a
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 17 additions and 0 deletions

View File

@ -26,6 +26,7 @@
* [階段に登る](gasp/10_stairs.md)
* [武器を装備する](gasp/12_weapon.md)
* [NPCとの会話をAIにする](gasp/13_chatgpt.md)
* [ジャンプの高さを変更する](gasp/14_jump.md)
* [control rig sample](crs/README.md)
* [CRでキャラクターを動かす](crs/01_character.md)
* [ボスを作る](crs/02_boss.md)

16
book/gasp/14_jump.md Normal file
View File

@ -0,0 +1,16 @@
# ジャンプの高さを変更する
特殊ジャンプを実装して、敵の近くに着地した場合に特別な技を繰り出す演出を目指します。
<iframe width="100%" height="415" src="https://www.youtube.com/embed/q3UcM8e7B0g?mute=1&rel=0&showinfo=0&controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
特殊なジャンプはクールタイムが存在し、10秒間に一回実行できます。通常ジャンプとキーを別にしてもいいですが、同じキーにしたほうがシンプルでいいと思います。
1. jump drop (no collision)
2. cool time
3. jump attack
まず`skill:1`の場合はjump dropが発動します。発動すると`skill:0`になります。もし着地時にboss(enemy)のcollisionにあたっていると、jump attackが発動します。
<iframe src="https://blueprintue.com/render/r4d91x-8/1" scrolling="no" allowfullscreen style="width:100%;height:400px"></iframe>