I would appreciate it if you could press ⭐️ and ❤. Sorry, the English explanation is below. ちゃんとしたモバイル対応した作品を作ろうと思ったので作成。 -------------------------日本語------------------------- ⭐️と❤を押してくれると嬉しいです。 ☆移動方法 1.キーボード操作 1-1.矢印キー 1-2.wasd 2.モバイル操作 2-1.スティック 2-2スティック外をタップしてスライド ※2つ以上の操作を同時にすると、早くなります。 ☆使い方 Player Controlで全部処理しています Player Controlには、定義がいくつかあり 1.lists reset 2.stick 3.mouse state 4.mouse delta 5.Key Detection の5つです。 1.の「lists reset」は、処理をする前の下準備。 2.の「stick」は、スティックの描画、計算、判定をしています。またスティックの位置は、中心から端までの距離を1とした距離と中心からの距離で保存されます。listsの1~2番目。 3.の「mouse state」は、マウスのクリック、スライド、何もしていないの3つを判別できます。 4.の「mouse delta」1f前からのマウスの移動量を計算します。 5.の「Key Detection」押されたキーを調べます。 ※2~5は、ずっと実行しないと動作しません。 -------------------------English------------------------- ☆How to Move 1. Keyboard Control 1-1. Arrow Keys 1-2. WASD 2. Mobile Control 2-1. Stick 2-2. Tap Outside the Stick and Slide *Performing two or more controls simultaneously will be faster. ☆How to Use All controls are handled by Player Control. Player Control has several definitions: 1. Lists Reset 2. Stick 3. Mouse State 4. Mouse Delta 5. Key Detection There are five of them. 1. "Lists Reset" is the preparatory step before processing. 2. "Stick" draws, calculates, and determines the stick. The stick position is saved as a distance from the center to the edge, with the distance from the center set to 1. Lists 1 and 2. 3. "Mouse State" can distinguish between mouse clicks, slides, and no action. 4. "Mouse Delta" calculates the amount of mouse movement from 1 frame ago. 5. "Key Detection" checks which keys were pressed. *Steps 2 to 5 must be executed continuously for this to work. -------------------------検索-search------------------------- mobile モバイル library ライブラリ 対応 cat 猫 #all #tutorial