This commit is contained in:
mattn 2014-07-09 20:19:22 +09:00
parent 0fb18f15ef
commit b0f5e47c11

View File

@ -4,14 +4,9 @@ let s:cursor_off = 0
let s:cursor_on = 1 let s:cursor_on = 1
let s:t_ve = &t_ve let s:t_ve = &t_ve
function! s:toggle_cursor(f)
let &t_ve = a:f ? s:t_ve : ''
endfunction
let s:STATE_LOOP = 1 let s:STATE_LOOP = 1
let s:STATE_DIE = 2 let s:STATE_DIE = 2
let s:STATE_GAMEOVER = 3 let s:STATE_FINISH = 3
let s:STATE_FINISH = 4
let s:seed = 0 let s:seed = 0
function! s:srand(seed) abort function! s:srand(seed) abort
@ -23,6 +18,10 @@ function! s:rand() abort
return (s:seed < 0 ? s:seed - 0x80000000 : s:seed) / 0x10000 % 0x8000 return (s:seed < 0 ? s:seed - 0x80000000 : s:seed) / 0x10000 % 0x8000
endfunction endfunction
function! s:toggle_cursor(f)
let &t_ve = a:f ? s:t_ve : ''
endfunction
function! s:stage_init() abort function! s:stage_init() abort
" open new buffer " open new buffer
silent edit `='==FlappyVird=='` silent edit `='==FlappyVird=='`