![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
MenuClasses/Tutorial/Tutorial.cpp@104:17040265b7b4, 2019-05-09 (annotated)
- Committer:
- AhmedPlaymaker
- Date:
- Thu May 09 14:52:19 2019 +0000
- Revision:
- 104:17040265b7b4
- Parent:
- 85:d50ba0994676
Final Submission. I have read and agreed with Statement of Academic Integrity.
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,0,1,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,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:d3a9e0e4a0de | 52 | {0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aymaker | 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,0,0,0,0,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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:d3a9e0e4a0de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
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,1,1,1,1,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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 | 85:d50ba0994676 | 197 | |
AhmedPlaymaker | 85:d50ba0994676 | 198 | int BlockPixel[22][51] = { |
AhmedPlaymaker | 85:d50ba0994676 | 199 | {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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 200 | {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,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 201 | {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,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 202 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 203 | {1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,1,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 204 | {1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,1,1,0,0,0,0,1,1,0,0,0,0,1,0,0,0,1,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 205 | {1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,1,0,1,0,0,0,0,1,0,0,0,1,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 206 | {1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,1,0,0,0,0,1,0,0,1,0,1,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 207 | {1,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,1,0,0,0,0,1,0,0,1,1,1,1,1,0,0,0,1,0,0,0,1,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 208 | {1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 209 | {1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,1,0,0,0,1,1,1,0,0,0,0,1,0,0,0,0,1,0,0,1,0,1,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 210 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 211 | {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,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 212 | {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,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 213 | {1,0,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,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 214 | {1,0,0,0,0,0,0,1,1,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,1,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 215 | {1,0,0,0,0,0,1,1,1,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,1,0,1,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 216 | {1,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,0,0,0,0,0,0,0,1,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 217 | {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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 218 | {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,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 219 | {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,0,0,0,0,0,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 220 | {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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 221 | }; |
AhmedPlaymaker | 85:d50ba0994676 | 222 | |
AhmedPlaymaker | 85:d50ba0994676 | 223 | |
AhmedPlaymaker | 85:d50ba0994676 | 224 | int FoodPixel[22][51] = { |
AhmedPlaymaker | 85:d50ba0994676 | 225 | {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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 226 | {1,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,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}, |
AhmedPlaymaker | 85:d50ba0994676 | 227 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,1,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,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 228 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,1,0,1,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 229 | {1,0,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,1,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 230 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 231 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,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}, |
AhmedPlaymaker | 85:d50ba0994676 | 232 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,1,1,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 233 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 234 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 235 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 236 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 237 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 238 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 239 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 240 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,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,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 241 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 242 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 243 | {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 244 | {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 245 | {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 246 | {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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 247 | |
AhmedPlaymaker | 85:d50ba0994676 | 248 | }; |
AhmedPlaymaker | 85:d50ba0994676 | 249 | |
AhmedPlaymaker | 85:d50ba0994676 | 250 | |
AhmedPlaymaker | 85:d50ba0994676 | 251 | int BarrierPixel[22][51] = { |
AhmedPlaymaker | 85:d50ba0994676 | 252 | {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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 253 | {1,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,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 | 85:d50ba0994676 | 254 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,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,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 255 | {1,0,0,0,0,0,0,0,0,0,0,1,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,0,1,0,1,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 256 | {1,0,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,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 257 | {1,0,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,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 258 | {1,0,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,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 259 | {1,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 260 | {1,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,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,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 261 | {1,1,1,1,1,1,1,1,1,1,0,1,0,0,0,0,0,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,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 262 | {1,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 263 | {1,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,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,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 264 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,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,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 265 | {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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 266 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,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,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 267 | {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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 268 | {1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 269 | {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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 270 | {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,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,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 271 | {1,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,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 272 | {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,0,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 | 85:d50ba0994676 | 273 | {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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, |
AhmedPlaymaker | 85:d50ba0994676 | 274 | |
AhmedPlaymaker | 85:d50ba0994676 | 275 | }; |
AhmedPlaymaker | 85:d50ba0994676 | 276 | |
AhmedPlaymaker | 80:51ca38c5dcdf | 277 | int Back[9][19] = { |
AhmedPlaymaker | 80:51ca38c5dcdf | 278 | {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 279 | {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 280 | {1,0,1,1,0,0,0,1,0,0,0,1,1,0,1,0,1,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 281 | {1,0,1,0,1,0,1,0,1,0,1,0,0,0,1,1,0,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 282 | {1,0,1,1,0,0,1,1,1,0,1,0,0,0,1,0,0,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 283 | {1,0,1,0,1,0,1,0,1,0,1,0,0,0,1,1,0,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 284 | {1,0,1,1,0,0,1,0,1,0,0,1,1,0,1,0,1,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 285 | {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 286 | {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, |
AhmedPlaymaker | 80:51ca38c5dcdf | 287 | }; |
AhmedPlaymaker | 60:d3a9e0e4a0de | 288 | |
AhmedPlaymaker | 83:329da564799a | 289 | |
AhmedPlaymaker | 83:329da564799a | 290 | void Tutorial::init(N5110 *lcd, Gamepad *pad) |
AhmedPlaymaker | 83:329da564799a | 291 | { |
AhmedPlaymaker | 83:329da564799a | 292 | _lcd = lcd; |
AhmedPlaymaker | 83:329da564799a | 293 | _pad = pad; |
AhmedPlaymaker | 83:329da564799a | 294 | } |
AhmedPlaymaker | 83:329da564799a | 295 | |
AhmedPlaymaker | 83:329da564799a | 296 | void Tutorial::Implement() |
AhmedPlaymaker | 60:d3a9e0e4a0de | 297 | { |
AhmedPlaymaker | 85:d50ba0994676 | 298 | //All these functions are only executed if back is not pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 299 | //Takes us to tutorial of how to navigate through the tutorial. |
AhmedPlaymaker | 85:d50ba0994676 | 300 | Tutorial::gamePad(); |
AhmedPlaymaker | 85:d50ba0994676 | 301 | //Takes us to tutorial of how to operate settings. |
AhmedPlaymaker | 85:d50ba0994676 | 302 | Tutorial::settings(); |
AhmedPlaymaker | 85:d50ba0994676 | 303 | //Takes us to tutorial of how to navigate through main menu. |
AhmedPlaymaker | 85:d50ba0994676 | 304 | Tutorial::controlsToNavigateInMenu(); |
AhmedPlaymaker | 85:d50ba0994676 | 305 | //Takes us to tutorial of how to navigate through mode and speed menu. |
AhmedPlaymaker | 85:d50ba0994676 | 306 | Tutorial::controlsToNavigateGameModeSpeed(); |
AhmedPlaymaker | 85:d50ba0994676 | 307 | //Takes us to tutorial of how to use in game controls and how to move snake. |
AhmedPlaymaker | 85:d50ba0994676 | 308 | Tutorial::controlsToPlayGame(); |
AhmedPlaymaker | 85:d50ba0994676 | 309 | //Takes us to tutorial of how to navigate back and forth in menus & start or end a game. |
AhmedPlaymaker | 85:d50ba0994676 | 310 | Tutorial::controlsForPreviousOrNext(); |
AhmedPlaymaker | 85:d50ba0994676 | 311 | //Takes us to tutorial of how to react to a block in the way of our game. |
AhmedPlaymaker | 85:d50ba0994676 | 312 | //This is sub-divided in three as it has three frames. |
AhmedPlaymaker | 85:d50ba0994676 | 313 | Tutorial::BlockTutorialA(); |
AhmedPlaymaker | 85:d50ba0994676 | 314 | Tutorial::BlockTutorialB(); |
AhmedPlaymaker | 85:d50ba0994676 | 315 | Tutorial::BlockTutorialC(); |
AhmedPlaymaker | 85:d50ba0994676 | 316 | //Takes us to tutorial of how to react to food in the way of our game. |
AhmedPlaymaker | 85:d50ba0994676 | 317 | Tutorial::FoodTutorial(); |
AhmedPlaymaker | 85:d50ba0994676 | 318 | //Takes us to tutorial of what the barrier does in our game. |
AhmedPlaymaker | 85:d50ba0994676 | 319 | Tutorial::BarrierTutorial(); |
AhmedPlaymaker | 85:d50ba0994676 | 320 | //Talks us through some general information about the game. |
AhmedPlaymaker | 85:d50ba0994676 | 321 | Tutorial::GeneralInfo(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 322 | //RESETS _backPressed, for displaying all the tutorials if it has been selected once again in main menu. |
AhmedPlaymaker | 80:51ca38c5dcdf | 323 | _backPressed = false; |
AhmedPlaymaker | 80:51ca38c5dcdf | 324 | } |
AhmedPlaymaker | 80:51ca38c5dcdf | 325 | |
AhmedPlaymaker | 83:329da564799a | 326 | bool Tutorial::checkBackPressed() |
AhmedPlaymaker | 80:51ca38c5dcdf | 327 | { |
AhmedPlaymaker | 80:51ca38c5dcdf | 328 | //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 | 83:329da564799a | 329 | if (_pad->check_event(Gamepad::BACK_PRESSED) == true) { |
AhmedPlaymaker | 83:329da564799a | 330 | _pad->tone(1000.0,0.1); |
AhmedPlaymaker | 80:51ca38c5dcdf | 331 | _backPressed = true; |
AhmedPlaymaker | 80:51ca38c5dcdf | 332 | } else { |
AhmedPlaymaker | 80:51ca38c5dcdf | 333 | _backPressed = false; |
AhmedPlaymaker | 80:51ca38c5dcdf | 334 | } |
AhmedPlaymaker | 80:51ca38c5dcdf | 335 | return _backPressed; //returns true if back is pressed, returns false otherwise. |
AhmedPlaymaker | 60:d3a9e0e4a0de | 336 | } |
AhmedPlaymaker | 60:d3a9e0e4a0de | 337 | |
AhmedPlaymaker | 83:329da564799a | 338 | void Tutorial::gamePad() |
AhmedPlaymaker | 62:ebf6ecf8a6d5 | 339 | { |
AhmedPlaymaker | 85:d50ba0994676 | 340 | if(_backPressed == false) { |
AhmedPlaymaker | 85:d50ba0994676 | 341 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 342 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 343 | _lcd->drawSprite(20,0,27,44,(int *)g_pad); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 344 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 345 | _lcd->printString("Press Start or",0,4); |
AhmedPlaymaker | 85:d50ba0994676 | 346 | _lcd->printString("A to proceed",7,5); |
AhmedPlaymaker | 85:d50ba0994676 | 347 | _lcd->refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 348 | |
AhmedPlaymaker | 85:d50ba0994676 | 349 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 350 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 351 | } |
AhmedPlaymaker | 85:d50ba0994676 | 352 | } |
AhmedPlaymaker | 85:d50ba0994676 | 353 | wait(0.3); |
AhmedPlaymaker | 78:10e5cc013806 | 354 | } |
AhmedPlaymaker | 78:10e5cc013806 | 355 | } |
AhmedPlaymaker | 78:10e5cc013806 | 356 | |
AhmedPlaymaker | 83:329da564799a | 357 | void Tutorial::settings() |
AhmedPlaymaker | 78:10e5cc013806 | 358 | { |
AhmedPlaymaker | 85:d50ba0994676 | 359 | if(_backPressed == false) { |
AhmedPlaymaker | 85:d50ba0994676 | 360 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 361 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 362 | _lcd->drawSprite(20,0,27,44,(int *)Pot); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 363 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 364 | _lcd->printString("Rotate pot",12,4); |
AhmedPlaymaker | 85:d50ba0994676 | 365 | _lcd->printString("in settings",9,5); |
AhmedPlaymaker | 85:d50ba0994676 | 366 | _lcd->refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 367 | |
AhmedPlaymaker | 85:d50ba0994676 | 368 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 369 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 370 | } |
AhmedPlaymaker | 85:d50ba0994676 | 371 | } |
AhmedPlaymaker | 85:d50ba0994676 | 372 | wait(0.3); |
AhmedPlaymaker | 78:10e5cc013806 | 373 | } |
AhmedPlaymaker | 78:10e5cc013806 | 374 | } |
AhmedPlaymaker | 78:10e5cc013806 | 375 | |
AhmedPlaymaker | 83:329da564799a | 376 | void Tutorial::controlsToNavigateInMenu() |
AhmedPlaymaker | 78:10e5cc013806 | 377 | { |
AhmedPlaymaker | 85:d50ba0994676 | 378 | if(_backPressed == false) { |
AhmedPlaymaker | 85:d50ba0994676 | 379 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 380 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 381 | _lcd->drawSprite(20,0,27,44,(int *)UpDown); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 382 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 383 | _lcd->printString("Up/Down",21,4); |
AhmedPlaymaker | 85:d50ba0994676 | 384 | _lcd->printString("for Main Menu",3,5); |
AhmedPlaymaker | 85:d50ba0994676 | 385 | _lcd->refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 386 | |
AhmedPlaymaker | 85:d50ba0994676 | 387 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 388 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 389 | } |
AhmedPlaymaker | 85:d50ba0994676 | 390 | } |
AhmedPlaymaker | 85:d50ba0994676 | 391 | wait(0.3); |
AhmedPlaymaker | 78:10e5cc013806 | 392 | } |
AhmedPlaymaker | 78:10e5cc013806 | 393 | } |
AhmedPlaymaker | 78:10e5cc013806 | 394 | |
AhmedPlaymaker | 83:329da564799a | 395 | void Tutorial::controlsToNavigateGameModeSpeed() |
AhmedPlaymaker | 78:10e5cc013806 | 396 | { |
AhmedPlaymaker | 85:d50ba0994676 | 397 | if(_backPressed == false) { |
AhmedPlaymaker | 85:d50ba0994676 | 398 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 399 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 400 | _lcd->drawSprite(20,0,27,44,(int *)LeftRight); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 401 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 402 | _lcd->printString("Left/Right for",0,4); |
AhmedPlaymaker | 85:d50ba0994676 | 403 | _lcd->printString("Mode & Speed",7,5); |
AhmedPlaymaker | 85:d50ba0994676 | 404 | _lcd->refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 405 | |
AhmedPlaymaker | 85:d50ba0994676 | 406 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 407 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 408 | } |
AhmedPlaymaker | 85:d50ba0994676 | 409 | } |
AhmedPlaymaker | 85:d50ba0994676 | 410 | wait(0.3); |
AhmedPlaymaker | 60:d3a9e0e4a0de | 411 | } |
AhmedPlaymaker | 78:10e5cc013806 | 412 | } |
AhmedPlaymaker | 78:10e5cc013806 | 413 | |
AhmedPlaymaker | 83:329da564799a | 414 | void Tutorial::controlsToPlayGame() |
AhmedPlaymaker | 78:10e5cc013806 | 415 | { |
AhmedPlaymaker | 85:d50ba0994676 | 416 | if(_backPressed == false) { |
AhmedPlaymaker | 85:d50ba0994676 | 417 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 418 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 419 | _lcd->drawSprite(20,0,31,44,(int *)GameControls); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 420 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 421 | _lcd->printString("InGameControls",0,4); |
AhmedPlaymaker | 85:d50ba0994676 | 422 | _lcd->printString("to move snake",4,5); |
AhmedPlaymaker | 85:d50ba0994676 | 423 | _lcd->refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 424 | |
AhmedPlaymaker | 85:d50ba0994676 | 425 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 426 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 427 | } |
AhmedPlaymaker | 85:d50ba0994676 | 428 | } |
AhmedPlaymaker | 85:d50ba0994676 | 429 | wait(0.3); |
AhmedPlaymaker | 80:51ca38c5dcdf | 430 | |
AhmedPlaymaker | 85:d50ba0994676 | 431 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 432 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 433 | _lcd->drawSprite(20,0,31,44,(int *)GameControls); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 434 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 435 | _lcd->printString("Depends on",12,4); |
AhmedPlaymaker | 85:d50ba0994676 | 436 | _lcd->printString("mode selection",0,5); |
AhmedPlaymaker | 85:d50ba0994676 | 437 | _lcd->refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 438 | |
AhmedPlaymaker | 85:d50ba0994676 | 439 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 440 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 441 | } |
AhmedPlaymaker | 85:d50ba0994676 | 442 | } |
AhmedPlaymaker | 85:d50ba0994676 | 443 | wait(0.3); |
AhmedPlaymaker | 78:10e5cc013806 | 444 | } |
AhmedPlaymaker | 78:10e5cc013806 | 445 | } |
AhmedPlaymaker | 78:10e5cc013806 | 446 | |
AhmedPlaymaker | 83:329da564799a | 447 | void Tutorial::controlsForPreviousOrNext() |
AhmedPlaymaker | 78:10e5cc013806 | 448 | { |
AhmedPlaymaker | 85:d50ba0994676 | 449 | if(_backPressed == false) { |
AhmedPlaymaker | 85:d50ba0994676 | 450 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 451 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 452 | _lcd->drawSprite(20,0,27,44,(int *)NextBack); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 453 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 454 | _lcd->printString("Previous/Next",4,4); |
AhmedPlaymaker | 85:d50ba0994676 | 455 | _lcd->printString("End/Start",16,5); |
AhmedPlaymaker | 85:d50ba0994676 | 456 | _lcd->refresh(); |
AhmedPlaymaker | 85:d50ba0994676 | 457 | |
AhmedPlaymaker | 85:d50ba0994676 | 458 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 459 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 460 | } |
AhmedPlaymaker | 85:d50ba0994676 | 461 | } |
AhmedPlaymaker | 85:d50ba0994676 | 462 | wait(0.3); |
AhmedPlaymaker | 85:d50ba0994676 | 463 | |
AhmedPlaymaker | 85:d50ba0994676 | 464 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 465 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 466 | _lcd->drawSprite(20,0,27,44,(int *)NextBack); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 467 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 468 | _lcd->printString("Works in both",5,4); |
AhmedPlaymaker | 85:d50ba0994676 | 469 | _lcd->printString("menu and game",5,5); |
AhmedPlaymaker | 85:d50ba0994676 | 470 | _lcd->refresh(); |
AhmedPlaymaker | 85:d50ba0994676 | 471 | |
AhmedPlaymaker | 85:d50ba0994676 | 472 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 473 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 474 | } |
AhmedPlaymaker | 85:d50ba0994676 | 475 | } |
AhmedPlaymaker | 85:d50ba0994676 | 476 | wait(0.3); |
AhmedPlaymaker | 85:d50ba0994676 | 477 | } |
AhmedPlaymaker | 85:d50ba0994676 | 478 | } |
AhmedPlaymaker | 85:d50ba0994676 | 479 | |
AhmedPlaymaker | 85:d50ba0994676 | 480 | void Tutorial::BlockTutorialA() |
AhmedPlaymaker | 85:d50ba0994676 | 481 | { |
AhmedPlaymaker | 85:d50ba0994676 | 482 | if(_backPressed == false) { |
AhmedPlaymaker | 85:d50ba0994676 | 483 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 484 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 485 | _lcd->drawSprite(24,0,22,51,(int *)BlockPixel); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 486 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 487 | _lcd->printString("Trust me!, You",0,3); |
AhmedPlaymaker | 85:d50ba0994676 | 488 | _lcd->printString("want to avoid",3,4); |
AhmedPlaymaker | 85:d50ba0994676 | 489 | _lcd->printString("these blocks!",3,5); |
AhmedPlaymaker | 85:d50ba0994676 | 490 | _lcd->refresh(); |
AhmedPlaymaker | 80:51ca38c5dcdf | 491 | |
AhmedPlaymaker | 85:d50ba0994676 | 492 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 493 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 494 | } |
AhmedPlaymaker | 85:d50ba0994676 | 495 | } |
AhmedPlaymaker | 85:d50ba0994676 | 496 | wait(0.3); |
AhmedPlaymaker | 78:10e5cc013806 | 497 | } |
AhmedPlaymaker | 85:d50ba0994676 | 498 | } |
AhmedPlaymaker | 85:d50ba0994676 | 499 | |
AhmedPlaymaker | 85:d50ba0994676 | 500 | void Tutorial::BlockTutorialB() |
AhmedPlaymaker | 85:d50ba0994676 | 501 | { |
AhmedPlaymaker | 85:d50ba0994676 | 502 | if(_backPressed == false) { |
AhmedPlaymaker | 85:d50ba0994676 | 503 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 504 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 505 | _lcd->drawSprite(24,0,22,51,(int *)BlockPixel); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 506 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 507 | _lcd->printString("Number on the",3,3); |
AhmedPlaymaker | 85:d50ba0994676 | 508 | _lcd->printString("block = total",3,4); |
AhmedPlaymaker | 85:d50ba0994676 | 509 | _lcd->printString("length reduced",0,5); |
AhmedPlaymaker | 85:d50ba0994676 | 510 | _lcd->refresh(); |
AhmedPlaymaker | 85:d50ba0994676 | 511 | |
AhmedPlaymaker | 85:d50ba0994676 | 512 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 513 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 514 | } |
AhmedPlaymaker | 85:d50ba0994676 | 515 | } |
AhmedPlaymaker | 85:d50ba0994676 | 516 | wait(0.3); |
AhmedPlaymaker | 85:d50ba0994676 | 517 | } |
AhmedPlaymaker | 85:d50ba0994676 | 518 | } |
AhmedPlaymaker | 85:d50ba0994676 | 519 | |
AhmedPlaymaker | 85:d50ba0994676 | 520 | void Tutorial::BlockTutorialC() |
AhmedPlaymaker | 85:d50ba0994676 | 521 | { |
AhmedPlaymaker | 85:d50ba0994676 | 522 | if(_backPressed == false) { |
AhmedPlaymaker | 85:d50ba0994676 | 523 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 524 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 525 | _lcd->drawSprite(24,0,22,51,(int *)BlockPixel); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 526 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 527 | _lcd->printString(";)You always",5,3); |
AhmedPlaymaker | 85:d50ba0994676 | 528 | _lcd->printString("have a chance",2,4); |
AhmedPlaymaker | 85:d50ba0994676 | 529 | _lcd->printString("to slide away",2,5); |
AhmedPlaymaker | 85:d50ba0994676 | 530 | _lcd->refresh(); |
AhmedPlaymaker | 85:d50ba0994676 | 531 | |
AhmedPlaymaker | 85:d50ba0994676 | 532 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 533 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 534 | } |
AhmedPlaymaker | 85:d50ba0994676 | 535 | } |
AhmedPlaymaker | 85:d50ba0994676 | 536 | wait(0.3); |
AhmedPlaymaker | 85:d50ba0994676 | 537 | } |
AhmedPlaymaker | 85:d50ba0994676 | 538 | } |
AhmedPlaymaker | 80:51ca38c5dcdf | 539 | |
AhmedPlaymaker | 85:d50ba0994676 | 540 | void Tutorial::FoodTutorial() |
AhmedPlaymaker | 85:d50ba0994676 | 541 | { |
AhmedPlaymaker | 85:d50ba0994676 | 542 | if(_backPressed == false) { |
AhmedPlaymaker | 85:d50ba0994676 | 543 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 544 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 545 | _lcd->drawSprite(24,0,22,51,(int *)FoodPixel); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 546 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 547 | _lcd->printString("Eat all of",10,3); |
AhmedPlaymaker | 85:d50ba0994676 | 548 | _lcd->printString("these if",17,4); |
AhmedPlaymaker | 85:d50ba0994676 | 549 | _lcd->printString("possible!!",15,5); |
AhmedPlaymaker | 85:d50ba0994676 | 550 | _lcd->refresh(); |
AhmedPlaymaker | 85:d50ba0994676 | 551 | |
AhmedPlaymaker | 85:d50ba0994676 | 552 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 553 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 554 | } |
AhmedPlaymaker | 85:d50ba0994676 | 555 | } |
AhmedPlaymaker | 85:d50ba0994676 | 556 | wait(0.3); |
AhmedPlaymaker | 85:d50ba0994676 | 557 | |
AhmedPlaymaker | 85:d50ba0994676 | 558 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 559 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 560 | _lcd->drawSprite(24,0,22,51,(int *)FoodPixel); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 561 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 562 | _lcd->printString("They will",14,3); |
AhmedPlaymaker | 85:d50ba0994676 | 563 | _lcd->printString("increase the",4,4); |
AhmedPlaymaker | 85:d50ba0994676 | 564 | _lcd->printString("snake's length",0,5); |
AhmedPlaymaker | 85:d50ba0994676 | 565 | _lcd->refresh(); |
AhmedPlaymaker | 85:d50ba0994676 | 566 | |
AhmedPlaymaker | 85:d50ba0994676 | 567 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 568 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 569 | } |
AhmedPlaymaker | 85:d50ba0994676 | 570 | } |
AhmedPlaymaker | 85:d50ba0994676 | 571 | wait(0.3); |
AhmedPlaymaker | 85:d50ba0994676 | 572 | } |
AhmedPlaymaker | 85:d50ba0994676 | 573 | } |
AhmedPlaymaker | 80:51ca38c5dcdf | 574 | |
AhmedPlaymaker | 85:d50ba0994676 | 575 | void Tutorial::BarrierTutorial() |
AhmedPlaymaker | 85:d50ba0994676 | 576 | { |
AhmedPlaymaker | 85:d50ba0994676 | 577 | if(_backPressed == false) { |
AhmedPlaymaker | 85:d50ba0994676 | 578 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 579 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 580 | _lcd->drawSprite(24,0,22,51,(int *)BarrierPixel); //Function used to draw the sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 581 | _lcd->drawSprite(0,0,9,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 582 | _lcd->printString(":(You cannot):",1,3); |
AhmedPlaymaker | 85:d50ba0994676 | 583 | _lcd->printString("pass through",7,4); |
AhmedPlaymaker | 85:d50ba0994676 | 584 | _lcd->printString("these barriers",0,5); |
AhmedPlaymaker | 85:d50ba0994676 | 585 | _lcd->refresh(); |
AhmedPlaymaker | 85:d50ba0994676 | 586 | |
AhmedPlaymaker | 85:d50ba0994676 | 587 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 588 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 589 | } |
AhmedPlaymaker | 85:d50ba0994676 | 590 | } |
AhmedPlaymaker | 85:d50ba0994676 | 591 | wait(0.3); |
AhmedPlaymaker | 78:10e5cc013806 | 592 | } |
AhmedPlaymaker | 85:d50ba0994676 | 593 | } |
AhmedPlaymaker | 85:d50ba0994676 | 594 | |
AhmedPlaymaker | 85:d50ba0994676 | 595 | void Tutorial::GeneralInfo() |
AhmedPlaymaker | 85:d50ba0994676 | 596 | { |
AhmedPlaymaker | 85:d50ba0994676 | 597 | if(_backPressed == false) { |
AhmedPlaymaker | 85:d50ba0994676 | 598 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 599 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 600 | _lcd->drawSprite(0,0,8,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 601 | _lcd->printString("IncreaseLength",0,1); |
AhmedPlaymaker | 85:d50ba0994676 | 602 | _lcd->printString("to a specific",0,2); |
AhmedPlaymaker | 85:d50ba0994676 | 603 | _lcd->printString("value to go",5,3); |
AhmedPlaymaker | 85:d50ba0994676 | 604 | _lcd->printString("through each",3,4); |
AhmedPlaymaker | 85:d50ba0994676 | 605 | _lcd->printString("level, and...",2,5); |
AhmedPlaymaker | 85:d50ba0994676 | 606 | _lcd->refresh(); |
AhmedPlaymaker | 85:d50ba0994676 | 607 | |
AhmedPlaymaker | 85:d50ba0994676 | 608 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 609 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 610 | } |
AhmedPlaymaker | 85:d50ba0994676 | 611 | } |
AhmedPlaymaker | 85:d50ba0994676 | 612 | wait(0.3); |
AhmedPlaymaker | 85:d50ba0994676 | 613 | |
AhmedPlaymaker | 85:d50ba0994676 | 614 | _lcd->clear(); |
AhmedPlaymaker | 85:d50ba0994676 | 615 | while ((_pad->check_event(Gamepad::START_PRESSED) == false)&&(_pad->check_event(Gamepad::A_PRESSED) == false)) { //if button pressed. |
AhmedPlaymaker | 85:d50ba0994676 | 616 | _lcd->drawSprite(0,0,8,19,(int *)Back); //Function used to draw the back sprite. |
AhmedPlaymaker | 85:d50ba0994676 | 617 | _lcd->printString("here's a TIP:",3,1); |
AhmedPlaymaker | 85:d50ba0994676 | 618 | _lcd->printString("speed up by",8,2); |
AhmedPlaymaker | 85:d50ba0994676 | 619 | _lcd->printString("curving across",0,3); |
AhmedPlaymaker | 85:d50ba0994676 | 620 | _lcd->printString("edges;)",21,4); |
AhmedPlaymaker | 85:d50ba0994676 | 621 | _lcd->printString("!!!!ENJOY!!!!",3,5); |
AhmedPlaymaker | 85:d50ba0994676 | 622 | _lcd->refresh(); |
AhmedPlaymaker | 85:d50ba0994676 | 623 | |
AhmedPlaymaker | 85:d50ba0994676 | 624 | if (Tutorial::checkBackPressed()) { |
AhmedPlaymaker | 85:d50ba0994676 | 625 | return; //if back is pressed, the function is terminated. |
AhmedPlaymaker | 85:d50ba0994676 | 626 | } |
AhmedPlaymaker | 85:d50ba0994676 | 627 | } |
AhmedPlaymaker | 85:d50ba0994676 | 628 | wait(0.3); |
AhmedPlaymaker | 85:d50ba0994676 | 629 | } |
AhmedPlaymaker | 60:d3a9e0e4a0de | 630 | } |