回答編集履歴

3

見直しキャンペーン中

2023/07/30 09:54

投稿

TN8001
TN8001

スコア9326

test CHANGED
@@ -181,3 +181,4 @@
181
181
  }
182
182
  }
183
183
  ```
184
+ ![アプリ動画](https://ddjkaamml8q8x.cloudfront.net/questions/2023-07-30/6d936f79-a23b-459e-bead-2d8757221a85.gif)

2

答え出ちゃってたw

2022/06/20 15:06

投稿

TN8001
TN8001

スコア9326

test CHANGED
@@ -61,8 +61,8 @@
61
61
 
62
62
  textAlign(LEFT, BASELINE);
63
63
  text("SCORE: " + score, 10, 50);
64
- textAlign(LEFT, BOTTOM);
64
+ //textAlign(LEFT, BOTTOM);
65
- text(answer, 10, 250);
65
+ //text(answer, 10, 250);
66
66
  textAlign(CENTER, BOTTOM);
67
67
  text(input, 0, 0, width, 250);
68
68
 

1

バグってた^^;

2022/06/20 15:04

投稿

TN8001
TN8001

スコア9326

test CHANGED
@@ -61,8 +61,8 @@
61
61
 
62
62
  textAlign(LEFT, BASELINE);
63
63
  text("SCORE: " + score, 10, 50);
64
- //textAlign(LEFT, BOTTOM);
64
+ textAlign(LEFT, BOTTOM);
65
- //text(answer, 10, 250);
65
+ text(answer, 10, 250);
66
66
  textAlign(CENTER, BOTTOM);
67
67
  text(input, 0, 0, width, 250);
68
68
 
@@ -85,8 +85,8 @@
85
85
  input += s;
86
86
  if (input.equals(answer)) { // 正解
87
87
  score++;
88
+ ps.addParticle(new PVector(imgX, 150), question);
88
89
  imgX = 1000; // 範囲外に飛ばすことで、matoでの再設定を誘発させる
89
- ps.addParticle(new PVector(imgX, 150), question);
90
90
  }
91
91
  }
92
92
 
@@ -154,7 +154,6 @@
154
154
  PVector position;
155
155
  PVector velocity = PVector.random3D().mult(10);
156
156
  float lifespan = 255;
157
- float rotation;
158
157
  char c;
159
158
  Particle(PVector l, char c) {
160
159
  position = l.copy();