Lancelotbronner / swift-raylib-workspace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swift bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.

NOTE for ADVENTURERS: raylib is a programming library to enjoy videogames programming; no fancy interface, no visual helpers, no debug button... just coding in the most pure spartan-programmers way.

~raysan5


Swift Raylib

A swifty interface and app lifecycle to ease development with raylib!

Features

  • Swifty interface and compatibility with the latest features!
  • Support for @main lifecycle
  • Decent examples collection with +16 code examples!

Minimal Example

import Raylib

@main struct BasicWindow: Applet {
	
	init() {
		Window.create(800, by: 450, title: "Example - Core - Basic Window")
	}
	
	func draw() {
		Renderer2D.text(center: "Congrats! You created your first window!", color: Color.lightGray)
	}

}

The minimal example windowThe minimal example window

About


Languages

Language:Swift 100.0%