Co-authored-by: Frank Schmitt <frankschmitt@gmx.de>
This commit is contained in:
parent
40ac19572a
commit
42e80829c7
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ To install SDL2 you can use ``nimble install sdl2``.
|
||||||
discard renderer.clear()
|
discard renderer.clear()
|
||||||
discard renderer.setDrawColor(255, 128, 128, 0)
|
discard renderer.setDrawColor(255, 128, 128, 0)
|
||||||
|
|
||||||
var rect: Rect = (x: posX - 25, y: posY - 25, w: 50.cint, h: 50.cint)
|
var rect = Rect(x: posX - 25, y: posY - 25, w: 50.cint, h: 50.cint)
|
||||||
discard renderer.fillRect(rect)
|
discard renderer.fillRect(rect)
|
||||||
delay(16)
|
delay(16)
|
||||||
renderer.present()
|
renderer.present()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue