Home

Cube2D Engine

Cube2D Engine, A minimal 2D simple and easy to use game development engine that provides everything you need for game development and utilizes super fast and super simple wren as its scripting language.

Features

Upcoming

They maybe canceled later on.

Example

Whats a programming project without example on its home page?


// File: SceneGame.wren
// Scene Management
// Creating A Simple Player

import "raylib" for COLOR
import "Cube2D" for Engine, Scene, Rect

class SceneGame is Scene {
	construct new() {
		_Player = Rect.new(0, 0, 32, 32)
		_Player.Tint = COLOR["RED"]

		super()
	}
	Update() {
		var Speed = 10
		// .Base seems weird but we will look into it later.
		Engine.WASDMovement(_Player.Base, Speed)
	}
	Draw() {
		_Player.Draw()
	}
}

Made With Love By Cube Nerd | Copyright © 2023-2023 Cube Nerd. Distributed by an MIT license.