(First of all, I wrote using a translator, so I’m sorry if the sentence is weird)
Hello! Do you know the game called Osu!? Osu is a rhythm game, and Osu can download and play the user’s own bitmap. I want to make a game like Osu! using Unity, but I’ve had a few issues. Please help When you open the bitmap of Osu!, if the game is not running, let the game run and then parse the bitmap. If the game doesn’t run when you open the bitmap of Osu!, run the game and then parse the bitmap. If the game is running, focus on the game screen and process the bitmap I want to make it this way I want to create a custom compressed file (e.g. BeatMap.MyRhythmGame) with information about the bitmap, and when I open the bitmap file, I want to run the game like Osu and then parse the bitmap or focus the game screen and process the bitmap
I asked ChatGPT, and it instructed me to add a custom file to the Windows registry. After adding the custom file to the registry, my game actually launched when I opened a bitmap file. It also taught me how to launch the game and parse the bitmap.
string[] args = System.Environment.GetCommandLineArgs();
if (args.Length > 1)
{
string filePath = args[1];
if (File.Exists(filePath) && Path.GetExtension(filePath).Equals(".myRhythmGame", System.StringComparison.OrdinalIgnoreCase))
{
LoadAndInitializeGame(filePath);
}
}
Thanks to GPT, I solved the number of times the game wasn’t running when I opened the bitmap, but I couldn’t solve focusing on the game scene and parsing the bitmap when the game was running. I couldn’t solve it by the way GPT told me.
user25501056 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.