Skip to content

Commit

Permalink
3.26.3
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Dec 21, 2024
1 parent ff59bb4 commit d4a8b30
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
3 changes: 3 additions & 0 deletions p5play.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,14 @@ class Sprite {
mod: any;
set tileSize(val: number);
/**
* DEPRECATED: Will be removed in version 4, use scaling instead.
*
* The tile size is used to change the size of one unit of
* measurement for the sprite.
*
* For example, if the tile size is 16, then a sprite with
* x=1 and y=1 will be drawn at position (16, 16) on the canvas.
* @deprecated
* @type {Number}
* @default 1
*/
Expand Down
17 changes: 5 additions & 12 deletions p5play.js
Original file line number Diff line number Diff line change
Expand Up @@ -1682,11 +1682,14 @@ p5.prototype.registerMethod('init', function p5playInit() {
}

/**
* DEPRECATED: Will be removed in version 4, use scaling instead.
*
* The tile size is used to change the size of one unit of
* measurement for the sprite.
*
* For example, if the tile size is 16, then a sprite with
* x=1 and y=1 will be drawn at position (16, 16) on the canvas.
* @deprecated
* @type {Number}
* @default 1
*/
Expand Down Expand Up @@ -4411,7 +4414,7 @@ p5.prototype.registerMethod('init', function p5playInit() {
$.Sprite.colliderTypes = ['d', 's', 'k', 'n'];
$.Sprite.shapeTypes = ['box', 'circle', 'chain', 'polygon'];

// TODO: draw lines when the Turtle moves
// DEPRECATED: Will be removed in version 4
$.Turtle = function (size) {
if ($.allSprites.tileSize > 1) {
throw new Error(`Turtle can't be used when allSprites.tileSize is greater than 1.`);
Expand Down Expand Up @@ -6547,22 +6550,14 @@ p5.prototype.registerMethod('init', function p5playInit() {
}
};

// use of addImg and addImage is deprecated
$.Group.prototype.addAni =
$.Group.prototype.addAnimation =
$.Group.prototype.addImg =
$.Group.prototype.addImage =
$.Sprite.prototype.addAnimation =
$.Sprite.prototype.addImg =
$.Sprite.prototype.addAni;

// use of addImgs and addImages is deprecated
$.Group.prototype.addAnis =
$.Group.prototype.addAnimations =
$.Group.prototype.addImgs =
$.Group.prototype.addImages =
$.Sprite.prototype.addAnimations =
$.Sprite.prototype.addImgs =
$.Sprite.prototype.addAnis;

$.Group.prototype.__step = $.Sprite.prototype.__step;
Expand Down Expand Up @@ -6893,9 +6888,7 @@ p5.prototype.registerMethod('init', function p5playInit() {
getSpritesAt(x, y, group, cameraActiveWhenDrawn = true) {
if (typeof x == 'object') {
cameraActiveWhenDrawn = group ?? true;
group = h;
h = w;
w = y;
group = y;
y = x.y;
x = x.x;
}
Expand Down
2 changes: 1 addition & 1 deletion p5play.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@
"version": "git add -A",
"postversion": "git push"
},
"version": "3.26.2"
"version": "3.26.3"
}

0 comments on commit d4a8b30

Please sign in to comment.