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.20 to 0.0.21

2

package.json
{
"name": "common-game",
"version": "0.0.20",
"version": "0.0.21",
"description": "",

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

@@ -48,2 +48,15 @@ import * as PIXI from "@tbminiapp/pixi-miniprogram-engine";

}
getLiveSprite() {
let arr = [];
let container = this.getContainer("block");
container.children.forEach(sprite => {
if (sprite.visible && !sprite.dieStatus) {
let bounds = sprite.getBounds();
if (0 <= bounds.x + bounds.width && bounds.x <= this.width && bounds.y <= this.height) {
arr.push(sprite);
}
}
})
return arr;
}
// 全局点击事件

@@ -50,0 +63,0 @@ bindFullEvent(callback) {

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