Skip to content

Instantly share code, notes, and snippets.

View kwyse's full-sized avatar

Krishan Wyse kwyse

View GitHub Profile
@kwyse
kwyse / grokking_ecs.rs
Last active January 7, 2018 12:01
Demo application for Specs and SDL2 for https://www.kwyse.com/posts/grokking-ecs
extern crate sdl2;
extern crate specs;
#[macro_use]
extern crate specs_derive;
use sdl2::event::Event;
use sdl2::keyboard::Keycode;
use sdl2::rect::Rect;
use specs::{DispatcherBuilder, Join, System, World};