Skip to content

Instantly share code, notes, and snippets.

Avatar

John Girvin johngirvin

  • Northern Ireland
View GitHub Profile
@johngirvin
johngirvin / ptplayer.s
Last active Sep 6, 2020
Amiga ptplayer replay routine v5.4 (beta) adapted to allocate audio channels and CIA timer interrupts from AmigaOS
View ptplayer.s
;**************************************************
;* ----- Protracker V2.3B Playroutine ----- *
;**************************************************
;
; Version 5.4
; Written by Frank Wille in 2013, 2016, 2017, 2018, 2019, 2020.
;
; I, the copyright holder of this work, hereby release it into the
; public domain. This applies worldwide.
;
@johngirvin
johngirvin / draw_poly.s
Created Sep 1, 2020
Render an n-sided convex polygon into an 8-bit chunky buffer (Amiga, 68000)
View draw_poly.s
;
; Part of StarCrusaderPatch
; StarCrusaderPatch is (c) 1999 John Girvin, All Rights Reserved
; http://aminet.net/package/game/patch/StarCrusaderPa
;
;--------------------------------------------------------------------------------
_draw_poly:
; Render an n-sided convex polygon into an 8-bit chunky buffer
View godot-macos-export-and-notarize.sh
#!/bin/bash
PROJ="/path/to/your/project/"
NAME="MyAwesomeGame"
SVER="1.0.0"
GODOT="/Applications/Godot.app/Contents/MacOS/Godot --path ${PROJ}/src"
###
# Mac OSX (RELEASE)
View genesis_public_key
044a2d2fb387203e7282964ade36369a05ec6345adc4b99bdf92229f136069c448f44a957218aadef8ec7c472a32b0525ec71408de6436560814bf56abdb910f31
@johngirvin
johngirvin / LowResScene.cpp
Created Jan 8, 2018
Cocos2D-X 2D Camera Test
View LowResScene.cpp
#include "LowResScene.h"
NewCamera* NewCamera::createOrthographic(float zoomX, float zoomY, float nearPlane, float farPlane)
{
auto ret = new (std::nothrow) NewCamera();
if (ret)
{
ret->initOrthographic(zoomX, zoomY, nearPlane, farPlane);
ret->autorelease();
return ret;
View TransformComponent2D.diff
diff --git a/Source/MonoGame.Extended.Entities/Entities/TransformComponent2D.cs b/Source/MonoGame.Extended.Entities/Entities/TransformComponent2D.cs
index 9f025a1..9a25f7f 100644
--- a/Source/MonoGame.Extended.Entities/Entities/TransformComponent2D.cs
+++ b/Source/MonoGame.Extended.Entities/Entities/TransformComponent2D.cs
@@ -167,7 +168,7 @@ namespace MonoGame.Extended.Entities
if (Parent != null)
{
Parent.GetWorldMatrix(out matrix);
- Matrix2D.Multiply(ref matrix, ref localMatrix, out matrix);
+ Matrix2D.Multiply(ref localMatrix, ref matrix, out matrix);
View SpriteRenderSystem.cs
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using MonoGame.Extended.Entities;
using Niv.ECS.Components;
using static Niv.Debug.Log;
namespace Niv.ECS.Systems
{
@johngirvin
johngirvin / XmlReader.cs
Created Apr 10, 2017
Run libGDX XmlReader.rl through Ragel to produce a partial C# conversion.
View XmlReader.cs
/*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@johngirvin
johngirvin / main.lua
Created Sep 21, 2016
Gideros Mobile Bunnymark
View main.lua
local bunnies = 0
local frames = 0
local frameTime = 0
local min_x = 13
local min_y = 19
local max_x = application:getLogicalWidth()-13
local max_y = application:getLogicalHeight()-19
View bunnymark.cpp
#include "SDL.h"
#include "windows.h"
#include <ctime>
#include <cstdarg>
#include <vector>
SDL_DisplayMode mode;
SDL_Window *window;
SDL_Renderer *renderer;
You can’t perform that action at this time.