Skip to content

Instantly share code, notes, and snippets.

View Apostolique's full-sized avatar
💭
Working on Rashtal.

Jean-David Moisan Apostolique

💭
Working on Rashtal.
View GitHub Profile
@Apostolique
Apostolique / TWColor.cs
Last active March 28, 2023 21:12
Tailwind CSS colors for MonoGame
using Microsoft.Xna.Framework;
namespace GameProject {
/// <summary>
/// Preview the colors: https://tailwindcss.com/docs/customizing-colors#color-palette-reference
/// </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>
@Apostolique
Apostolique / lilypond-invoke-editor
Created April 19, 2021 05:17
LilyPond point and click Windows 10
#!/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 <janneke@gnu.org>
;;;; 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
Apostolique / CSharpGettingStarted.md
Last active March 16, 2019 12:41
How to get started with C# guide
@Apostolique
Apostolique / TileShader.fx
Created October 5, 2018 20:26
Tile Shader for Rashtal
sampler TextureSampler : register(s0);
float2 ViewportSize;
float2 TextureSize;
float4x4 ScrollMatrix;
Texture2D GrassTile;
Texture2D DirtTile;
Texture2D VulcanicTile;
SamplerState GrassSampler
{
Texture = ( GrassTile );
@Apostolique
Apostolique / Camera2D.cs
Last active March 27, 2018 15:31
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;