質問編集履歴
1
文章を修正中
title
CHANGED
File without changes
|
body
CHANGED
@@ -71,8 +71,8 @@
|
|
71
71
|
//斜め移動
|
72
72
|
if (ud == true && rl == true)
|
73
73
|
{
|
74
|
-
playerPosition.x += speed.x
|
74
|
+
playerPosition.x += speed.x * 0.70710678118;
|
75
|
-
playerPosition.y += speed.y
|
75
|
+
playerPosition.y += speed.y * 0.70710678118;
|
76
76
|
}
|
77
77
|
else {
|
78
78
|
//そうじゃないとき
|