Skip to content

v3.14

Compare
Choose a tag to compare
@quinton-ashley quinton-ashley released this 20 Sep 14:05
· 116 commits to main since this release

3.14.13

Fix for rotated text images with centered text alignment.

I also noticed text image caching fixes rotation jitter.

3.14.12

pixelPerfect implementation should check the dimensions (width and height) of a sprite's current animation frame, not the dimensions of its collider when calculating the pixel perfect position for images with odd side lengths. For example, an image with a width of 5 should have its x position rounded to the nearest integer + 0.5 so that the image can be displayed pixel perfectly.

3.14.10

Proper fix for #256

I didn't consider that if group sprites with no colliders are set to overlap on a group level, at the time addDefaultSensors is called sprite._angle would not exist. I switched the order of those lines in the Sprite constructor to make it work. I also never considered that the sprite needs to maintain its velocity vector as well, so I added that too.

3.14.9

Properly fixed #261 createTextImage now returns a p5.Image with correct sizing.

Also fixed p5play.palettes not being assigned the default color palette.

Fixed mouse.dragging. Also now sprite.mouse.hovering and sprite.mouse.pressing are strictly true only if the mouse is currently pressing on the sprite, so if the sprite moves they'll be false. sprite.mouse.dragging is still suitably sticky, even if the mouse stops hovering directly over the sprite during the drag, it'll still drag.

3.14.4

Better fix for #256

3.14.2

p5.js actually sets textLeading to be 1.25x textSize by default, so I needed to adjust the position of text images to accommodate that. Also upgraded q5 to have the same behavior.

I also added the version number to the top of the file, haha I always forget.

3.14.0

Added not just a 2x or 5x, but a ridiculous 90x performance increase for rendering rotated text! All thanks to the new text image cache system. This feature is enabled by default, simply use the text function as you normally would and p5play handles the rest behind the scenes.

Why does VSCode autocompletion only work inside the p5.js setup function?
https://github.com/quinton-ashley/p5play/wiki/FAQ#why-does-vscode-auto-completion-only-work-inside-the-p5js-setup-function

Also fixed issues #253 and #256