Last active
August 27, 2019 12:49
-
-
Save oha-yashi/4ebe213cc85770e9c9d93d3be5a0e1bf to your computer and use it in GitHub Desktop.
slot/define.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _DEFINE_H_ | |
#define _DEFINE_H_ | |
#define NEED_HEIGHT 22 /* 必要ウィンドウ高さ Boxを繋げた高さ */ | |
#define NEED_WIDTH 60 /* 必要ウィンドウ幅 */ | |
#define REEL_NUM 4 /* リール番号 4本目はデバッグ用 */ | |
#define REEL_LONG 21 /* リール長さ */ | |
#define REEL_WIDTH 6 /* リールの幅 */ | |
#define SPIN -1 /* リール回転中 */ | |
#define SPEED 50000 /* リールの更新スパン リールが1/2段進む micro sec */ | |
#define ILLUSTs 7 /* イラストの種類 */ | |
#define SETTING 99 /* 難易度設定 difficulty 1~7 */ | |
/* 色設定で使用。ncursesの定数とぶつからない命名 */ | |
#define colorBLACK 0 | |
#define colorRED 9 | |
#define colorGREEN 10 | |
#define colorYELLOW 11 | |
#define colorBLUE 12 | |
#define colorWHITE 231 | |
int checker[3]; /* リールの状態 回転中は-1 確定するとREEL_LONG未満の数になる*/ | |
int reel[4][REEL_LONG] = { | |
{6, 5, 3, 0, 3, 6, 5, 3, 2, 2, 5, 3, 4, 6, 5, 3, 6, 1, 5, 3, 4}, | |
{3, 4, 5, 0, 6, 3, 4, 5, 3, 4, 5, 6, 1, 3, 4, 5, 3, 2, 3, 4, 5}, | |
{3, 5, 0, 2, 3, 5, 6, 4, 3, 5, 2, 1, 4, 3, 5, 6, 4, 3, 5, 6, 4}, | |
{0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6} | |
}; | |
char illust[5*ILLUSTs][REEL_WIDTH+1] = { | |
"777777", | |
"77 77", | |
" 77", | |
" 77 ", | |
" 7 ",//0 7 | |
" 6666 ", | |
"66 ", | |
"66666 ", | |
"66 66", | |
" 6666 ",//1 6 | |
"+----+", | |
"|BAR |", | |
"| |", | |
"| BAR|", | |
"+----+",//2 BAR | |
"RRRRR ", | |
"R RR", | |
"RRRRR ", | |
"R R ", | |
"R R",//3 RePlay | |
" | ", | |
" // ", | |
" / \\ ", | |
"@@ @@", | |
"@@ @@",//4 cherry | |
" || ", | |
" || ", | |
" / \\ ", | |
"/____\\", | |
" @@ ",//5 bell | |
" ", | |
"+^^^^+", | |
"<OUT!>", | |
"+vvvv+", | |
" "//6 OUT | |
}; | |
char Box_2up[6][40] = { | |
" +--------+--------+--------+ ", | |
" | | | | ", | |
" | | | | ", | |
" [2]--| | | |--[2]", | |
" | | | | ", | |
" | | | | " | |
}; | |
char Box_1[7][40] = { | |
" ============================ ", | |
" # # # # ", | |
" # # # # ", | |
" [1]--# # # #--[1]", | |
" # # # # ", | |
" # # # # ", | |
" ============================ " | |
}; | |
char Box_2dn[6][40] = { | |
" | | | | ", | |
" | | | | ", | |
" [2]--| | | |--[2]", | |
" | | | | ", | |
" | | | | ", | |
" +--------+--------+--------+ " | |
}; | |
char Box_Button[3][40] = { | |
" [j^] [k^] [l^] ", | |
" ", | |
" [q] to quit. [i] to insert a coin. " | |
}; | |
char Box_3LU[3][7] = { | |
" [3] ", | |
" \\ ", | |
" \\" | |
}; | |
char Box_3RU[3][6] = { | |
" [3]", | |
" / ", | |
"/ " | |
}; | |
char Box_3LD[3][7] = { | |
" /", | |
" / ", | |
" [3] " | |
}; | |
char Box_3RD[3][6] = { | |
"\\ ", | |
" \\ ", | |
" [3]" | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/oha-yashi/gist_public