コードの意味はわかるが、
式の説明がうまくできないのは、
式の説明に慣れていないから。
i know this code,but formura expranation is difficult.
its just you use to do explain.
次回
出屋敷プログラミング教室のブログ
2点あれば直線が引けます。
曲線上の点が2つあれば、そこに角度を見出すことができますね。
we can draw line at two point .
by the way on the curve lines are same way of thing.
次回
キャラクターのステートを
切り替えることで
その時の動きをプログラミングすることができます。
ダメージを受けた、
吹っ飛ぶ
倒れる
立ち上がる
それぞれにステートを持たせる必要があります。
we changed character sprite state
so can do programming sprite actions.
when take damage,flies to back,down and stand up,every actions has need to status.
次回
計算の順番は
プログラミングでも大事なことです。
スプライトの動きがおかしいなと思ったら
計算式を見直しましょう。
calculation order is also important for programming code.
when your sprite is strange moving,you should check your programming code of calculation.
次回
すべてのスプライトが
共通の変数を見て各自状態を変化させます。
ステートマシンの処理方法ですね。
all of sprites watch common value and change themselves.
its process of state machine.
次回
プログラムを続ける場合は、
コードを読む能力が必要になります。
コピーして使っているコードは
再度確認も含めて読むことをおすすめします。
you should need to read codes if you become work for programmer.
when you copies other codes in your programming,you need to read again.
次回
正確にベクトル計算しなくても
それっぽい簡単な処理でごまかす、
ことはよくあることと思っています。
its useful case,they use simple process to its not truece process for real near by looking for real.that its my opinion.
次回
変数の名前をわかりやすくすると
処理の流れが追いやすくなります。
英語の力がすこし必要になりますね。
values name is better than easly to understund for programming process.
its need to your english understand comunication.
次回
ばねの動きは制御が難しいです。
変数を増やすと
コントロールがやりやすいですが、
今回は基本だけやりました。
spring action coding is difficult for control.
i think more add values to be better than control but made base coding in today.
次回
引き算をすることで
ものの向きを表現することができます。
普段何気なく使っている
算数がプログラムではとても重要な役割をしてくれますよ。
you can know vector when you use subtraction value to value.
its important useful tools in your normal life.
次回