diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -37,6 +37,10 @@ while window_running() do | |||
| 37 | draw_text(string.format("fps: %d", get_fps()), 10, 30, 20, color.VIOLET) | 37 | draw_text(string.format("fps: %d", get_fps()), 10, 30, 20, color.VIOLET) |
| 38 | draw_text(string.format("dt: %.3f", get_dt()), 10, 50, 20, color.VIOLET) | 38 | draw_text(string.format("dt: %.3f", get_dt()), 10, 50, 20, color.VIOLET) |
| 39 | 39 | ||
| 40 | if button_down(button.PAD_UP) then | ||
| 41 | draw_text("Pad Up", 10, 10, 20, color.VIOLET) | ||
| 42 | end | ||
| 43 | |||
| 40 | draw_info() | 44 | draw_info() |
| 41 | stop_drawing() | 45 | stop_drawing() |
| 42 | end | 46 | end |
