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: SpaceInvadersEngine/SpaceInvadersEngine.cpp
- Revision:
- 2:6c1d7aa20e81
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SpaceInvadersEngine/SpaceInvadersEngine.cpp Wed Apr 03 15:37:52 2019 +0000 @@ -0,0 +1,22 @@ +#include "SpaceInadersEngine.h" + + +SpaceInadersEngine::SpaceInadersEngine() +{ + +} + +SpaceInadersEngine::~SpaceInadersEngine() +{ + +} + + +void SpaceInadersEngine::init(int Spaceship_width,int Spaceship_height,int ball_size,int speed) +{ + + // initialise the game parameters + _Spaceship_width = Spaceship_width; + _Spaceship_height = Spaceship_height; + _ball_size = ball_size; + _speed = speed;