Drawing a simple tile

This commit is contained in:
Coeuvre 2014-05-21 00:06:08 +08:00
parent aac66bffb5
commit b848a6fe67
2 changed files with 2 additions and 0 deletions

View file

@ -11,6 +11,7 @@ use piston::*;
mod app; mod app;
mod board; mod board;
mod settings; mod settings;
mod tile;
type GameWindowBackEnd = GameWindowSDL2; type GameWindowBackEnd = GameWindowSDL2;

View file

@ -41,6 +41,7 @@ pub static TILES_COLOR: [[f32, ..4], ..10] = [
// 512 color // 512 color
[237.0 / 255.0, 200.0 / 255.0, 80.0 / 255.0, 1.0], [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 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]; pub static BUTTON_COLOR: [f32, ..4] = [142.0 / 255.0, 122.0 / 255.0, 102.0 / 255.0, 1.0];