Skip to content

Oak 1.4.0

Choose a tag to compare

@200sc 200sc released this 05 Oct 01:29
· 1271 commits to master since this release

Features:

  • Adds the MouseClickOn event, optionally tracked by the mouse package (enabled by default) and triggered on entities where the last mouse press and release (of the same button) happened on the same entity.

  • Adds audio.ChannelManager, a safe way to create audio channels that oak won't automatically clean up at the end of a scene. These audio channels will be closed when the manager that created them is closed.

  • Adds shape.Bezier, an interface with the BezierCurve constructor that can represent bezier curves of arbitrary complexity with arbitrary precision.

  • Adds render.BezierLine, a helper to convert a shape.Bezier to a drawable sprite.

  • Adds a demo showing off bezier drawing through mouse clicks.

  • Adds support for colors in x/image/colorname to render.FontColor.

  • Adds several utilities to intgeom.Point.

  • Adds shape.StrictRect, for rectangles that don't respect input dimensions given to them.

  • Adds some new render.CutXXX functions.

  • Adds dlog.ErrorCheck, which logs an error if that error is not nil.

Bugfixes, Optimizations:

  • Optimized how we keep track of keyholds, such that this tracking is no longer a performance hit and no longer able to be disabled.

  • Protects against failed type assertion casting if particles are spawned right as a scene ends.

  • Replaces several errors.New invocations with explicit types in oakerr.

  • Corrects space.Overlap logic.

  • Collision rectangles now round to minimally appropriate dimensions when given invalid inputs (instead of panicking)-- widths and heights of zero are converted to one, and negative widths and heights shift the rectangle in the negative axis direction and convert the span to be positive. If these transformations happen, they are logged.

  • Adds several tests.