Building a self-contained game in C# under 2 kilobytes
1–10 of 42 posts
Re: Building a self-contained game in C# under 2 kilobytes
#2Sadly the video won’t play on my iPhone
Re: Building a self-contained game in C# under 2 kilobytes
#3Sadly the video won’t play on my iPhone
It's a webm, looks like Apple still didn't implement it on iPhones. Here is another version of the video on a website that may work better on iPhones: https://twitter.com/MStrehovsky/status/1742101904250060842
Re: Building a self-contained game in C# under 2 kilobytes
#4"Win32 is the only stable ABI on Linux" ;)
Re: Building a self-contained game in C# under 2 kilobytes
#5This is really cool, but it's funny to use C# primarily as an awkward substitute for C as you call Win32.
For most practical purposes, the default .NET 8 AOT is great if you really need native code.
Re: Building a self-contained game in C# under 2 kilobytes
#6I love the low level .NET stuff Michael Strehovsky makes. Microsoft has built a feature-rich and easy-to-use environment, but it makes .NET developers think there is only one way to use it: create csproj and call dotnet build.
But underneath the covers, there is an extremely powerful compiler (Roslyn) and build-system (msbuild). Combine that with the flexibility of C# and you can develop pretty much anything.
Re: Building a self-contained game in C# under 2 kilobytes
#7Someone with an iPhone told me the webm video embedded in the article still doesn't work on iPhones in 2024 so here's another link to the video: https://twitter.com/MStrehovsky/status/1742101904250060842
Re: Building a self-contained game in C# under 2 kilobytes
#8It is pretty impressive that even without third-party tools, the binary went from 64 MB to ~1 MB. IMO future versions of .NET should add more of such optimisation flags as default in a Release build.
Re: Building a self-contained game in C# under 2 kilobytes
#9Someone with an iPhone told me the webm video embedded in the article still doesn't work on iPhones in 2024 so here's another link to the video: https://twitter.com/MStrehovsky/status/1742101904250060842
[deleted]
Re: Building a self-contained game in C# under 2 kilobytes
#10He makes this look easy! Surprising how far you can take things with OOTB .NET.