-\r
-void intro() {\r
- static int progress = 0;\r
- switch (progress) {\r
- case 0:\r
- print_text(4, 2, "Move with left/right.", text_speed);\r
-\r
- progress++;\r
- break;\r
- case 1:\r
- update_play(false);\r
- if (x == 17) {\r
- print_text(4, 4, "Jump with up.", text_speed);\r
- print_text(4, 6, "Stand on x.", text_speed);\r
- progress++;\r
- }\r
- break;\r
- case 2:\r
- update_play();\r
- if (x == 22) {\r
- print_text(4, 8, "Collect ? for ???.", text_speed);\r
- progress++;\r
- }\r
- break;\r
- case 3:\r
- update_play(true, 0, 33);\r
- if (get_block(x, y) == '?') {\r
- print_text(4, 10, "Avoid /\\.", text_speed);\r
- progress++;\r
- }\r
- break;\r
- case 4:\r
- update_play();\r
- if (x == 39) {\r
- print_text(4, 14, "Finish lvl by reaching O.", text_speed);\r
- progress++;\r
- }\r
- break;\r
- case 5:\r
- update_play();\r
- if (get_block(x, y) == 'O') {\r
- load_level(1);\r
- }\r
- break;\r
- }\r
+void close_notepad() {\r
+ TerminateProcess(pi.hProcess, 0);\r
+ CloseHandle(pi.hProcess);\r
+ CloseHandle(pi.hThread);\r