full implementation!
bug: level generation will generate nullptrs
This commit is contained in:
45
src/result.cc
Normal file
45
src/result.cc
Normal file
@ -0,0 +1,45 @@
|
||||
#include "result.h"
|
||||
|
||||
|
||||
const char *WIN_SCREEN =
|
||||
"+-----------------------------------------------------------------------------+\
|
||||
| |\
|
||||
| |\
|
||||
| |\
|
||||
| |\
|
||||
| ___________ |\
|
||||
| '._==_==_=_.' |\
|
||||
| .-\\: /-. |\
|
||||
| | (|:. |) | |\
|
||||
| '-|:. |-' |\
|
||||
| \\::. / |\
|
||||
| '::. .' |\
|
||||
| ) ( |\
|
||||
| _.' '._ |\
|
||||
| `.......` |\
|
||||
| |\
|
||||
| |\
|
||||
| |\
|
||||
| |\
|
||||
| |\
|
||||
| |\
|
||||
| |\
|
||||
| |\
|
||||
| |\
|
||||
| > |\
|
||||
| |\
|
||||
| |\
|
||||
| |\
|
||||
| |\
|
||||
+-----------------------------------------------------------------------------+";
|
||||
|
||||
const position &MSG_START = {11, 24};
|
||||
|
||||
void game_result::run(input *in) {
|
||||
in->get_command();
|
||||
}
|
||||
|
||||
void game_result::print(display *out) {
|
||||
out->print_str({0, 0}, WIN_SCREEN);
|
||||
out->print_str(MSG_START, msg, COLOR_PAIR(COLOR_YELLOW));
|
||||
}
|
Reference in New Issue
Block a user