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:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user