>From the example:
# Copyright 2017 Xored Software, Inc.
import strutils
import godot
import engine, label, resource_loader, packed_scene
gdobj FPSCounter of Label:
var lastFPS: float32
method ready*() =
setProcess(true)
method process*(delta: float64) =
let fps = getFramesPerSecond()
if int(fps * 10) != int(lastFPS * 10):
lastFPS = fps
self.text = "FPS: " & formatFloat(fps, ffDecimal, 1)
- thounghs about Nim language in godot alglez
- Re: thounghs about Nim language in godot cdunn2001
- Re: thounghs about Nim language in godot UnnoTed
- Re: thounghs about Nim language in godot Libman
- Re: thounghs about Nim language in godot hcorion
- Re: thounghs about Nim language in godot Angluca
- Re: thounghs about Nim language in god... Tiberium
- Re: thounghs about Nim language in... DTxplorer
- Re: thounghs about Nim language in... Tiberium
- Re: thounghs about Nim language in... DTxplorer
- Re: thounghs about Nim language in... Tiberium
- Re: thounghs about Nim language in... Tiberium
- Re: thounghs about Nim language in... DTxplorer
- Re: thounghs about Nim language in... Tiberium
- Re: thounghs about Nim language in... DTxplorer
- Re: thounghs about Nim language in... Tiberium
- Re: thounghs about Nim language in... DTxplorer
- Re: thounghs about Nim language in... DTxplorer
- Re: thounghs about Nim language in... endragor
