Skip to content

Instantly share code, notes, and snippets.

View Timofffee's full-sized avatar
🎲
funny

George Timofeev Timofffee

🎲
funny
View GitHub Profile
@Timofffee
Timofffee / raylib_basic_game_loop.nim
Last active September 19, 2021 11:17
nimraylib_now basic game loop
# Basic Game Loop
# Engine/Framework: Raylib (https://www.raylib.com)
# based on https://gist.github.com/SemanticDevice/6f57b69c50c292d87c626e15de504e6b#file-raylib_basic_game_loop-c
import nimraylib_now
const WIN_WIDTH_PX = 800 # Main window width in pixels
const WIN_HEIGHT_PX = 640 # Main window height in pixels
proc gameInitialize()
# http://telegra.ph/HTTPHTTPS-zaprosy-v-Godot-Engine-04-24
extends RichTextLabel
# var http = preload('Путь до скрипта http_request.gd')
var http = preload('res://???/http_request.gd')
# Инициализируем
onready var req = http.new()
func _ready():
text = ''

Language

Keywords

if          # See "if/else/elif".
elif        # See "if/else/elif".
else        # See "if/else/elif".
for         # See "for".
do          # Reserved for future implementation of do…while loops.
while       # See "while".
match       # See "match".