mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
test-cleancode: check some of the examples too
This commit is contained in:
@@ -460,13 +460,15 @@ fn (mut a App) draw_gameover() {
|
||||
a.termui.draw_text(start_x, (a.height / 2) + 3 * block_size, ' ##### # # # # ###### ####### ## ###### # # ')
|
||||
}
|
||||
|
||||
mut app := &App{}
|
||||
app.termui = termui.init(
|
||||
user_data: app
|
||||
event_fn: event
|
||||
frame_fn: frame
|
||||
init_fn: init
|
||||
hide_cursor: true
|
||||
frame_rate: 10
|
||||
)
|
||||
app.termui.run() ?
|
||||
fn main() {
|
||||
mut app := &App{}
|
||||
app.termui = termui.init(
|
||||
user_data: app
|
||||
event_fn: event
|
||||
frame_fn: frame
|
||||
init_fn: init
|
||||
hide_cursor: true
|
||||
frame_rate: 10
|
||||
)
|
||||
app.termui.run() ?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user