the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 27 lines 603 B view raw
1#include "stdafx.h" 2#include "ErrorScreen.h" 3 4ErrorScreen::ErrorScreen(const wstring& title, const wstring& message) 5{ 6 this->title = title; 7 this->message = message; 8} 9 10void ErrorScreen::init() 11{ 12} 13 14void ErrorScreen::render(int xm, int ym, float a) 15{ 16 // fill(0, 0, width, height, 0x40000000); 17 fillGradient(0, 0, width, height, 0xff402020, 0xff501010); 18 19 drawCenteredString(font, title, width/2, 90, 0xffffff); 20 drawCenteredString(font, message, width/2, 110, 0xffffff); 21 22 Screen::render(xm, ym, a); 23} 24 25void ErrorScreen::keyPressed(wchar_t eventCharacter, int eventKey) 26{ 27}