Skip to content

Instantly share code, notes, and snippets.

View dmitriy-shmilo's full-sized avatar
🇺🇦

Dmitriy Shmilo dmitriy-shmilo

🇺🇦
  • Odessa, Ukraine
View GitHub Profile
@CowThing
CowThing / pixel_perfect.gd
Last active August 24, 2025 04:53
Pixel perfect scaling script for Godot 3.1
extends Node
"""
An autoload singleton for pixel perfect rendering of the game.
Set this script as an autoload.
`base_size` - Is the target size of the viewport. The viewport will scale up to fit the largest
possible integer multiple of this size within the window.
`expand` - If true the viewport will expand to the edges of the window after scaling up.
@RobThree
RobThree / gameconsole.cs
Created October 17, 2017 08:42
OneLoneCoder GameConsole inspired C# version; work in progress and not a 1:1 conversion. API differs, tried to stay more close to dotnet best practices.
using Microsoft.Win32.SafeHandles;
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
namespace ConsoleEngine
{