Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: RosenEngine/RosenEngine.h
- Revision:
- 3:f9cd1a38d5c6
- Parent:
- 2:66a4e5d7a7cd
- Child:
- 4:740e14ebbc97
--- a/RosenEngine/RosenEngine.h Wed Feb 27 12:07:03 2019 +0000 +++ b/RosenEngine/RosenEngine.h Sat Mar 02 19:36:45 2019 +0000 @@ -12,35 +12,17 @@ public: RosenEngine(); ~RosenEngine(); - + /* + void RosenEngine::init(int ship_width,int ship_speed,int ship_x_pos,int ship_y_pos); + void init(int paddle_width,int paddle_height,int ball_size,int speed); void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd); - + */ private: - void check_wall_collision(Gamepad &pad); - void check_paddle_collisions(Gamepad &pad); - void check_goal(Gamepad &pad); - void print_scores(N5110 &lcd); - Paddle _p1; - Paddle _p2; - - int _paddle_width; - int _paddle_height; - int _ball_size; - int _speed; - - // x positions of the paddles - int _p1x; - int _p2x; - - Ball _ball; - - Direction _d; - float _mag; };