Skip to content

Instantly share code, notes, and snippets.

View lewiji's full-sized avatar
😸

Lewis James lewiji

😸
View GitHub Profile
public partial class Main : Control
{
AudioStreamPlayer _audioStreamPlayer = default!;
AudioStreamGenerator _streamGenerator = default!;
AudioStreamPlayback _streamPlayback = default!;
SineWave _sineWave = new SineWave();
int _sampleHz = 22050;
int _pulseHz = 440;

Godot dotnet6 branch notes

Update 22/04/22

I've managed to get Windows MSVC editor builds working about as well as Linux builds on my fork: https://github.com/lewiji/godot/tree/dotnet6

This fork includes patches mentioned in the details below for libicu compatibility, as well as specific fixes for MSVC compatibility.

I've also set up Github CI builds there which should be working for both Linux and Windows editors (unsure about export templates though at least the Linux ones are building currently).

@lewiji
lewiji / dotnet6_commit.md
Last active March 14, 2022 09:49
Neikaq dotnet6 commits

Commits on Feb 27, 2022


In the past, the Godot editor distributed the API assemblies and copied them to project directories for projects to reference them. This changed with the move to .NET 5/6. Godot no longer copies the assemblies to project directories. However, the project Sdk still

@lewiji
lewiji / godot_mono_gridmap_cellular_automata.mdx
Last active March 6, 2021 16:33
Godot C# Gridmap Cellular Automata sample code from my game DUNGEN PAPAÑCA

Godot Mono (C#) Gridmap Cellular Automata

This is some sample code for some cellular automata based generation I've been working on in Godot for the last couple of days.

It probably won't work if just dropped into your project but it should give a good reference for doing something similar.

MapGen.cs

using System;