Gamem 1.1.0
Prefix ReservedSee the version list below for details.
dotnet add package Gamem --version 1.1.0
NuGet\Install-Package Gamem -Version 1.1.0
<PackageReference Include="Gamem" Version="1.1.0" />
<PackageVersion Include="Gamem" Version="1.1.0" />
<PackageReference Include="Gamem" />
paket add Gamem --version 1.1.0
#r "nuget: Gamem, 1.1.0"
#:package Gamem@1.1.0
#addin nuget:?package=Gamem&version=1.1.0
#tool nuget:?package=Gamem&version=1.1.0
Gamem
🎮 This library allows you to use physics and math methods for developing your games 👾
If you want to use Geometry methods you can use my another library → GeometrySharp
Installation
Type this command:
dotnet add package Gamem
How to use
To use Gamem methods type this:
using Gamem;
Examples
🧮 Math
// Generates a random number between 2.5 and 7.5
float speed = MathGamem.RandomRange(2.5f, 7.5f);
// Smoothly interpolates from 0.0 to 100.0 based on progress (0.0 to 1.0)
double currentAlpha = MathGamem.SmoothStep(0.0, 100.0, progress);
🏃 Physics
Friction and gravity
double velocityX = 10.0;
double velocityY = 0.0;
double deltaTime = 0.016; // 60 FPS
// Apply gravity if the character is in the air
double gravity = -9.81;
velocityY = Physics.ApplyGravity(velocityY, gravity, deltaTime);
// Apply friction to slow down the character on the ground
double friction = 5.0;
velocityX = Physics.ApplyFriction(velocityX, friction, deltaTime);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 is compatible. 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 is compatible. 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. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Gamem:
| Package | Downloads |
|---|---|
|
Gamem.Godot
Gamem extension for Godot (supports vectors) |
|
|
Gamem.Stride
Gamem extension for Stride (supports vectors) |
|
|
Gamem.MonoGame
Gamem extension for MonoGame (supports vectors) |
|
|
Gamem.Unity
Gamem extension for Unity (supports vectors) |
GitHub repositories
This package is not used by any popular GitHub repositories.
1.1.0 is out!
Check the full changelog on GitHub!
https://github.com/nicky-suss/Gamem/releases