Skip to content

Releases: 32blit/32blit-lua

v0.0.5

28 Jan 19:52
909e06f

Choose a tag to compare

What's Changed

Full Changelog: v0.0.4...v0.0.5

Version 0.0.4

15 Oct 09:57
9e62da3

Choose a tag to compare

  • Fix Vec2 multiply by number
  • Rework input handling
  • Update joystick and tilt in-place
  • Restore Point(Vec2()) constructor

Rework Handling

Rather than continuously create new "buttons" and "input" tables this change creates them once and then updates the result in-place before each call to update.

Input is nwo handled by lua_blit_setup_input for initial empty table creation, and lua_blit_update_input to populate the tables with input data.

Update Joystick in-place

This change updates the underlying Vec2 and Vec3 for the joystick and tilt userdata, avoiding pushing new userdata on each update.

Version 0.0.3 Alpha

02 Jul 15:38

Choose a tag to compare

  • Added circle to screen and Surface
  • Added polygon to screen and Surface
  • Added tl, tr, bl and br to Rect (for getting points at each corner)
  • Added a new example: examples/shapes.lua to demonstrate the new additions

Version 0.0.2 Alpha

04 Jun 19:43

Choose a tag to compare

  • Rewritten Timer callback bindings to use the new std::function support
  • Add support for Surfaces
    • P, M, RGB and RGBA Surface support
    • New PixelFormat enum type
    • Surface -> Surface blit/stretch_blit
    • Editable swappable/palettes for P-mode (palette-based) surfaces
    • New Palette type
  • New basic Surface demo, showing multiple surfaces in use

Version 0.0.1 Alpha

03 Jun 13:36
4b3ed38

Choose a tag to compare

Includes examples and assets.

To play snake.lua on - for example - Linux extract the release file and run:

./bin/32blit_lua --launch_path examples/snake.lua

To install onto your 32blit make sure you:

32blit install bin/32blit_lua
32blit install bin/dingbads.bin
32blit install examples/snake.lua

You'll then find "snake.lua" in your "root" menu, it should launch with Lua when you run it.