![]() |
VOOZH | about |
dotnet add package Doprez.Stride --version 3.0.0
NuGet\Install-Package Doprez.Stride -Version 3.0.0
<PackageReference Include="Doprez.Stride" Version="3.0.0" />
<PackageVersion Include="Doprez.Stride" Version="3.0.0" />Directory.Packages.props
<PackageReference Include="Doprez.Stride" />Project file
paket add Doprez.Stride --version 3.0.0
#r "nuget: Doprez.Stride, 3.0.0"
#:package Doprez.Stride@3.0.0
#addin nuget:?package=Doprez.Stride&version=3.0.0Install as a Cake Addin
#tool nuget:?package=Doprez.Stride&version=3.0.0Install as a Cake Tool
A bundle of Stride related libraries.
public class PlayerController : SyncScript
{
[DataMember(0)]
public Keys ForwardKey { get; set; }
[DataMember(1)]
public Keys BackwardKey { get; set; }
[DataMember(2)]
public Keys RightKey { get; set; }
[DataMember(3)]
public Keys LeftKey { get; set; }
[DataMember(100)]
public Keys Interact { get; set; }
[DataMember(200)]
public Keys JumpKey { get; set; }
private PlayerMover _playerMover;
private Raycast _raycast;
public override void Start()
{
_playerMover = Entity.GetComponent<PlayerMover>();
_raycast = Entity.GetComponent<Raycast>();
Input.Mouse.LockPosition(true);
}
public override void Update()
{
MovePlayer();
RotateCamera();
Jump();
PlayerRaycast();
}
private void MovePlayer()
{
Vector2 movement = Vector2.Zero;
if (Input.IsKeyDown(ForwardKey))
{
movement.Y += 1;
}
if (Input.IsKeyDown(BackwardKey))
{
movement.Y -= 1;
}
if (Input.IsKeyDown(RightKey))
{
movement.X += 1;
}
if (Input.IsKeyDown(LeftKey))
{
movement.X -= 1;
}
_playerMover.MovePlayer(movement);
}
private void RotateCamera()
{
_playerMover.UpdateCameraRotation(Input.Mouse.Delta * 100);
}
private void Jump()
{
if (Input.IsKeyPressed(JumpKey))
{
_playerMover.Jump();
}
}
//Example of the Raycast Component usage to store a HitResult in the result variable
private void PlayerRaycast()
{
if (Input.IsKeyPressed(Interact))
{
var result = _raycast.RayCast(_playerMover.CameraPivot);
}
}
}
| 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 Doprez.Stride:
| Package | Downloads |
|---|---|
|
Doprez.Stride.AI
AI libraries to be used within Stride games |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 431 | 12/15/2023 |
| 2.1.0 | 280 | 9/21/2023 |
| 2.0.0 | 293 | 7/12/2023 |
| 1.2.5 | 352 | 4/21/2023 |
| 1.2.4 | 446 | 4/12/2023 |
| 1.2.3 | 337 | 4/5/2023 |
| 1.2.2 | 377 | 3/27/2023 |
| 1.2.1 | 401 | 3/10/2023 |
| 1.2.0 | 392 | 3/1/2023 |
| 1.1.2 | 386 | 2/25/2023 |
| 1.1.1 | 470 | 2/9/2023 |
| 1.1.0 | 423 | 2/8/2023 |
| 1.0.9 | 617 | 1/27/2023 |
| 1.0.8 | 608 | 9/5/2022 |
| 1.0.7 | 606 | 9/4/2022 |
| 1.0.6 | 617 | 8/29/2022 |
| 1.0.5 | 601 | 8/29/2022 |
| 1.0.4 | 651 | 8/15/2022 |
| 1.0.3 | 619 | 8/14/2022 |
| 1.0.2 | 597 | 8/14/2022 |