New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

common-game

Package Overview
Dependencies
Maintainers
1
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

common-game - npm Package Compare versions

Comparing version 0.0.37 to 0.0.38

2

package.json
{
"name": "common-game",
"version": "0.0.37",
"version": "0.0.38",
"description": "",

@@ -5,0 +5,0 @@ "main": "common-game.js",

@@ -335,5 +335,7 @@ import * as PIXI from "@tbminiapp/pixi-miniprogram-engine";

// 替换贴图
replaceTexture(sprite, img) {
replaceTexture(sprite, img, bl) {
sprite.texture = this.frame(img);
sprite.imgObj = img;
if (!bl) {
sprite.imgObj = img;
}
}

@@ -340,0 +342,0 @@ // 生成精灵

@@ -151,3 +151,6 @@ import Quadtree from './libs/quadtree';//四叉树

return imgObj;
},
randomArray: function (arr) {
return arr.sort(() => Math.random() - 0.5);
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc