質問編集履歴
1
説明を追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
テトリスを作っていますがうまくうごきません。
|
2
|
+
|
3
|
+
1x4のブロックただまっすぐおとしていくプログラムです。1つ目一番下の枠まで落ち、2つめは1つ目のブロックの1枠上に俳画され、3つ目が俳画されなくなって動かなくなります。
|
4
|
+
|
1
5
|
using System;
|
2
6
|
|
3
7
|
using System.Windows.Forms;
|
@@ -128,13 +132,13 @@
|
|
128
132
|
|
129
133
|
{
|
130
134
|
|
131
|
-
case 1: im[getout + p6].Image = Image.FromFile("C:\\Users\\
|
135
|
+
case 1: im[getout + p6].Image = Image.FromFile("C:\\Users\\\\Pictures\\TETRIS\\bar.jpg");
|
132
136
|
|
133
137
|
break;
|
134
138
|
|
135
139
|
case 2:
|
136
140
|
|
137
|
-
im[getout + p6].Image = Image.FromFile("C:\\Users\\
|
141
|
+
im[getout + p6].Image = Image.FromFile("C:\\Users\\\\Pictures\\TETRIS//.bar.jpg");
|
138
142
|
|
139
143
|
break;
|
140
144
|
|
@@ -232,11 +236,15 @@
|
|
232
236
|
|
233
237
|
this.Invalidate();
|
234
238
|
|
239
|
+
if (UI <= 15)
|
240
|
+
|
241
|
+
{
|
242
|
+
|
235
|
-
UI++;
|
243
|
+
UI++;
|
244
|
+
|
245
|
+
|
246
|
+
|
236
|
-
|
247
|
+
}
|
237
|
-
|
238
|
-
|
239
|
-
|
240
248
|
|
241
249
|
}
|
242
250
|
|
@@ -286,7 +294,7 @@
|
|
286
294
|
|
287
295
|
}
|
288
296
|
|
289
|
-
if (UI <= 1
|
297
|
+
if (UI <= 14)
|
290
298
|
|
291
299
|
{
|
292
300
|
|
@@ -318,7 +326,7 @@
|
|
318
326
|
|
319
327
|
|
320
328
|
|
321
|
-
if (WW == 1 || UI > 1
|
329
|
+
if (WW == 1 || UI >= 16)
|
322
330
|
|
323
331
|
{
|
324
332
|
|
@@ -370,11 +378,11 @@
|
|
370
378
|
|
371
379
|
{
|
372
380
|
|
373
|
-
case 1: im[getout + p1].Image = Image.FromFile("C:\\Users\\
|
381
|
+
case 1: im[getout + p1].Image = Image.FromFile("C:\\Users\\\\Pictures\\TETRIS\\bar.jpg");
|
374
382
|
|
375
383
|
break;
|
376
384
|
|
377
|
-
case 2: im[getout + p1].Image = Image.FromFile("C:\\Users\\
|
385
|
+
case 2: im[getout + p1].Image = Image.FromFile("C:\\Users\\\\Pictures\\TETRIS\\squre.jpg");
|
378
386
|
|
379
387
|
break;
|
380
388
|
|
@@ -430,7 +438,7 @@
|
|
430
438
|
|
431
439
|
{
|
432
440
|
|
433
|
-
WK = Image.FromFile("C:\\Users\\
|
441
|
+
WK = Image.FromFile("C:\\Users\\\\Pictures\\TETRIS\\WAKU.png");
|
434
442
|
|
435
443
|
|
436
444
|
|