From b848a6fe676bb69a28db31e330a66fb5abc3989d Mon Sep 17 00:00:00 2001 From: Coeuvre Date: Wed, 21 May 2014 00:06:08 +0800 Subject: [PATCH] Drawing a simple tile --- src/main.rs | 1 + src/settings.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index fb45b67..25cba57 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,6 +11,7 @@ use piston::*; mod app; mod board; mod settings; +mod tile; type GameWindowBackEnd = GameWindowSDL2; diff --git a/src/settings.rs b/src/settings.rs index 5418579..1aa009e 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -41,6 +41,7 @@ pub static TILES_COLOR: [[f32, ..4], ..10] = [ // 512 color [237.0 / 255.0, 200.0 / 255.0, 80.0 / 255.0, 1.0], ]; +pub static TILE_UNKNOW_COLOR: [f32, ..4] = [0.8, 0.0, 0.0, 1.0]; pub static LABEL_COLOR: [f32, ..4] = [187.0 / 255.0, 173.0 / 255.0, 160.0 / 255.0, 1.0]; pub static BUTTON_COLOR: [f32, ..4] = [142.0 / 255.0, 122.0 / 255.0, 102.0 / 255.0, 1.0];