Skip to content

Instantly share code, notes, and snippets.

Avatar

Krishan Wyse kwyse

View GitHub Profile
@kwyse
kwyse / grokking_ecs.rs
Last active Jan 7, 2018
Demo application for Specs and SDL2 for https://www.kwyse.com/posts/grokking-ecs
View grokking_ecs.rs
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};