Skip to content

Oak v2.5.0

Compare
Choose a tag to compare
@200sc 200sc released this 25 Feb 04:51
· 650 commits to master since this release
b80723a

2.5.0 Changelog:

Debug Console:

  • Adds DisableDebugConsole configuration option on startup.
  • Adds the help built in debug command to print possible commands.
  • Adds oak.RunCommand() to simulate a debug console instruction.

Event Bus:

  • Adds EventRefreshRate configuration option on startup.
  • The event.Bus type now supports being given a specific refresh rate, instead of having busy waiting on any pending bind or unbind requests.
  • event.Bus.ResolvePending() had a goroutine leak, and this has been fixed.

Batch Loading:

  • Batch loading can now be configured to replace large images and audio files with blank versions, for faster test iteration in development.
  • Batch loading is now parallelized.

Buttons:

  • Adds additional text helpers for entities/x/btn constructors.
  • Adds support for cutting buttons into shapes.

Misc:

  • Adds render/mod.CutShape().
  • Adds oak.SetTitle() to change the running window title.
  • Adds audio.Audio.SetVolume to change a running audio's underlying volume level.
  • render.Text.ToSprite() has additional safety. Sometimes if a font or text changes in the middle of a ToSprite call it could panic deep inside of our font dependency. The font is now copied ahead of time to reduce this risk.