Skip to content

Instantly share code, notes, and snippets.

Working on Rashtal.

Jean-David Moisan Apostolique

Working on Rashtal.
View GitHub Profile
View Camera2D.cs
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using MonoGame.Extended.ViewportAdapters;
namespace MonoGame.Extended
public class Camera2D : IMovable, IRotatable
private readonly ViewportAdapter _viewportAdapter;
Apostolique / TileShader.fx
Created Oct 5, 2018
Tile Shader for Rashtal
View TileShader.fx
sampler TextureSampler : register(s0);
float2 ViewportSize;
float2 TextureSize;
float4x4 ScrollMatrix;
Texture2D GrassTile;
Texture2D DirtTile;
Texture2D VulcanicTile;
SamplerState GrassSampler
Texture = ( GrassTile );
Apostolique /
Last active Mar 16, 2019
How to get started with C# guide
Apostolique / lilypond-invoke-editor
Created Apr 19, 2021
LilyPond point and click Windows 10
View lilypond-invoke-editor
#!/home/gub/NewGub/gub/target/tools/root/usr/bin/guile -s
;;;; lilypond-invoke-editor.scm -- Invoke an editor in file:line:column mode
;;;; Copyright (C) 2005--2015 Jan Nieuwenhuizen <>
;;;; This file is part of LilyPond, the GNU music typesetter.
;;;; LilyPond is free software: you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
Apostolique / TWColor.cs
Last active Dec 10, 2021
Tailwind CSS colors for MonoGame
View TWColor.cs
using Microsoft.Xna.Framework;
namespace GameProject {
/// <summary>
/// Preview the colors:
/// </summary>
public class TWColor {
/// <summary>Black color (R:0,G:0,B:0,A:255).</summary>
public static readonly Color Black = new Color(0, 0, 0);
/// <summary>White color (R:255,G:255,B:255,A:255).</summary>