Skip to content

Instantly share code, notes, and snippets.

@Reputeless
Last active October 21, 2023 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Reputeless/7c10a22d080468e239183b16fb670e34 to your computer and use it in GitHub Desktop.
Save Reputeless/7c10a22d080468e239183b16fb670e34 to your computer and use it in GitHub Desktop.
# 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