SplashkitTest 1.0.2

dotnet add package SplashkitTest --version 1.0.2
                    
NuGet\Install-Package SplashkitTest -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SplashkitTest" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SplashkitTest" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="SplashkitTest" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SplashkitTest --version 1.0.2
                    
#r "nuget: SplashkitTest, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SplashkitTest@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SplashkitTest&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=SplashkitTest&version=1.0.2
                    
Install as a Cake Tool

Splashkit NuGet Package

The Splashkit NuGet package provides a .NET Standard library for creating 2D games and applications using the Splashkit framework. Splashkit is a free and open-source game development library that simplifies the process of building games and interactive applications.

Features

  • 2D Graphics: Draw shapes, images, and text to the screen with ease.
  • Input Handling: Respond to keyboard, mouse, and touch input.
  • Audio: Play sounds and music in your applications.
  • Networking: Communicate with other clients and servers over the network.
  • File I/O: Load and save data to files.
  • Math Utilities: Perform common mathematical operations.
  • Timers and Scheduling: Schedule events and manage game time.

Getting Started

To use the Splashkit NuGet package in your .NET project, follow these steps:

  1. Install the Package: You can install the Splashkit NuGet package using the NuGet Package Manager in Visual Studio or by running the following command in the Package Manager Console:

    Install-Package Splashkit
    
  2. Import the Namespace: In your C# code, add the following using statement to access the Splashkit classes and methods:

    using Splashkit;
    
  3. Create a Splashkit Window: To start using Splashkit, you'll need to create a window for your application. Here's an example:

    void Main()
    {
        OpenWindow("My Splashkit App", 800, 600);
    
        // Your game or application code goes here
    
        CloseWindow();
    }
    
  4. Explore the Documentation: The Splashkit documentation provides detailed information about the available classes, methods, and features. You can find the documentation on the Splashkit website.

Examples

Here are a few examples of how you can use the Splashkit NuGet package:

Drawing a Circle
void Main()
{
    OpenWindow("Drawing a Circle", 800, 600);

    DrawCircle(Color.Blue(), 400, 300, 50);

    WaitUntilKeyPressed();
    CloseWindow();
}
Playing a Sound
void Main()
{
    OpenWindow("Playing a Sound", 800, 600);

    LoadSound("coin", "coin.wav");
    PlaySound("coin");

    WaitUntilKeyPressed();
    CloseWindow();
}
Responding to Mouse Input
void Main()
{
    OpenWindow("Mouse Input", 800, 600);

    while (!WindowCloseRequested())
    {
        if (MouseClicked(MouseButton.LeftButton()))
        {
            int x, y;
            ReadMousePosition(out x, out y);
            DrawCircle(Color.Red(), x, y, 20);
        }

        RefreshWindow();
    }

    CloseWindow();
}

Contributing

If you'd like to contribute to the Splashkit NuGet package, please visit the Splashkit GitHub repository and follow the contribution guidelines.

License

The Splashkit NuGet package is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 279 5/13/2024
1.0.1 170 5/12/2024
1.0.0 188 5/6/2024