Skip to content

Instantly share code, notes, and snippets.

View steve-sarcinella's full-sized avatar

Steve Sarcinella steve-sarcinella

View GitHub Profile

Keybase proof

I hereby claim:

  • I am steve-sarcinella on github.
  • I am stevesarcinella (https://keybase.io/stevesarcinella) on keybase.
  • I have a public key whose fingerprint is 5FDC 1413 586A 62E3 EB01 2CA1 DE3A E23D 706B 6120

To claim this, I am signing this object:

# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@steve-sarcinella
steve-sarcinella / FSM.h
Last active December 16, 2015 05:29
This is a Finite State Machine that I'm pretty happy with and use on some of my projects. Mainly used for games but can easily be adapted. It's use is explained below. I don't mind if anyone wants to use this, just remember to type it yourself to learn :D
#ifndef _FSM_H_
#define _FSM_H_
//This is game specific but it's use is just to get the frametime.
#include "time.h"
#define IGNORE_DUPLICATE_STATES 1
namespace GameObjects
{