-
-
Save Reputeless/7c10a22d080468e239183b16fb670e34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <Siv3D.hpp> // Siv3D v0.6.12 | |
void Main() | |
{ | |
Window::Resize(1280, 720); | |
Window::SetTitle(U"Siv3D Game v1.0"); | |
Scene::SetBackground(ColorF{ 0.6, 0.8, 0.7 }); | |
const Font font{ FontMethod::MSDF, 48, Typeface::Bold }; | |
while (System::Update()) | |
{ | |
font(U"Siv3D Game").drawAt(120, Vec2{ 640, 200 }, ColorF{ 0.96 }); | |
if (SimpleGUI::ButtonAt(U"Quit", Vec2{ 640, 600 }, 120)) | |
{ | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment