座標を変換することで
見た目を変化させることができます。
3Dに見えるけど実際には2Dの平面ですからね。
look is change to convert coordinate.
you see 3d but you are seeing moniter is 2d.
次回
出屋敷プログラミング教室のブログ
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.
次回