Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

SFML C# .NET Core. Rotating Hello World

$
0
0

Install VSCode and .NET Core SDK. Follow the instruction: https://code.visualstudio.com/docs/languages/dotnet

Create and an empty folder and go to it:

cd RotatingHelloWorldSfmlDotNetCoreCSharp

Create a new console application by executing this command:

dotnet new console

Install SFML.NET:

dotnet add package SFML.Net --version 2.5.0

Open VSCode by typing the command in the console:

code .

Copy and pasta the code below and run the app using the command:

dotnet run
using System;
using SFML.Window;
using SFML.Graphics;
using SFML.System;

namespace RotatingHelloWorldSfmlDotNetCoreCSharp
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Press ESC …

Viewing all articles
Browse latest Browse all 17625

Trending Articles