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: Sprites/Sprites.h
- Revision:
- 50:65ba437510f8
- Parent:
- 49:9bea7089b657
- Child:
- 51:a4b5ded0b727
--- a/Sprites/Sprites.h Wed Apr 24 16:45:47 2019 +0000 +++ b/Sprites/Sprites.h Wed Apr 24 16:50:37 2019 +0000 @@ -95,6 +95,7 @@ double kx[5]; /**< key x position*/ double ky[5]; /**< key y position*/ }; + /** Enemy position and movement struct */ struct enemies_init { bool eflag[5]; /**< initialise enemy flag array identifies each key individually */ @@ -103,6 +104,7 @@ int counter[5]; /**< enemy counter, counts pixels moved */ int distance[5];/**< distance enemy will travel before turning round */ }; + /** Solid blocks struct */ struct Solid_blocks_init { double bx[5]; /**< block x position array identifies each block individually */ @@ -111,7 +113,8 @@ }; /////////////structs for populating up to 6 levels////////////////// -/** Enemy location for each level */ + +/** Enemy locations for each level struct */ struct Enemies { double ex[5]; /**< enemy x positions for each level */ double ey[5]; /**< enemy y positions for each level */ @@ -119,28 +122,28 @@ int d[5]; /**< enemy travel distances for each level */ double v[5]; /**< varies enemies velocity */ }; - +/** Trap locations for each level struct */ struct Traps { double tx[5]; /**< traps x positions for each level */ double ty[5]; /**< traps y positions for each level */ }; - +/** Key locations for each level struct*/ struct Keys { double kx[5]; /**< keys x positions for each level */ double ky[5]; /**< keys y positions for each level */ }; - +/** block locations for each level struct*/ struct Solid_blocks { double bx[5]; /**< blocks x positions for each level */ double by[5]; /**< blocks y positions for each level */ }; - +/** sinking block locations for each level struct*/ struct Soft_blocks { double sx1[5]; /**< sinking blocks x1 positions for each level */ double sy[5]; /**< sinking blocks y positions for each level */ int sx2[5]; /**< sinking blocks x2 (length) positions for each level */ }; - +/** Exit location for each level struct */ struct Level_exit { double lx[5]; /**< Exit x position for each level */ double ly[5]; /**< Exit y position for each level */