bird

Dependencies:   mbed

structure_2/structure_2.h

Committer:
1013373474
Date:
2019-05-03
Revision:
0:3887ebee1b37
Child:
2:fb9c05867677

File content as of revision 0:3887ebee1b37:

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



struct Data2{
    int mm; //障碍物左上角的点的横坐标
    int nn; // 障碍物间隔左上角点的纵坐标
    int qq; //the second
    int oo; // the third
    int pp; // the second  heng zuobiao
    int ee; // the third  heng zuobiao
    int tt;// 分数
    };
    
    
    
class structure_2
{
public:
   
   void init(int size,int speed);
   void draw(N5110 &lcd);
   void init();
   Data2 get_data2();
   void update();
 
    
private:
  int _mm; //障碍物左上角的点的横坐标
  int _nn; // 障碍物间隔左上角点的纵坐标
  int _qq; //the second
  int _oo; // the third
  int _pp; // the second  heng zuobiao
  int _ee; // the third  heng zuobiao
  int _tt; // the score
  Data2 _data2;
};