PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/examples/Snake/constants.d

http://github.com/wilkie/djehuty
D | 34 lines | 28 code | 6 blank | 0 comment | 0 complexity | bfdb6631aadf2a6d3d64d333dc60439f MD5 | raw file
 1import io.console;
 2
 3enum FrameWait : uint {
 4	Init       = 1000,
 5	Min        = 300,
 6	Multiplier = 100,
 7	Step       = 1,
 8}
 9
10enum Growth : uint {
11	Min = 10,
12	Max = 50,
13}
14
15enum SpeedCoef : uint {
16	H = 2,
17	V = 3,
18}
19
20enum Tile : dchar {
21	Head   = '@',
22	Block  = '#',
23	Food   = '*',
24	Portal = '^',
25	Void   = ' ',
26}
27
28enum TileColor : fgColor {
29	Head   = fgColor.BrightBlue,
30	Block  = fgColor.BrightCyan,
31	Food   = fgColor.BrightGreen,
32	Portal = fgColor.BrightRed,
33}
34