Current: v0.0.2 Beta Built with Rust MPL-2.0 License

Build 2D/3D Games & Servers with Venk Language

A modern, high-performance programming language with clean syntax, built-in Raylib 2D/3D engine, procedural world generation, and one-click compilation into a standalone .exe.

game_3d.venk
// 3D game with FPS camera & world primitives in 15 lines
fn main() {
    init_window(1280, 720, "Venk 3D World");
    set_fps(60);
    let cam = vek3d_camera_create(0.0, 5.0, 10.0, 0.0, 0.0, 0.0, 60.0);

    while !should_close() {
        let dt = time_delta();
        vek3d_camera_update_fps(cam, dt, 8.0, 0.15);

        begin_drawing();
        clear(15, 20, 35);
        vek3d_camera_begin(cam);
            vek3d_draw_grid(20, 1.0);
            vek3d_draw_house(0.0, 0.0, 0.0);
            vek3d_draw_tree(5.0, 0.0, -4.0);
        vek3d_camera_end();
        end_drawing();
    }
}

About Venk & Its Creator

Venk is designed for developers who want to create games and network apps without complex engine setups or manual pointer arithmetic.

VB

VBanna-coder

Creator & Lead Developer of Venk Lang

Architect of the Venk syntax, native Rust interpreter, and built-in modules for 2D/3D graphics, networking, and system programming. Open-source under the MPL-2.0 license.

Open venk-lang Repository →

⚡ Quick Start & CLI Commands

Place venk.exe and raylib.dll in the same folder and run commands from your terminal:

# Run a Venk script
> venk run script.venk

# Launch the Graphical IDE
> venk ide

# Compile into standalone .exe
> venk build script.venk
⚡

Blazing Fast Rust Core

Powered by a native Rust interpreter with an upcoming LLVM backend for C++-level execution speed.

🎮

Built-in 2D/3D Engine

Direct Raylib integration: 3D cameras, skeletal animations (.gltf/.obj), particle systems, shaders, and ready-made prefabs.

🌍

Procedural Generation

Built-in noise functions (vek3d_world_noise) and maps for generating massive RimWorld / WorldBox style worlds.

📦

One-Click EXE & VIP

Bundle your entire project into a standalone .exe with build("game.venk") and manage packages via VIP.

What's New in v0.0.3

Version 0.0.3 expands Venk beyond single-player games: multiplayer networking, web servers, browser integration, and memory stability.

✓ READY

nvenk Module (Servers & Net)

Full WebSocket client & server for multiplayer games, plus a built-in HTTP web server to host HTML pages directly from Venk.

✓ READY

Standalone .exe Build Fix

Fixed packaging issues when compiling scripts into standalone Windows executables via venk build and build().

⚙ IN PROGRESS

bvenk Module (Browsers)

Upcoming standard module for browser automation, webview control, and seamless web-to-Venk app integration.

⚙ IN PROGRESS

Memory Leak Fixes

Resource lifecycle optimization in the Rust runtime for textures, 3D meshes, and sockets during long sessions.

NEW IN 0.0.3 • NVENK MODULE

Multiplayer & Web Servers in Venk

Powered by tungstenite and non-blocking TCP sockets, nvenk lets you poll network events right inside your 60 FPS game loop:

  • nvenk_ws_connect(url) — connect WebSocket client (ws://...)
  • nvenk_ws_send(id, msg) / nvenk_ws_recv(id) — non-blocking messaging
  • nvenk_ws_server_start(addr) — launch multiplayer server
  • nvenk_ws_server_poll(id) — poll connect, disconnect & player messages
  • nvenk_ws_server_send(srv, cid, msg) — send packet to one player
  • nvenk_ws_server_broadcast(srv, msg) — broadcast state to all players
  • nvenk_http_serve_html(addr, html) — serve HTML web pages over HTTP
server_demo.venk (v0.0.3)
// Multiplayer WebSocket server powered by nvenk
fn main() {
    let srv = nvenk_ws_server_start("127.0.0.1:8080");
    print("Server listening on port 8080!");

    while true {
        let events = nvenk_ws_server_poll(srv);
        for ev in events {
            let client_id = ev[0];
            let data = ev[1];

            if data == "connect" {
                nvenk_ws_server_send(srv, client_id, "Welcome!");
            } else {
                // Broadcast player coordinates or chat to everyone
                nvenk_ws_server_broadcast(srv, data);
            }
        }
        sleep(16); // ~60 ticks per second
    }
}

Venk Language Syntax

Familiar constructs inspired by Rust, TypeScript, and Python — clean, expressive, and easy to read.

basics.venk
// Immutable (let) and mutable (mut) variables
let x = 10;
mut y = 20;
let pi: float = 3.14;

// Conditional branching
if x > 10 {
    print("Greater than 10");
} elif x == 10 {
    print("Equal to 10");
} else {
    print("Less than 10");
}

// Loops: while & for-in-range
while y > 0 { y -= 1; }
for i in range(0, 10) { print(i); }
structs_and_fn.venk
// Typed functions
fn add(a: int, b: int) -> int {
    return a + b;
}

// Structs and methods (impl)
struct Player {
    name: string,
    hp: int
}

impl Player {
    fn heal(mut self, amount: int) {
        self.hp += amount;
    }
}

// Functional array operations
let nums = [1, 2, 3, 4, 5];
let doubled = map(nums, fn(n) { return n * 2; });
arcade_2d.venk
init_window(800, 600, "2D Arcade");
mut px = 400.0;
mut hp = 85;

while !should_close() {
    if key_down("D") { px += 5.0; }
    if key_down("A") { px -= 5.0; }

    begin_drawing();
    clear(20, 22, 30);
    circle(px, 300.0, 25.0, 0, 229, 255);
    draw_health_bar(20, 20, 200, 20, hp, 100, 0, 230, 118);

    if gui_button(20, 60, 140, 36, "Heal (+10)") {
        hp = clamp(hp + 10, 0, 100);
    }
    end_drawing();
}
std_modules.venk
// pvenk: File System & Regex
pvenk_dir_create("saves");
let is_email = pvenk_regex_match("dev@venk.dev", "^.+@.+\\..+$");

// jvenk: HTTP & JSON
let raw = jvenk_http_get("https://example.com");
let data = json_parse(raw);

// gdvenk: Timers & Signals (Godot-style)
let t = gdvenk_timer_start();
gdvenk_signal_connect("player_died", fn() { print("Game Over!"); });

// cppvenk: Threads, Queues & Raw Memory
cppvenk_thread_spawn("worker.venk");
let ptr = cppvenk_mem_alloc(64);

Complete Venk API Reference

Interactive search across all built-in functions in v0.0.2 Beta and the new v0.0.3 networking module.