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@56:2797166656e0, 2020-05-26 (annotated)
- Committer:
- el19tb
- Date:
- Tue May 26 20:51:56 2020 +0000
- Revision:
- 56:2797166656e0
- Parent:
- 53:b6bb4dab7823
- Child:
- 61:3714af9caab6
created an intro screen, made the frog die if it goes to void area in bonus
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 | 53:b6bb4dab7823 | 36 | const int goal_post[8][18] = { |
el19tb | 49:6cad8b6ec5f2 | 37 | |
el19tb | 53:b6bb4dab7823 | 38 | { 0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0 }, |
el19tb | 53:b6bb4dab7823 | 39 | { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 }, |
el19tb | 53:b6bb4dab7823 | 40 | { 1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1 }, |
el19tb | 53:b6bb4dab7823 | 41 | { 1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1 }, |
el19tb | 53:b6bb4dab7823 | 42 | { 1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1 }, |
el19tb | 53:b6bb4dab7823 | 43 | { 1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1 }, |
el19tb | 53:b6bb4dab7823 | 44 | { 1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1 }, |
el19tb | 53:b6bb4dab7823 | 45 | { 0,0,0,0,0,0,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 | 56:2797166656e0 | 62 | const int frogger_intro[36][43] = { |
el19tb | 56:2797166656e0 | 63 | |
el19tb | 56:2797166656e0 | 64 | { 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 | 56:2797166656e0 | 65 | { 0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0 }, |
el19tb | 56:2797166656e0 | 66 | { 0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0 }, |
el19tb | 56:2797166656e0 | 67 | { 0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0 }, |
el19tb | 56:2797166656e0 | 68 | { 0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0 }, |
el19tb | 56:2797166656e0 | 69 | { 0,0,0,0,0,1,0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0 }, |
el19tb | 56:2797166656e0 | 70 | { 0,0,1,1,1,1,0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,1,1,1,0 }, |
el19tb | 56:2797166656e0 | 71 | { 0,0,1,0,0,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,1,0 }, |
el19tb | 56:2797166656e0 | 72 | { 0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0 }, |
el19tb | 56:2797166656e0 | 73 | { 0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0 }, |
el19tb | 56:2797166656e0 | 74 | { 0,0,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0 }, |
el19tb | 56:2797166656e0 | 75 | { 0,0,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,1,0 }, |
el19tb | 56:2797166656e0 | 76 | { 0,0,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,1,0 }, |
el19tb | 56:2797166656e0 | 77 | { 0,0,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,1,0 }, |
el19tb | 56:2797166656e0 | 78 | { 0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0 }, |
el19tb | 56:2797166656e0 | 79 | { 0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0 }, |
el19tb | 56:2797166656e0 | 80 | { 0,0,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,1,0 }, |
el19tb | 56:2797166656e0 | 81 | { 0,0,1,0,0,0,0,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,1,1,0,0,0,0,1,0 }, |
el19tb | 56:2797166656e0 | 82 | { 0,0,1,0,0,0,0,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,1,1,0,0,0,0,1,0 }, |
el19tb | 56:2797166656e0 | 83 | { 0,0,1,0,0,0,0,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,1,1,0,0,0,0,1,0 }, |
el19tb | 56:2797166656e0 | 84 | { 0,0,1,0,0,0,0,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,1,1,0,0,0,0,1,0 }, |
el19tb | 56:2797166656e0 | 85 | { 0,0,1,0,0,0,0,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,1,1,0,0,0,0,1,0 }, |
el19tb | 56:2797166656e0 | 86 | { 0,0,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0 }, |
el19tb | 56:2797166656e0 | 87 | { 0,0,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0 }, |
el19tb | 56:2797166656e0 | 88 | { 0,0,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,1,0 }, |
el19tb | 56:2797166656e0 | 89 | { 0,0,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,1,0 }, |
el19tb | 56:2797166656e0 | 90 | { 0,0,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,1,0 }, |
el19tb | 56:2797166656e0 | 91 | { 0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0 }, |
el19tb | 56:2797166656e0 | 92 | { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, |
el19tb | 56:2797166656e0 | 93 | { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, |
el19tb | 56:2797166656e0 | 94 | { 0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0 }, |
el19tb | 56:2797166656e0 | 95 | { 0,0,0,0,0,0,0,0,0,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,1,0,0,0,0,0,0,0,0 }, |
el19tb | 56:2797166656e0 | 96 | { 0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0 }, |
el19tb | 56:2797166656e0 | 97 | { 0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0 }, |
el19tb | 56:2797166656e0 | 98 | { 0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0 }, |
el19tb | 56:2797166656e0 | 99 | { 0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0 }, |
el19tb | 56:2797166656e0 | 100 | |
el19tb | 56:2797166656e0 | 101 | }; |
el19tb | 56:2797166656e0 | 102 | |
el19tb | 14:6fe667ec957e | 103 | #endif |