Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 864 Bytes

File metadata and controls

39 lines (32 loc) · 864 Bytes

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

  • Minimal
  • Simple And Easy To Use
  • Highly Customizable
  • Utilizes wren as its scripting language.
  • Binds almost all of raylib, raymath, Cube2D Framework
  • Automatic asset management using Cube2D Framework
  • Scene Management using Cube2D Framework

Example

// 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
		Engine.WASDMovement(_Player.Base, Speed)
	}
	Draw() {
		_Player.Draw()
	}
}