Skip to content

Instantly share code, notes, and snippets.

View Doprez's full-sized avatar
⚠️
Not a real dog!

Doprez

⚠️
Not a real dog!
View GitHub Profile
@w0wca7a
w0wca7a / CameraShake.cs
Last active April 2, 2025 05:37
Script provides Camera Shaking in Stride Game Engine
// Copyright (c) Stride contributors (https://stride3d.net).
// Distributed under the MIT license.
using Stride.Core.Mathematics;
using Stride.Engine;
using Stride.Input;
using System;
using System.Threading;
using System.Threading.Tasks;
@w0wca7a
w0wca7a / TestPopup.cs
Last active March 27, 2025 00:36
Сomponent for Stride Game Engine shows Popup text above entity
using System.Linq;
using Stride.Core;
using Stride.Core.Annotations;
using Stride.Engine;
using Stride.Rendering;
using Stride.Core.Mathematics;
using Stride.UI;
using Stride.UI.Panels;
using Stride.UI.Controls;
using Stride.Graphics;
@w0wca7a
w0wca7a / EllipticalMovementRotateEntity.cs
Last active March 27, 2025 17:04
Движение объекта по эллипсу и вращение относительно оси движения. Motion of an object along an ellipse and rotation about the axis of motion. Script for Stride Game Engine
// Copyright (c) Stride contributors (https://stride3d.net).
// Distributed under the MIT license.
using System;
using Stride.Core.Mathematics;
using Stride.Engine;
[Display("Elliptical Movement with Entity Rotation")]
[ComponentCategory("Movements")]
[DataContract(nameof(EllipticalMovementRotateEntity))]
@w0wca7a
w0wca7a / GalaxyCreator.cs
Last active March 27, 2025 00:37
[WIP] Random galaxies creation in Stride Game Engine. For use, drag and drop script to scene entities list. Add one or more materials to materials list, otherwise generator will be ignored.
// Copyright (c) Stride contributors (https://stride3d.net).
// Distributed under the MIT license.
using System;
using System.Collections.Generic;
using Stride.Core.Mathematics;
using Stride.Engine;
using Stride.Core;
using Stride.Rendering;
using Stride.Core.Annotations;
// Copyright (c) Stride contributors (https://stride3d.net).
// Distributed under the MIT license.
using System;
using System.Collections.Generic;
using Stride.Core.Mathematics;
using Stride.Rendering;
using Stride.Games;
using Stride.Graphics;
using Buffer = Stride.Graphics.Buffer;
// Copyright (c) Stride contributors (https://stride3d.net).
// Distributed under the MIT license.
using Stride.Rendering.Materials.ComputeColors;
using Stride.Rendering.Materials;
using Stride.Core.Mathematics;
using Stride.Rendering;
using Stride.Graphics;
namespace MaterialExt
shader Training1 : ComputeColor, Texturing
{
override float4 Compute()
{
//float r,g,b;
float r = 0.2f;
float g = 0.2f;
float b = 0.57f;
float time = (Global.Time) * 4.0f;
@itn3000
itn3000 / RetrieveInputKeyEventWithR3.cs
Last active April 28, 2024 21:23
how to retrieve input event with R3 and Stride3d
using System;
using Stride.Engine;
using Stride.Input;
using R3;
namespace RetrieveInputKeyEventWithR3;
public class RetriveKeyEventScript: StartupScript
{
public override Start()
@waquwex
waquwex / StrideAsyncScript.cs
Created February 24, 2024 15:43
Stride SpriteSheet anim with AsyncScript
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Stride.Core.Mathematics;
using Stride.Input;
using Stride.Engine;
using System.Diagnostics;
using Stride.Graphics;
@adrsch
adrsch / PlayerController.cs
Created October 25, 2023 19:59
PlayerController, messy
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
/*
* PARTS OF THIS FILE ARE MODIFICATIONS OF QUAKE 3 CODE UNDER THE FOLLOWING:
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it