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
Sprite/Background.h@51:4c1f49729d88, 2020-05-25 (annotated)
- Committer:
- el19tb
- Date:
- Mon May 25 16:58:50 2020 +0000
- Revision:
- 51:4c1f49729d88
- Parent:
- 50:9ffeb4a10c0a
- Child:
- 53:b6bb4dab7823
setup level progression, level two is properly loaded now
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el19tb | 44:f02510eeb165 | 1 | #ifndef BACKGROUND_H |
el19tb | 44:f02510eeb165 | 2 | #define BACKGROUND_H |
el19tb | 14:6fe667ec957e | 3 | |
el19tb | 44:f02510eeb165 | 4 | /* |
el19tb | 49:6cad8b6ec5f2 | 5 | { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, |
el19tb | 49:6cad8b6ec5f2 | 6 | { 0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, |
el19tb | 49:6cad8b6ec5f2 | 7 | { 0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, |
el19tb | 49:6c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0,0,1,0,0,1,0,1,0,0,0,1 }, |
el19tb | 49:6cad8b6ec5f2 | 22 | { 0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1,0,0,1,0,1,0,0,0,1,0,0,1 }, |
el19tb | 49:6cad8b6ec5f2 | 23 | { 0,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,0 } |
el19tb | 14:6fe667ec957e | 24 | |
el19tb | 14:6fe667ec957e | 25 | }; |
el19tb | 14:6fe667ec957e | 26 | |
el19tb | 49:6cad8b6ec5f2 | 27 | const int safety_zone[4][83] = { |
el19tb | 49:6cad8b6ec5f2 | 28 | |
el19tb | 49:6cad8b6ec5f2 | 29 | { 0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,1,1,1,0,0,1,1,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,1,1,0,1,1,1,1,1 }, |
el19tb | 49:6cad8b6ec5f2 | 30 | { 1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,1,1,1,0,0,1,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0 }, |
el19tb | 49:6cad8b6ec5f2 | 31 | { 1,0,0,0,0,0,1,1,0,0,0,1,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0,0,0,1,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,0,0,0,0 }, |
el19tb | 49:6cad8b6ec5f2 | 32 | { 0,1,1,0,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,1,1,0,1,1,1,1,1 } |
el19tb | 49:6cad8b6ec5f2 | 33 | |
el19tb | 16:8a65cccd9685 | 34 | }; |
el19tb | 16:8a65cccd9685 | 35 | |
el19tb | 49:6cad8b6ec5f2 | 36 | const int goal_post[8][12] = { |
el19tb | 49:6cad8b6ec5f2 | 37 | |
el19tb | 49:6cad8b6ec5f2 | 38 | { 0,0,1,1,1,1,1,1,1,1,0,0 }, |
el19tb | 50:9ffeb4a10c0a | 39 | { 1,1,1,1,1,1,1,1,1,1,1,1 }, |
el19tb | 51:4c1f49729d88 | 40 | { 1,1,0,0,0,0,0,0,0,0,1,1 }, |
el19tb | 51:4c1f49729d88 | 41 | { 1,1,0,0,0,0,0,0,0,0,1,1 }, |
el19tb | 51:4c1f49729d88 | 42 | { 1,1,0,0,0,0,0,0,0,0,1,1 }, |
el19tb | 51:4c1f49729d88 | 43 | { 1,1,0,0,0,0,0,0,0,0,1,1 }, |
el19tb | 51:4c1f49729d88 | 44 | { 1,1,0,0,0,0,0,0,0,0,1,1 }, |
el19tb | 51:4c1f49729d88 | 45 | { 0,0,0,0,0,0,0,0,0,0,0,0 } |
el19tb | 49:6cad8b6ec5f2 | 46 | |
el19tb | 16:8a65cccd9685 | 47 | }; |
el19tb | 16:8a65cccd9685 | 48 | |
el19tb | 50:9ffeb4a10c0a | 49 | const int frog[8][12] = { |
el19tb | 50:9ffeb4a10c0a | 50 | |
el19tb | 50:9ffeb4a10c0a | 51 | { 0,0,1,1,1,1,1,1,1,1,0,0 }, |
el19tb | 50:9ffeb4a10c0a | 52 | { 0,1,1,0,0,1,1,0,0,1,1,0 }, |
el19tb | 50:9ffeb4a10c0a | 53 | { 0,1,1,0,0,1,1,0,0,1,1,0 }, |
el19tb | 50:9ffeb4a10c0a | 54 | { 0,1,1,1,1,1,1,1,1,1,1,0 }, |
el19tb | 50:9ffeb4a10c0a | 55 | { 0,1,1,1,0,1,1,0,1,1,1,0 }, |
el19tb | 50:9ffeb4a10c0a | 56 | { 0,1,0,1,1,1,1,1,1,0,1,0 }, |
el19tb | 50:9ffeb4a10c0a | 57 | { 0,1,0,0,0,0,0,0,0,0,1,0 }, |
el19tb | 50:9ffeb4a10c0a | 58 | { 0,0,1,1,1,1,1,1,1,1,0,0 } |
el19tb | 50:9ffeb4a10c0a | 59 | |
el19tb | 50:9ffeb4a10c0a | 60 | }; |
el19tb | 50:9ffeb4a10c0a | 61 | |
el19tb | 14:6fe667ec957e | 62 | #endif |