jeu pacman

Dependencies:   BSP_DISCO_F746NG

classepac.h

Committer:
mickaelul
Date:
2022-07-12
Revision:
6:845cfd545a41

File content as of revision 6:845cfd545a41:

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){

    }
}