Repository navigation
Oak 1.4.0
Features:
-
Adds the
MouseClickOnevent, 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 theBezierCurveconstructor that can represent bezier curves of arbitrary complexity with arbitrary precision. -
Adds
render.BezierLine, a helper to convert ashape.Bezierto a drawable sprite. -
Adds a demo showing off bezier drawing through mouse clicks.
-
Adds support for colors in
x/image/colornametorender.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.CutXXXfunctions. -
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.Newinvocations with explicit types inoakerr. -
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.