此処も
テクニカル諏訪子 <suwako@076.moe>、2026-07-13 10:24
コミット 6807e723031b8af0b473b9c9cab861577be1456e
・親 15d85ea
・ファイルを見る
2個のファイル、+7 -0
大き過ぎるので表示しません
変更
main.cc
| @@ -3,6 +3,8 @@ | ||
| 3 | 3 | #include <tetris/sys/sndman.hh> |
| 4 | 4 | #include <raylib.h> |
| 5 | 5 | |
| 6 | +#include <tetris/ass/icon.hh> | |
| 7 | + | |
| 6 | 8 | constexpr i32 screenWidth = 900; |
| 7 | 9 | constexpr i32 screenHeight = 700; |
| 8 | 10 | |
| @@ -12,6 +14,11 @@ | ||
| 12 | 14 | #endif |
| 13 | 15 | SetConfigFlags(FLAG_WINDOW_RESIZABLE); |
| 14 | 16 | InitWindow(screenWidth, screenHeight, "テトリス"); |
| 17 | + | |
| 18 | + Image icon = LoadImageFromMemory(".png", __ass_icon_png, __ass_icon_png_len); | |
| 19 | + SetWindowIcon(icon); | |
| 20 | + UnloadImage(icon); | |
| 21 | + | |
| 15 | 22 | tetris::sys::SndMan::Get().Init(); |
| 16 | 23 | SetExitKey(KEY_NULL); |
| 17 | 24 | SetTargetFPS(120); |