![]() |
VOOZH | about |
dotnet add package MonoGame.SplineFlower --version 3.0.0
NuGet\Install-Package MonoGame.SplineFlower -Version 3.0.0
<PackageReference Include="MonoGame.SplineFlower" Version="3.0.0" />
<PackageVersion Include="MonoGame.SplineFlower" Version="3.0.0" />Directory.Packages.props
<PackageReference Include="MonoGame.SplineFlower" />Project file
paket add MonoGame.SplineFlower --version 3.0.0
#r "nuget: MonoGame.SplineFlower, 3.0.0"
#:package MonoGame.SplineFlower@3.0.0
#addin nuget:?package=MonoGame.SplineFlower&version=3.0.0Install as a Cake Addin
#tool nuget:?package=MonoGame.SplineFlower&version=3.0.0Install as a Cake Tool
Create wonderful smooth Bézier-, CatMulRom- and Hermite-Splines with TriggerEvents for your MonoGame project.
The Visual Studio 2022 solution contains the following projects:
So what can this library actually do for you? [Watch the Video!] (Outdated!)
Despite drawing simple lines, it generates very smooth BézierCurves, BézierSplines, CatMulRomSplines and HermiteSplines pretty fast, because it uses polynomial math formulas behind the scenes.
This makes it possible to generate:
Did you notice the different colors of the control points? You can set them in 3 different modes:
Note: A CatmulRomSpline will always have its control points in the Free mode!
You can change control modes simply by clicking on them with the Right Mouse Button in the:
It is also possible to create looped splines as you can see! With the Middle Mouse Button you can drag the whole spline to keep the overview.
Did you noticed the nice little car on the picture? This is a SplineWalker.
A SplineWalker can, well... walk on splines 😃 or drive on it like in the case of a car, hehe.
You have the abillity to create your own SplineWalkers by inheritting from the SplineWalker class mentioned above.
This could look like this:
public class Car : SplineWalker
{
public override void CreateSplineWalker(BezierSpline spline, SplineWalkerMode mode, int duration, bool canTriggerEvents = true, bool autoStart = true)
{
base.CreateSplineWalker(spline, mode, duration, canTriggerEvents, autoStart);
}
protected override void EventTriggered(Trigger obj)
{
base.EventTriggered(obj);
}
public override void Update(GameTime gameTime)
{
base.Update(gameTime);
}
public override void Draw(SpriteBatch spriteBatch)
{
base.Draw(spriteBatch);
}
}
Click here to see a full integration example.
A nice thing about a SplineWalker is, that he can trigger custom events on a spline while he walks along the spline.
You can define your own Trigger with the TriggerEditor:
It is reachable from the main editor through the Tools button.
A SplineWalker also has 3 different built-in movement modes:
It's also possible to define different trigger directions:
Note: It's also possible to control a SplineWalker with your Keyboard or GamePad if you wish so!
You can do pretty much anything with splines. The limit is really just your imagination. Play around with the samples and learn from it.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on MonoGame.SplineFlower:
| Package | Downloads |
|---|---|
|
MonoGame.SplineFlower.Content.Pipeline
Load json spline data with the content pipeline of MonoGame. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 856 | 6/24/2025 |
| 2.2.1 | 936 | 8/4/2023 |
| 2.2.0 | 1,155 | 5/4/2022 |
| 2.1.0 | 996 | 4/5/2022 |
| 2.0.0 | 975 | 3/21/2021 |
| 1.5.0.1 | 1,085 | 11/17/2020 |
| 1.5.0 | 1,113 | 10/16/2020 |
| 1.4.0 | 1,133 | 3/12/2020 |
| 1.3.0.1 | 1,148 | 10/22/2019 |
| 1.3.0 | 1,255 | 3/5/2019 |
| 1.2.0 | 1,250 | 2/27/2019 |
| 1.1.0 | 1,458 | 9/4/2018 |
| 1.0.0 | 1,424 | 8/28/2018 |