
jeu pacman
Dependencies: BSP_DISCO_F746NG
Diff: classepac.h
- Revision:
- 6:845cfd545a41
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/classepac.h Tue Jul 12 14:11:18 2022 +0000 @@ -0,0 +1,28 @@ +class Plateau { + private : + + int medianne; + char mur[][]; + String score; + tailleX = 50 ; + tailleY = 40 ; + tailleBut = 20; + medianne = 50; + + public Plateau() { + + for(int y=0;y<tailleY;y++){ + for(int x = 0; x<tailleX; x++){ + if(x>tailleX/2- tailleBut/2 && x<tailleX/2+tailleBut/2 && (y==0 || y == tailleY-1)) mur[y][x] = '0'; + else if(y==0 || y == tailleY-1 ) mur[y][x] = '_'; + else if(x==0 || x == tailleX-1) mur[y][x] = '|'; + + else mur[y][x] = ' '; + } + } + } + + public int contenuCase (int x, int y){ + + } +} \ No newline at end of file