![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
MenuClasses/Tutorial/Tutorial.cpp@80:51ca38c5dcdf, 2019-05-06 (annotated)
- Committer:
- AhmedPlaymaker
- Date:
- Mon May 06 08:00:56 2019 +0000
- Revision:
- 80:51ca38c5dcdf
- Parent:
- 78:10e5cc013806
- Child:
- 83:329da564799a
Implemented back functionality in tutorials.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AhmedPlaymaker | 60:d3a9e0e4a0de | 1 | #include "Tutorial.h" |
AhmedPlaymaker | 60:d3a9e0e4a0de | 2 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 3 | Tutorial::Tutorial() |
AhmedPlaymaker | 60:d3a9e0e4a0de | 4 | { |
AhmedPlaymaker | 62:ebf6ecf8a6d5 | 5 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 6 | } |
AhmedPlaymaker | 60:d3a9e0e4a0de | 7 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 8 | Tutorial::~Tutorial() |
AhmedPlaymaker | 60:d3a9e0e4a0de | 9 | { |
AhmedPlaymaker | 62:ebf6ecf8a6d5 | 10 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 11 | } |
AhmedPlaymaker | 60:d3a9e0e4a0de | 12 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 13 | int g_pad[27][44] = { |
AhmedPlaymaker | 60:d3a9e0e4a0de | 14 | {0,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,0,0,0,0,1,1,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 15 | {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,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 16 | {0,0,0,0,1,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,1,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 17 | {0,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,0,0,0,0,1,1,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 18 | {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 19 | {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,1,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 20 | {0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,1,0,1,0,1,0,0,0,1,0,0,1,1,0,0,0,0,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 21 | {0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,1,0,0,0,1,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 22 | {0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 23 | {0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0,0,0,0,0,1,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 24 | {0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0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0,0,0,0,0,0,0,0,0,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,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 34 | {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,1,1,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 35 | {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,1,1,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 36 | {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,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 37 | {0,1,0,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,0,0,0,0,0,0,1,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 38 | {0,1,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,0,0,0,0,1,0,0,0,0,0,1,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 39 | {0,0,1,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,0,0,0,0,0,0,1,0,0,0,1,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 40 | {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,1,1,1,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 41 | }; |
AhmedPlaymaker | 60:d3a9e0e4a0de | 42 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 43 | int Pot[27][44] = { |
AhmedPlaymaker | 60:d3a9e0e4a0de | 44 | {0,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,0,0,0,0,1,1,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 45 | {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,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 46 | {0,0,0,0,1,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,1,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 47 | {0,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,0,0,0,0,1,1,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 48 | {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,0,0,0,1,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 49 | {0,0,0,0,0,1,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,1,1,0,0,1,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 50 | {0,0,0,0,1,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,1,1,0,0,1,1,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 51 | {0,0,0,0,1,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,1,1,1,1,0,0,1,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a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, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 69 | {0,0,1,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,0,0,0,0,0,0,1,0,0,0,1,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 70 | {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,1,1,1,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 71 | }; |
AhmedPlaymaker | 60:d3a9e0e4a0de | 72 | |
AhmedPlaymaker | 78:10e5cc013806 | 73 | int UpDown[27][44] = { |
AhmedPlaymaker | 78:10e5cc013806 | 74 | {0,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,0,0,0,0,1,1,0,0,0,0,0}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 75 | {0,0,0,0,1,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,1,1,1,1,0,0,0,0}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 76 | {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,1,1,1,1,1,1,0,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 77 | {0,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,0,0,0,0,1,1,0,0,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 78 | {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 79 | {0,0,0,0,0,1,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,0,1,0,0,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 80 | {0,0,0,0,1,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,1,1,0,0,0,0,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 81 | {0,0,0,0,1,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,1,0,0,1,0,0,0,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 82 | {0,0,0,0,1,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,1,0,0,1,0,0,0,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 83 | {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,1,1,0,0,0,0,0,0,0,1,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 84 | {0,0,0,1,0,0,0,0,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 85 | {0,0,1,1,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,0,0,0,0,0,0,0,0,0,0,1,1,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 86 | {0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 87 | {0,0,1,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,1,1,0,0,0,1,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 88 | {0,1,0,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 89 | {0,1,0,0,0,0,1,1,1,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,1,1,1,0,0,0,0,1,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 90 | {0,1,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,1,1,1,0,1,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 91 | {1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0,1}, |
AhmedPlaymaker | 78:10e5cc013806 | 92 | {1,0,0,0,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,1,1,1,0,0,0,1,1,1,0,0,1}, |
AhmedPlaymaker | 78:10e5cc013806 | 93 | {1,0,0,0,0,0,1,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,1,1,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 78:10e5cc013806 | 94 | {1,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,0,0,0,0,0,1,0,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 78:10e5cc013806 | 95 | {1,0,0,0,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,1,1,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 78:10e5cc013806 | 96 | {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,1}, |
AhmedPlaymaker | 78:10e5cc013806 | 97 | {0,1,0,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,0,0,0,0,0,0,1,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 98 | {0,1,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,0,0,0,0,1,0,0,0,0,0,1,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 99 | {0,0,1,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,0,0,0,0,0,0,1,0,0,0,1,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 100 | {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,1,1,1,0,0,0}, |
AhmedPlaymaker | 78:10e5cc013806 | 101 | }; |
AhmedPlaymaker | 78:10e5cc013806 | 102 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 103 | int LeftRight[27][44] = { |
AhmedPlaymaker | 60:d3a9e0e4a0de | 104 | {0,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,0,0,0,0,1,1,0,0,0,0,0}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 105 | {0,0,0,0,1,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,1,1,1,1,0,0,0,0}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 106 | {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,1,1,1,1,1,1,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 107 | {0,0,0,0,0,1,1,0,0,0,0,0,0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,0,0,0,1,1,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 116 | {0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 117 | {0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,1,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,1,1,0,0,0,1,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 118 | {0,1,0,0,1,0,0,1,1,1,1,0,0,1,0,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 119 | {0,1,0,1,0,0,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,1,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 120 | {0,1,0,1,0,0,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,1,1,1,0,1,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 121 | {1,0,0,0,1,0,0,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 122 | {1,0,0,0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,1,1,1,0,0,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 123 | {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,1,1,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 124 | {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,1,0,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 125 | {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,1,1,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 126 | {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,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 127 | {0,1,0,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,0,0,0,0,0,0,1,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 128 | {0,1,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,0,0,0,0,1,0,0,0,0,0,1,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 129 | {0,0,1,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,0,0,0,0,0,0,1,0,0,0,1,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 130 | {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,1,1,1,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 131 | }; |
AhmedPlaymaker | 60:d3a9e0e4a0de | 132 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 133 | int GameControls[31][44] = { |
AhmedPlaymaker | 60:d3a9e0e4a0de | 134 | {0,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,0,0,0,0,1,1,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 135 | {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,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 136 | {0,0,0,0,1,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,1,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 137 | {0,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,0,0,0,0,1,1,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 138 | {0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 139 | {0,0,0,0,0,1,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,0,1,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 140 | {0,0,0,0,1,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,1,1,0,0,0,0,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 141 | {0,0,0,0,1,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,1,0,0,1,0,0,0,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 142 | {0,0,0,0,1,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,1,0,0,1,0,0,0,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 60:d3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,1,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 160 | {0,0,0,1,1,1,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,1,1,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 161 | {0,0,0,0,0,0,1,1,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,1,1,0,1,1,0,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 162 | {0,0,0,0,0,1,1,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,1,1,1,1,1,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 163 | {0,0,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,0,0,1,1,0,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 164 | {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,0,0,0,0,1,0,0,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 165 | }; |
AhmedPlaymaker | 60:d3a9e0e4a0de | 166 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 167 | int NextBack[27][44] = { |
AhmedPlaymaker | 60:d3a9e0e4a0de | 168 | {0,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,0,0,0,0,1,1,0,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 169 | {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,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 170 | {0,0,0,0,1,0,0,1,1,1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,0,0,0,0,0,0,1,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 179 | {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,0,0,0,0,0,0,0,0,0,0,1,1,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 180 | {0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 181 | {0,0,1,0,0,0,0,0,1,1,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,1,1,0,0,0,1,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 182 | {0,1,0,0,0,0,0,1,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 183 | {0,1,0,0,0,0,1,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,1,1,1,0,0,0,0,1,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 184 | {0,1,0,0,0,0,1,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,1,1,1,0,0,0,1,1,1,0,1,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 185 | {1,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,0,0,1,0,1,0,0,0,1,0,1,0,0,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 186 | {1,0,0,0,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,1,1,1,0,0,0,1,1,1,0,0,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 187 | {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,1,1,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 188 | {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,1,0,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 189 | {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,1,1,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 190 | {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,1}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 191 | {0,1,0,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,0,0,0,0,0,0,1,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 192 | {0,1,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,0,0,0,0,1,0,0,0,0,0,1,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 193 | {0,0,1,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,0,0,0,0,0,0,1,0,0,0,1,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 194 | {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,1,1,1,0,0,0}, |
AhmedPlaymaker | 60:d3a9e0e4a0de | 195 | }; |
AhmedPlaymaker | 60:d3a9e0e4a0de | 196 | |
AhmedPlaymaker | 80:51ca38c5dcdf | 197 | int Back[9][19] = { |
AhmedPlaymaker | 80:51ca38c5dcdf | 198 | {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 199 | {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 200 | {1,0,1,1,0,0,0,1,0,0,0,1,1,0,1,0,1,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 201 | {1,0,1,0,1,0,1,0,1,0,1,0,0,0,1,1,0,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 202 | {1,0,1,1,0,0,1,1,1,0,1,0,0,0,1,0,0,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 203 | {1,0,1,0,1,0,1,0,1,0,1,0,0,0,1,1,0,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 204 | {1,0,1,1,0,0,1,0,1,0,0,1,1,0,1,0,1,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 205 | {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 206 | {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 207 | }; |
AhmedPlaymaker | 60:d3a9e0e4a0de | 208 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 209 | void Tutorial::Implement(N5110 &lcd, Gamepad &pad) |
AhmedPlaymaker | 60:d3a9e0e4a0de | 210 | { |
AhmedPlaymaker | 80:51ca38c5dcdf | 211 | //Only executed if back is not pressed. Takes us to tutorial of how to navigate through the tutorial. |
AhmedPlaymaker | 80:51ca38c5dcdf | 212 | if(_backPressed == false) { Tutorial::gamePad(lcd, pad); } |
AhmedPlaymaker | 80:51ca38c5dcdf | 213 | //Only executed if back is not pressed. Takes us to tutorial of how to operate settings. |
AhmedPlaymaker | 80:51ca38c5dcdf | 214 | if(_backPressed == false) { Tutorial::settings(lcd, pad); } |
AhmedPlaymaker | 80:51ca38c5dcdf | 215 | //Only executed if back is not pressed. Takes us to tutorial of how to navigate through main menu. |
AhmedPlaymaker | 80:51ca38c5dcdf | 216 | if(_backPressed == false) { Tutorial::controlsToNavigateInMenu(lcd, pad); } |
AhmedPlaymaker | 80:51ca38c5dcdf | 217 | //Only executed if back is not pressed. Takes us to tutorial of how to navigate through mode and speed menu. |
AhmedPlaymaker | 80:51ca38c5dcdf | 218 | if(_backPressed == false) { Tutorial::controlsToNavigateGameModeSpeed(lcd,pad); } |
AhmedPlaymaker | 80:51ca38c5dcdf | 219 | //Only executed if back is not pressed. Takes us to tutorial of how to use in game controls and how to move snake. |
AhmedPlaymaker | 80:51ca38c5dcdf | 220 | if(_backPressed == false) { Tutorial::controlsToPlayGame(lcd, pad); } |
AhmedPlaymaker | 80:51ca38c5dcdf | 221 | //Only executed if back is not pressed. Takes us to tutorial of how to navigate back and forth in menus & start or end a game.. |
AhmedPlaymaker | 80:51ca38c5dcdf | 222 | if(_backPressed == false) { Tutorial::controlsForPreviousOrNext(lcd, pad); } |
AhmedPlaymaker | 80:51ca38c5dcdf | 223 | //RESETS _backPressed, for displaying all the tutorials if it has been selected once again in main menu. |
AhmedPlaymaker | 80:51ca38c5dcdf | 224 | _backPressed = false; |
AhmedPlaymaker | 80:51ca38c5dcdf | 225 | } |
AhmedPlaymaker | 80:51ca38c5dcdf | 226 | |
AhmedPlaymaker | 80:51ca38c5dcdf | 227 | bool Tutorial::checkBackPressed(Gamepad &pad) |
AhmedPlaymaker | 80:51ca38c5dcdf | 228 | { |
AhmedPlaymaker | 80:51ca38c5dcdf | 229 | //This is a very important process, this helps the code to not get stuck in menu loop but also allow to toggle between diffrent menu screens. |
AhmedPlaymaker | 80:51ca38c5dcdf | 230 | if (pad.check_event(Gamepad::BACK_PRESSED) == true) { |
AhmedPlaymaker | 80:51ca38c5dcdf | 231 | pad.tone(1000.0,0.1); |
AhmedPlaymaker | 80:51ca38c5dcdf | 232 | _backPressed = true; |
AhmedPlaymaker | 80:51ca38c5dcdf | 233 | } else { |
AhmedPlaymaker | 80:51ca38c5dcdf | 234 | _backPressed = false; |
AhmedPlaymaker | 80:51ca38c5dcdf | 235 | } |
AhmedPlaymaker | 80:51ca38c5dcdf | 236 | return _backPressed; //returns true if back is pressed, returns false otherwise. |
AhmedPlaymaker | 60:d3a9e0e4a0de | 237 | } |
AhmedPlaymaker | 60:d3a9e0e4a0de | 238 | |
AhmedPlaymaker | 60:d3a9e0e4a0de | 239 | void Tutorial::gamePad(N5110 &lcd, Gamepad &pad) |
AhmedPlaymaker | 62:ebf6ecf8a6d5 | 240 | { |
AhmedPlaymaker | 78:10e5cc013806 | 241 | lcd.clear(); |
AhmedPlaymaker | 62:ebf6ecf8a6d5 | 242 | while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 60:d3a9e0e4a0de | 243 | lcd.drawSprite(20,0,27,44,(int *)g_pad); //Function used to draw the sprite. |
AhmedPlaymaker | 80:51ca38c5dcdf | 244 | lcd.drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 78:10e5cc013806 | 245 | lcd.printString("Press Start or",0,4); |
AhmedPlaymaker | 78:10e5cc013806 | 246 | lcd.printString("A to proceed",7,5); |
AhmedPlaymaker | 78:10e5cc013806 | 247 | lcd.refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 248 | |
AhmedPlaymaker | 80:51ca38c5dcdf | 249 | if (Tutorial::checkBackPressed(pad)) { return; } //if back is pressed, the function is terminated. |
AhmedPlaymaker | 78:10e5cc013806 | 250 | } |
AhmedPlaymaker | 78:10e5cc013806 | 251 | wait(0.25); |
AhmedPlaymaker | 78:10e5cc013806 | 252 | pad.tone(1000.0,0.1); |
AhmedPlaymaker | 78:10e5cc013806 | 253 | } |
AhmedPlaymaker | 78:10e5cc013806 | 254 | |
AhmedPlaymaker | 78:10e5cc013806 | 255 | void Tutorial::settings(N5110 &lcd, Gamepad &pad) |
AhmedPlaymaker | 78:10e5cc013806 | 256 | { |
AhmedPlaymaker | 78:10e5cc013806 | 257 | lcd.clear(); |
AhmedPlaymaker | 78:10e5cc013806 | 258 | while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 78:10e5cc013806 | 259 | lcd.drawSprite(20,0,27,44,(int *)Pot); //Function used to draw the sprite. |
AhmedPlaymaker | 80:51ca38c5dcdf | 260 | lcd.drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 78:10e5cc013806 | 261 | lcd.printString("Rotate pot",12,4); |
AhmedPlaymaker | 78:10e5cc013806 | 262 | lcd.printString("in settings",9,5); |
AhmedPlaymaker | 78:10e5cc013806 | 263 | lcd.refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 264 | |
AhmedPlaymaker | 80:51ca38c5dcdf | 265 | if (Tutorial::checkBackPressed(pad)) { return; } //if back is pressed, the function is terminated. |
AhmedPlaymaker | 78:10e5cc013806 | 266 | } |
AhmedPlaymaker | 78:10e5cc013806 | 267 | wait(0.25); |
AhmedPlaymaker | 78:10e5cc013806 | 268 | pad.tone(1000.0,0.1); |
AhmedPlaymaker | 78:10e5cc013806 | 269 | } |
AhmedPlaymaker | 78:10e5cc013806 | 270 | |
AhmedPlaymaker | 78:10e5cc013806 | 271 | void Tutorial::controlsToNavigateInMenu(N5110 &lcd, Gamepad &pad) |
AhmedPlaymaker | 78:10e5cc013806 | 272 | { |
AhmedPlaymaker | 78:10e5cc013806 | 273 | lcd.clear(); |
AhmedPlaymaker | 78:10e5cc013806 | 274 | while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 78:10e5cc013806 | 275 | lcd.drawSprite(20,0,27,44,(int *)UpDown); //Function used to draw the sprite. |
AhmedPlaymaker | 80:51ca38c5dcdf | 276 | lcd.drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 78:10e5cc013806 | 277 | lcd.printString("Up/Down",21,4); |
AhmedPlaymaker | 78:10e5cc013806 | 278 | lcd.printString("for Main Menu",3,5); |
AhmedPlaymaker | 78:10e5cc013806 | 279 | lcd.refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 280 | |
AhmedPlaymaker | 80:51ca38c5dcdf | 281 | if (Tutorial::checkBackPressed(pad)) { return; } //if back is pressed, the function is terminated. |
AhmedPlaymaker | 78:10e5cc013806 | 282 | } |
AhmedPlaymaker | 78:10e5cc013806 | 283 | wait(0.25); |
AhmedPlaymaker | 78:10e5cc013806 | 284 | pad.tone(1000.0,0.1); |
AhmedPlaymaker | 78:10e5cc013806 | 285 | } |
AhmedPlaymaker | 78:10e5cc013806 | 286 | |
AhmedPlaymaker | 78:10e5cc013806 | 287 | void Tutorial::controlsToNavigateGameModeSpeed(N5110 &lcd, Gamepad &pad) |
AhmedPlaymaker | 78:10e5cc013806 | 288 | { |
AhmedPlaymaker | 78:10e5cc013806 | 289 | lcd.clear(); |
AhmedPlaymaker | 78:10e5cc013806 | 290 | while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 78:10e5cc013806 | 291 | lcd.drawSprite(20,0,27,44,(int *)LeftRight); //Function used to draw the sprite. |
AhmedPlaymaker | 80:51ca38c5dcdf | 292 | lcd.drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 78:10e5cc013806 | 293 | lcd.printString("Left/Right for",0,4); |
AhmedPlaymaker | 78:10e5cc013806 | 294 | lcd.printString("Mode & Speed",7,5); |
AhmedPlaymaker | 60:d3a9e0e4a0de | 295 | lcd.refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 296 | |
AhmedPlaymaker | 80:51ca38c5dcdf | 297 | if (Tutorial::checkBackPressed(pad)) { return; } //if back is pressed, the function is terminated. |
AhmedPlaymaker | 60:d3a9e0e4a0de | 298 | } |
AhmedPlaymaker | 78:10e5cc013806 | 299 | wait(0.3); |
AhmedPlaymaker | 78:10e5cc013806 | 300 | pad.tone(1000.0,0.1); |
AhmedPlaymaker | 78:10e5cc013806 | 301 | } |
AhmedPlaymaker | 78:10e5cc013806 | 302 | |
AhmedPlaymaker | 78:10e5cc013806 | 303 | void Tutorial::controlsToPlayGame(N5110 &lcd, Gamepad &pad) |
AhmedPlaymaker | 78:10e5cc013806 | 304 | { |
AhmedPlaymaker | 78:10e5cc013806 | 305 | lcd.clear(); |
AhmedPlaymaker | 78:10e5cc013806 | 306 | while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 78:10e5cc013806 | 307 | lcd.drawSprite(20,0,31,44,(int *)GameControls); //Function used to draw the sprite. |
AhmedPlaymaker | 80:51ca38c5dcdf | 308 | lcd.drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 78:10e5cc013806 | 309 | lcd.printString("InGameControls",0,4); |
AhmedPlaymaker | 80:51ca38c5dcdf | 310 | lcd.printString("to move snake",4,5); |
AhmedPlaymaker | 78:10e5cc013806 | 311 | lcd.refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 312 | |
AhmedPlaymaker | 80:51ca38c5dcdf | 313 | if (Tutorial::checkBackPressed(pad)) { return; } //if back is pressed, the function is terminated. |
AhmedPlaymaker | 78:10e5cc013806 | 314 | } |
AhmedPlaymaker | 78:10e5cc013806 | 315 | wait(0.25); |
AhmedPlaymaker | 78:10e5cc013806 | 316 | pad.tone(1000.0,0.1); |
AhmedPlaymaker | 80:51ca38c5dcdf | 317 | |
AhmedPlaymaker | 78:10e5cc013806 | 318 | lcd.clear(); |
AhmedPlaymaker | 78:10e5cc013806 | 319 | while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 78:10e5cc013806 | 320 | lcd.drawSprite(20,0,31,44,(int *)GameControls); //Function used to draw the sprite. |
AhmedPlaymaker | 80:51ca38c5dcdf | 321 | lcd.drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 78:10e5cc013806 | 322 | lcd.printString("Depends on",12,4); |
AhmedPlaymaker | 78:10e5cc013806 | 323 | lcd.printString("mode selection",0,5); |
AhmedPlaymaker | 78:10e5cc013806 | 324 | lcd.refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 325 | |
AhmedPlaymaker | 80:51ca38c5dcdf | 326 | if (Tutorial::checkBackPressed(pad)) { return; } //if back is pressed, the function is terminated. |
AhmedPlaymaker | 78:10e5cc013806 | 327 | } |
AhmedPlaymaker | 78:10e5cc013806 | 328 | wait(0.25); |
AhmedPlaymaker | 78:10e5cc013806 | 329 | pad.tone(1000.0,0.1); |
AhmedPlaymaker | 78:10e5cc013806 | 330 | } |
AhmedPlaymaker | 78:10e5cc013806 | 331 | |
AhmedPlaymaker | 78:10e5cc013806 | 332 | void Tutorial::controlsForPreviousOrNext(N5110 &lcd, Gamepad &pad) |
AhmedPlaymaker | 78:10e5cc013806 | 333 | { |
AhmedPlaymaker | 78:10e5cc013806 | 334 | lcd.clear(); |
AhmedPlaymaker | 78:10e5cc013806 | 335 | while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 78:10e5cc013806 | 336 | lcd.drawSprite(20,0,27,44,(int *)NextBack); //Function used to draw the sprite. |
AhmedPlaymaker | 80:51ca38c5dcdf | 337 | lcd.drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 78:10e5cc013806 | 338 | lcd.printString("Previous/Next",4,4); |
AhmedPlaymaker | 78:10e5cc013806 | 339 | lcd.printString("End/Start",16,5); |
AhmedPlaymaker | 78:10e5cc013806 | 340 | lcd.refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 341 | |
AhmedPlaymaker | 80:51ca38c5dcdf | 342 | if (Tutorial::checkBackPressed(pad)) { return; } //if back is pressed, the function is terminated. |
AhmedPlaymaker | 78:10e5cc013806 | 343 | } |
AhmedPlaymaker | 78:10e5cc013806 | 344 | wait(0.3); |
AhmedPlaymaker | 78:10e5cc013806 | 345 | pad.tone(1000.0,0.1); |
AhmedPlaymaker | 80:51ca38c5dcdf | 346 | |
AhmedPlaymaker | 78:10e5cc013806 | 347 | lcd.clear(); |
AhmedPlaymaker | 78:10e5cc013806 | 348 | while ((pad.check_event(Gamepad::START_PRESSED) == false)&&(pad.check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 78:10e5cc013806 | 349 | lcd.drawSprite(20,0,27,44,(int *)NextBack); //Function used to draw the sprite. |
AhmedPlaymaker | 80:51ca38c5dcdf | 350 | lcd.drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 78:10e5cc013806 | 351 | lcd.printString("Works in both",5,4); |
AhmedPlaymaker | 78:10e5cc013806 | 352 | lcd.printString("menu and game",5,5); |
AhmedPlaymaker | 78:10e5cc013806 | 353 | lcd.refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 354 | |
AhmedPlaymaker | 80:51ca38c5dcdf | 355 | if (Tutorial::checkBackPressed(pad)) { return; } //if back is pressed, the function is terminated. |
AhmedPlaymaker | 78:10e5cc013806 | 356 | } |
AhmedPlaymaker | 78:10e5cc013806 | 357 | wait(0.3); |
AhmedPlaymaker | 78:10e5cc013806 | 358 | pad.tone(1000.0,0.1); |
AhmedPlaymaker | 60:d3a9e0e4a0de | 359 | } |