質問編集履歴
4
説明の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Ballの
|
1
|
+
dirとspeedの引数をball = Ball(ball_color, ball_rect, 320, 10)と合わせたいのですがどうすればいいでしょう
|
2
2
|
|
3
3
|
```
|
4
4
|
|
3
説明の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,15 +26,15 @@
|
|
26
26
|
|
27
27
|
class Block:
|
28
28
|
|
29
|
-
def __init__(self, color, rect
|
29
|
+
def __init__(self, color, rect):
|
30
30
|
|
31
31
|
self.color = color
|
32
32
|
|
33
33
|
self.rect = rect
|
34
34
|
|
35
|
-
|
35
|
+
|
36
36
|
|
37
|
-
|
37
|
+
|
38
38
|
|
39
39
|
def draw(self):
|
40
40
|
|
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
self.dir = 320
|
52
52
|
|
53
|
-
|
53
|
+
|
54
54
|
|
55
55
|
def draw(self):
|
56
56
|
|
2
説明の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,13 +26,15 @@
|
|
26
26
|
|
27
27
|
class Block:
|
28
28
|
|
29
|
-
def __init__(self, color, rect):
|
29
|
+
def __init__(self, color, rect,dir=320,speed=10):
|
30
30
|
|
31
31
|
self.color = color
|
32
32
|
|
33
33
|
self.rect = rect
|
34
34
|
|
35
|
-
|
35
|
+
self.dir = dir
|
36
|
+
|
37
|
+
self.speed = speed
|
36
38
|
|
37
39
|
def draw(self):
|
38
40
|
|
1
説明の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
Ballの引数を5つにしなければならないのでしょうか?やり方を教えてください。
|
2
|
+
|
1
3
|
```
|
2
4
|
|
3
5
|
import sys
|