From 5f1333c22fbb6d8cd0014c9902059d02f619c8f5 Mon Sep 17 00:00:00 2001 From: gallant Date: Sat, 21 May 2022 10:57:13 -0500 Subject: [PATCH] doesn't work --- .DS_Store | Bin 0 -> 6148 bytes Cargo.lock | 1 - Cargo.toml | 3 +-- src/main.rs | 48 +++++++++++++++++++++++++++++++++++++++++------- 4 files changed, 42 insertions(+), 10 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..d423183b4f1a2ff3f84530547eddc1d4b5628502 GIT binary patch literal 6148 zcmeHK%TB{E5FED^Dvv{tT#)<)75#%y%7HT<05qT+2n11j&z+Cq`#8a@cNHlKQEv#) zZnYkJy%Q(nDjNd`%kA9)m;sp51xNdAzA>2>@7c&Ad&H2gQDKe}6>>cEvOVw{6_C9< zz&UR5f`U8O?B8Ws= 255{ i=200; } + + /*for key in keys { + let offset = match key { + Scancode::Escape => { + game.terminate(); + (0, 0) + } + Scancode::W | Scancode::Up => (0, 5), + Scancode::S | Scancode::Down => (0, -5), + Scancode::A | Scancode::Left => (-5, 0), + Scancode::D | Scancode::Right => (5, 0), + _ => (0, 0), + }; + + + }*/ + ctx.set_background_colour( 129, 201, i); - running.draw(ctx).unwrap(); + sprites.draw(ctx).unwrap(); }).unwrap(); }