Skip to content

V2.0.0 Alpha

Latest
Compare
Choose a tag to compare
@tarithj tarithj released this 02 Dec 08:30
· 5 commits to main since this release

Note

v2.0.0 alpha has many breaking API changes that makes older projects made for v1.0.0 alpha unusable, please read migration for help with migrating your v1.0.0 alpha project to v2.0.0

What's Changed

  • [PROJECT]: Updated csproj by @tarithj in #5
  • Multi scripting-language support by @tarithj in #7
  • Multi window & scene support by @tarithj in #8
  • Read paramaters from package.json by @tarithj in #9
  • Added Exception for invalid json by @tarithj in #10
  • Added support for displaying text on screen by @tarithj in #11

Full Changelog: v1.0.0-alpha...v2.0.0-alpha

Migration

Project

PR #9
Cellua no longer automatically executes ./scripts/main.lua instead it looks for a file named package.json in the current directory and executes the lua file in the location pointed by the file

{
    "Main": "./main.lua",
    "ModulePaths": ["./module/math.lua"] // Optional: required if using lua modules
}

Window API

PR #8
Previous version of cellua only supported 1 window per project, to add support for multiple windows window dependent methods have been moved into their own separate class, for example

--- old
Window.Clear() -- one global window per project

--- new
w = Window.NewWindow(800, "Testing Window") -- multiple window creation using Window.NewWindow method
w.Clear()

Scene API

PR #8
Previous version of cellua only supported 1 scene per project, to add support for multiple scene scene dependent methods have been moved into their own separate class, for example

--- old
Scene.SetColor(i, i, 255, 0, 0, 255) -- one global scene per project

--- new
w = Window.NewWindow(800, "Testing Window")
s = Window.GetScene() -- one scene per window
s.SetColor(200, 200, 255, 0, 0, 255)