Added some images

This commit is contained in:
andreja6
2018-04-18 23:53:32 -07:00
parent 0a2b508290
commit 8a780d6f0b
7 changed files with 23 additions and 1 deletions

Binary file not shown.

BIN
content/font/comics.fnt Normal file

Binary file not shown.

BIN
content/font/terminal.fnt Normal file

Binary file not shown.

BIN
content/images/Run2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
content/images/rico16c.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
content/images/rico256c.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -258,6 +258,17 @@ void Demo::onSimulation(RealTime rdt, SimTime sdt, SimTime idt) {
//}
double getOSVersion() {
OSVERSIONINFO osvi;
ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&osvi);
std::string version = Convert(osvi.dwMajorVersion) + "." + Convert(osvi.dwMinorVersion);
return ::atof(version.c_str());
}
void Demo::onUserInput(UserInput* ui) {
if (ui->keyPressed(SDLK_ESCAPE)) {
// Even when we aren't in debug mode, quit on escape.
@@ -297,6 +308,14 @@ void Demo::onUserInput(UserInput* ui) {
app->setDebugMode(!app->debugMode());
}
}
if(ui->keyDown(SDLK_LCTRL))
{
if(ui->keyPressed('v'))
{
messageTime = System::time();
message = convert(getOSVersion());
}
}
if(ui->keyPressed(SDLK_F8))
{
index++;
@@ -581,7 +600,10 @@ int main(int argc, char** argv) {
//settings.useNetwork = false;
//settings.window.width = 1024;
//settings.window.height = 768;
settings.window.defaultIconFilename = GetFileInPath("/content/images/rico.png");
if(getOSVersion > 5.0)
settings.window.defaultIconFilename = GetFileInPath("/content/images/rico.png");
else
settings.window.defaultIconFilename = GetFileInPath("/content/images/rico256c.png");
settings.window.resizable = true;
App app = App(settings);