![](/media/cache/profiles/a36470cf1f8e5aaf38466d65bd080699.jpg.50x50_q85.jpg)
Pong for Gamepad2
Embed:
(wiki syntax)
Show/hide line numbers
Paddle.h
00001 #ifndef PADDLE_H 00002 #define PADDLE_H 00003 00004 #include "mbed.h" 00005 #include "N5110.h" 00006 #include "Gamepad.h" 00007 00008 class Paddle 00009 { 00010 public: 00011 00012 Paddle(); 00013 ~Paddle(); 00014 void init(int x,int height,int width); 00015 void draw(N5110 &lcd); 00016 void update(Direction d,float mag); 00017 void add_score(); 00018 int get_score(); 00019 Vector2D get_pos(); 00020 00021 private: 00022 00023 int _height; 00024 int _width; 00025 int _x; 00026 int _y; 00027 int _speed; 00028 int _score; 00029 00030 }; 00031 #endif
Generated on Sat Jul 16 2022 18:01:16 by
![doxygen](doxygen.png)