Balint Bogdan SnekGame

Dependencies:   FoodLibrary Gamepad N5110 SnekGame mbed

main.cpp

Committer:
Nefos
Date:
2017-03-20
Revision:
0:789c74742603
Child:
1:a222ad7a05b9

File content as of revision 0:789c74742603:

#include "mbed.h"
#include "N5110.h"


void loadMap();
void getEnemy();
void bomb();

//set LCD pins
int heroChar[4]=(1,1,0,1);
int bomb[4]=(0,1,0,1);
int boulderLocation[4][8]={}// set the coordinate for boulder, if 00, boulder does not exist

int main()
{
    lcd.init();//initializing display
    
    while (true) {
       //draw the map
       
       //draw top line (life)
       
       //draw boulders
       
       //draw characters at certain position
       
       //draw bomb
       
       //refresh
        wait(0.2f);
    }
}


void loadMap(){
    //get the size of the map and 
    //use draw line for large lines
    //set pixel for small bts
    //look for boulders , if coordinate 00 ignore
    //draw boulder as bomb
    }

void drawHero(){
    //get the position first
    //draw {1,2} in first line
    //flip [3,4] for walking
    
    }
    

void bomb(){
    //get location
    //draw bomb
    //flip bomb do show its a bomb
    //if a boulder is at the range set0
    
    }