I am learning OOP using c++ on a MicroBit by developing this simple game

Dependencies:   microbit

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Asteroid.h Source File

Asteroid.h

00001 #include "Sprite.h"
00002 
00003 class Asteroid: public Sprite{
00004     public:
00005     void move(){
00006         m_y = (m_y + 1) % 5;
00007     }
00008 };