Skip to content

Commit

Permalink
3.13.5
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Sep 13, 2023
1 parent 7dbd0fd commit 684bc06
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions p5play.d.ts
Expand Up @@ -1575,6 +1575,8 @@ class Group extends Array<Sprite> {
* @type {Number}
*/
set amount(arg: any);
set velocity(arg: number);
get velocity(): number;
centroid: {
x: number;
y: number;
Expand Down
10 changes: 8 additions & 2 deletions p5play.js
Expand Up @@ -611,7 +611,6 @@ p5.prototype.registerMethod('init', function p5playInit() {
let skipProps = [
'ani',
'collider',
'vel',
'x',
'y',
'w',
Expand All @@ -621,8 +620,8 @@ p5.prototype.registerMethod('init', function p5playInit() {
'dynamic',
'height',
'kinematic',
'speed',
'static',
'vel',
'width'
];

Expand Down Expand Up @@ -4928,6 +4927,13 @@ p5.prototype.registerMethod('init', function p5playInit() {
}
}

get velocity() {
return this.vel;
}
set velocity(val) {
this.vel = val;
}

_resetCentroid() {
let x = 0;
let y = 0;
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
Expand Up @@ -39,5 +39,5 @@
"version": "git add -A",
"postversion": "git push"
},
"version": "3.13.4"
"version": "3.13.5"
}

0 comments on commit 684bc06

Please sign in to comment.