test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
20
.config/Code/User/History/a6a6392/g2GW.cpp
Normal file
20
.config/Code/User/History/a6a6392/g2GW.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef LEVEL2_H
|
||||
#define LEVEL2_H
|
||||
|
||||
#include "GameLevel.h"
|
||||
|
||||
class Level2 : public GameLevel{
|
||||
public:
|
||||
Level2(){
|
||||
for(int i=0;i<25;i++){
|
||||
for(int j=0;j<15;j++){
|
||||
if(i<5 && j<5) bricks[i][j] = new Brick();
|
||||
else if(i<10 && j<10) bricks[i][j] = new Brick();
|
||||
else if(i<15 && j<15) bricks[i][j] = new Brick();
|
||||
else if(i<20 && j<10 && j>5) bricks[i][j] = new Brick();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue