Skip to content

Instantly share code, notes, and snippets.

View JoshEngebretson's full-sized avatar

JoshEngebretson

  • North Carolina, USA
View GitHub Profile
@JoshEngebretson
JoshEngebretson / gist:24a5d789c2f573a4f0685c9d2dcf3713
Created March 28, 2017 17:03
Mac Keyboard for Windows (using AutoHotkey)
;-----------------------------------------
; Mac keyboard to Windows Key Mappings
;=========================================
; --------------------------------------------------------------
; NOTES
; --------------------------------------------------------------
; ! = ALT
; <^>! = RIGHT ALT
; ^ = CTRL
Some keys on my MBPro melted due to CPU/GPU load, this unloads the drivers and stops random key input, while external keyboard is plugged in
sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext
@JoshEngebretson
JoshEngebretson / Atomic.cmake
Last active November 16, 2016 17:13
Atomic C++ Project
# Basic CMake example of using Atomic Game Engine from source in a C++ project
# JavaScript/TypeScript are also available as options in C++ projects
project(MyGame)
# Use the Atomic Game Engine, from full source!
add_subdirectory(AtomicGameEngine)
# Setup includes
@JoshEngebretson
JoshEngebretson / 2DPhysicsSpawner.cs
Created July 21, 2016 22:12
2D Physics Spawner
using System;
using AtomicEngine;
public class PhysicsSpawner : CSComponent
{
public void Start()
{
viewport = AtomicNET.GetSubsystem<Renderer>().GetViewport(0);
@JoshEngebretson
JoshEngebretson / Butterfly.cs
Created July 20, 2016 22:47
Atomic C# Butterflies
using System;
using AtomicEngine;
class FloatRandom : Random
{
public float Random() { return (float)NextDouble(); }
}
public class Butterfly : CSComponent
@JoshEngebretson
JoshEngebretson / IPCService.cs
Last active July 7, 2016 23:13
C# IPC Service
using System;
using AtomicEngine;
namespace AtomicTools
{
public class Program
{
public static void Main(string[] args)
{
// create the service
@JoshEngebretson
JoshEngebretson / AssemblyInspection.md
Last active June 28, 2016 23:34
Assembly Inspection

Assembly Inspection with example IL opcode parsing

Given this example enum and CSComponent

namespace AtomicTests
{

	public enum BehaviorState
@JoshEngebretson
JoshEngebretson / Graphics.cs
Last active June 26, 2016 23:34
Atomic C# managed bindings example
// Autogenerated
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace AtomicEngine
{
public enum UpdateGeometryType
{
Generating Examples & JSDocs
typedoc@0.4.1 node_modules/typedoc
├── progress@1.1.8
├── marked@0.3.5
├── shelljs@0.5.3
├── typedoc-default-themes@0.4.0
├── minimatch@3.0.0 (brace-expansion@1.1.4)
├── highlight.js@9.4.0
├── lodash@3.10.1
├── fs-extra@0.26.7 (path-is-absolute@1.0.0, klaw@1.2.0, jsonfile@2.3.1, graceful-fs@4.1.4, rimraf@2.5.2)
@JoshEngebretson
JoshEngebretson / TypeScriptLanguageService.ts
Last active January 17, 2016 22:47
Atomic Editor TypeScript compilation service
//
// Copyright (c) 2014-2016, THUNDERBEAST GAMES LLC All rights reserved
// LICENSE: Atomic Game Engine Editor and Tools EULA
// Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
// license information: https://github.com/AtomicGameEngine/AtomicGameEngine
//
import * as ExtensionServices from "../EditorExtensionServices";
import * as EditorEvents from "../../editor/EditorEvents";
import * as ts from "modules/typescript";