frekasi
Hectopat
- Katılım
- 1 Şubat 2020
- Mesajlar
- 32
Merhabalar ,C#'da server Client ve oyun örneklerine bakıyordum yapan kişi Xna ile yapmış. fakat benim oyunum Form_Paint üzerinden yapıldı. Adamın kullandığı kod aşağıdaki gibi bunu nasıl form paintine göre uyarlayabilirim?
Private Void startnewgame(bool host = false)
{
This. Gamethread = New thread(delegate {
Using (Game1 Game = New Game1(this. Client, this. Username))
{
This. İsgamerunning = true;
game.Run();
}
});
this.gameThread.Start();
this.gameThread.Join();
}
Private Void startnewgame(bool host = false)
{
This. Gamethread = New thread(delegate {
Using (Game1 Game = New Game1(this. Client, this. Username))
{
This. İsgamerunning = true;
game.Run();
}
});
this.gameThread.Start();
this.gameThread.Join();
}
Son düzenleyen: Moderatör: