ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Embed: (wiki syntax)

« Back to documentation index

Stars Class Reference

Stars Class Reference

Stars Class. More...

#include <stars.h>

Public Member Functions

void updateAndDrawSmallStars ()
 draws small stars on the screen.
void updateAndDrawMediumStars ()
 draws medium stars on the screen.
void starsSpawnDelay ()
 A separate function for delaying the stars spawn time.

Detailed Description

Stars Class.

Manages, updates and draws the background stars.

Author:
Dmitrijs Griskovs
Date:
15/04/2019

Definition at line 10 of file stars.h.


Member Function Documentation

void starsSpawnDelay (  )

A separate function for delaying the stars spawn time.

Definition at line 63 of file stars.h.

void updateAndDrawMediumStars (  )

draws medium stars on the screen.

when a medium star is active, this function updates the position and draws it on the screen. Also, When the star leaves the screen limits it deactivates the star for a new star to fly.

Definition at line 50 of file stars.h.

void updateAndDrawSmallStars (  )

draws small stars on the screen.

when a small star is active, this function updates the position and draws it on the screen. Also, When the star leaves the screen limits it deactivates the star for a new star to fly.

Definition at line 32 of file stars.h.