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.
My_game_clases/Functions.h
- Committer:
- thestudent
- Date:
- 2020-04-01
- Revision:
- 6:33bdb54c2c88
- Child:
- 7:82079de8bcd6
File content as of revision 6:33bdb54c2c88:
#ifndef FUNCTIONS_H #define FUNCTIONS_H //includes #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Objects.h" class Functions { public: Functions(); void ball_position( N5110 &lcd,Objects &objects);//governs the balls movement private: int _initial_radiuss;//holds the intial ball radiuss which is 2 int _movement_x_pos; // moves the ball across the screen int _movement_y_counter; //sets the gravity with which the ball will fall int _time;//the time as in the y postion of the ball which will governed by equation y = _y_initial + _movement_y_counter * _time^2 int _ball_y_pos;//balls_y_position int _time_incrementer;//increments time value int _ball_x_incrementer;//increments movement_x_pos value int _delta_r; // defines the ball size }; #endif