1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

Replace all remaining C code with V in the compiler and vlib (hoorah!)

This commit is contained in:
Alexander Medvednikov
2019-06-27 19:02:47 +02:00
parent 554f083543
commit 6824e6e7db
19 changed files with 391 additions and 685 deletions

View File

@ -17,7 +17,7 @@ const (
TetroSize = 4
WinWidth = BlockSize * FieldWidth
WinHeight = BlockSize * FieldHeight
TimerPeriod = time.milliseconds(250) // 250ms
TimerPeriod = 250 // ms
)
const (
@ -168,7 +168,7 @@ fn (g mut Game) run() {
g.move_tetro()
g.delete_completed_lines()
glfw.post_empty_event() // force window redraw
time.sleep(TimerPeriod)
time.sleep_ms(TimerPeriod)
}
}