Dev Release: v0.9.0a1 Text and a new Camera!
Pre-releaseThis is a development release. All APIs subject to change. If you want to help test, you can target the latest alpha release to test new features.
Since v0.8.0:
The big change is that PPB now supports basic text rendering (no wrapping, single style). This is available via the ppb.Text
and ppb.Font
assets. (docs)
As part of this, the asset framework underwent significant refactoring. The data flow is now much simpler, many of the aspects have been turned into mixins, and we've added support for chained assets: assets which do additional background processing after other needed assets are loaded.
The other major feature change that you need to worry about is the Camera
. The important details are that the idea of a viewport has gone away. The camera's borders (left
, right
, top
, bottom
) will match the edge of the screen. Additionally, the Camera
does not initialize with the wrong aspect ratio. To do this, we have the Renderer
insert the camera on_scene_started
. If you do any initial positioning of the Camera
, do it in the scene or a sprite on_scene_started
handler. If all of your camera manipulation happens in on_pre_render
this detail won't affect you.
New
Changed
- Assets API changed to support better background loading. (#432)
- Shape assets now setup in the background (#435)
- Camera interface has had an entire overhaul. (#439)