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
RosenEngine/RosenEngine.cpp
- Committer:
- ikenna1
- Date:
- 2019-03-05
- Revision:
- 5:bb6edc5b5be3
- Parent:
- 4:740e14ebbc97
- Child:
- 7:ed5870cfb3e0
File content as of revision 5:bb6edc5b5be3:
#include "RosenEngine.h" // Constructor RosenEngine::RosenEngine() { } // Destructor RosenEngine::~RosenEngine() { } // Checks if a mission has been completed and if it has return new mission number void RosenEngine::init(int ship_speed,int ship_width,int ship_xpos,int ship_ypos) { // initialise the game parameters _ship_speed = ship_speed; _ship_width = ship_width; _ship_xpos = ship_xpos; _ship_ypos = ship_ypos; } void RosenEngine::read_input(Gamepad &pad) { Vector2D mapped_coord = pad.get_coord(); float _xjoystick = mapped_coord.x; float _yjoystick = mapped_coord.y; }