此処も

テクニカル諏訪子 <suwako@076.moe>、2026-07-13 10:24
コミット 6807e723031b8af0b473b9c9cab861577be1456e ・親 15d85ea ・ファイルを見る

2個のファイル、+7 -0

大き過ぎるので表示しません

変更 main.cc
@@ -3,6 +3,8 @@
33 #include <tetris/sys/sndman.hh>
44 #include <raylib.h>
55
6+#include <tetris/ass/icon.hh>
7+
68 constexpr i32 screenWidth = 900;
79 constexpr i32 screenHeight = 700;
810
@@ -12,6 +14,11 @@
1214 #endif
1315 SetConfigFlags(FLAG_WINDOW_RESIZABLE);
1416 InitWindow(screenWidth, screenHeight, "テトリス");
17+
18+ Image icon = LoadImageFromMemory(".png", __ass_icon_png, __ass_icon_png_len);
19+ SetWindowIcon(icon);
20+ UnloadImage(icon);
21+
1522 tetris::sys::SndMan::Get().Init();
1623 SetExitKey(KEY_NULL);
1724 SetTargetFPS(120);