ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

Sprite/Background.h

Committer:
el19tb
Date:
2020-05-27
Revision:
61:3714af9caab6
Parent:
56:2797166656e0

File content as of revision 61:3714af9caab6:

#ifndef BACKGROUND_H
#define BACKGROUND_H

const int danger_zone[7][83] = {
    
    { 0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0 },
    { 0,0,1,1,0,0,0,1,0,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,1,1,0,0,0,1,0,1,0,0,0,0,1,1,0,0,0,1,0,1,0 },
    { 0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1 },
    { 0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,1,0,0,0,0,1 },
    { 0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,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,1,1,1,1,1,1,0,1,1,1,1,1 }
      
};

const int goal_post[8][18] = {
    
    { 0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0 },
    { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 },
    { 1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1 },
    { 1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1 },
    { 1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1 },
    { 1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1 },
    { 1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1 },
    { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
    
};

const int frog[8][12] = {
    
    { 0,0,1,1,1,1,1,1,1,1,0,0 },
    { 0,1,1,0,0,1,1,0,0,1,1,0 },
    { 0,1,1,0,0,1,1,0,0,1,1,0 },
    { 0,1,1,1,1,1,1,1,1,1,1,0 },
    { 0,1,1,1,0,1,1,0,1,1,1,0 },
    { 0,1,0,1,1,1,1,1,1,0,1,0 },
    { 0,1,0,0,0,0,0,0,0,0,1,0 },
    { 0,0,1,1,1,1,1,1,1,1,0,0 }
    
};

const int frogger_intro[36][43] = {
    
    { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },
    { 0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0 },
    { 0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0 },
    { 0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0 },
    { 0,0,0,0,0,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