Su 200943147
Dependencies: Gamepad N5110 mbed
Diff: Shape/Shape.cpp
- Revision:
- 5:afa6592a4ba5
- Parent:
- 3:9dd35424cdfe
- Child:
- 6:e919a1fd1eed
--- a/Shape/Shape.cpp Sat Apr 29 13:10:21 2017 +0000 +++ b/Shape/Shape.cpp Sat Apr 29 14:33:25 2017 +0000 @@ -180,6 +180,7 @@ void Shape::Update() { int n=14; + ShapeArray[x+n][y]=0; ShapeArray[x+1+n][y]=0; ShapeArray[x+2+n][y]=0; @@ -188,32 +189,36 @@ ShapeArray[x+5+n][y]=0; ShapeArray[x+n][y+1]=0; + ShapeArray[x+5+n][y+1]=0; + + ShapeArray[x+n][y+2]=0; + ShapeArray[x+5+n][y+2]=0; + + ShapeArray[x+n][y+3]=0; + ShapeArray[x+5+n][y+3]=0; + + ShapeArray[x+n][y+4]=0; + ShapeArray[x+5+n][y+4]=0; + ShapeArray[x+1+n][y+1]=ShapeInit[l+1][k+1]; ShapeArray[x+2+n][y+1]=ShapeInit[l+2][k+1]; ShapeArray[x+3+n][y+1]=ShapeInit[l+3][k+1]; - ShapeArray[x+4+n][y+1]=ShapeInit[l+4][k+1]; - ShapeArray[x+5+n][y+1]=0; - ShapeArray[x+n][y+2]=0; ShapeArray[x+1+n][y+2]=ShapeInit[l+1][k+2]; ShapeArray[x+2+n][y+2]=ShapeInit[l+2][k+2]; ShapeArray[x+3+n][y+2]=ShapeInit[l+3][k+2]; ShapeArray[x+4+n][y+2]=ShapeInit[l+4][k+2]; - ShapeArray[x+5+n][y+2]=0; - ShapeArray[x+n][y+3]=0; ShapeArray[x+1+n][y+3]=ShapeInit[l+1][k+3]; ShapeArray[x+2+n][y+3]=ShapeInit[l+2][k+3]; ShapeArray[x+3+n][y+3]=ShapeInit[l+3][k+3]; ShapeArray[x+4+n][y+3]=ShapeInit[l+4][k+3]; - ShapeArray[x+5+n][y+3]=0; - ShapeArray[x+n][y+4]=0; ShapeArray[x+1+n][y+4]=ShapeInit[l+1][k+4]; ShapeArray[x+2+n][y+4]=ShapeInit[l+2][k+4]; ShapeArray[x+3+n][y+4]=ShapeInit[l+3][k+4]; ShapeArray[x+4+n][y+4]=ShapeInit[l+4][k+4]; - ShapeArray[x+5+n][y+4]=0; + }