
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@phaserjs/editor-scripts-arcade
Advanced tools
Warning: This project is deprecated. It is now part of the @phaserjs/editor-scripts-quick library.
This project contains a few Phaser Editor scripts for setting Arcade physics to objects.
These script nodes are very basic and may fit on any Phaser Editor project.
The scripts are coded in TypeScript with ES modules.
This package depends on the following packages:
@phaserjs/editor-scripts-core
To install this in your game you have to install dependencies too:
npm install @phaserjs/editor-scripts-core
npm install @phaserjs/editor-scripts-arcade
Also, you should add this package to the phasereditor2d.config.json
file in your project, in the scripts
section:
{
"scripts": [
"@phaserjs/editor-scripts-core",
"@phaserjs/editor-scripts-arcade",
]
}
script
tag to the index.html
file to load the lib/phaserjs_editor_scripts_arcade.js
file.This library provides a couple of actions and events about the Arcade Physics system in Phaser. As a reminder, an action is executed by an event script or another action.
The events:
The actions:
The base classes:
Class: OnWorldBoundsCollideEventScript
This script listens to the worldbounds event. When the event is fired, it executes the children's scripts.
The event is fired only for objects with the body's onWorldBounds parameter set to true
.
You can configure the sides of the world this event listens to, with the UP, DOWN, LEFT, RIGHT parameters.
Class: SetVelocityActionScript
This action sets the given X and Y velocity to the game object.
Class: SetVelocityXActionScript
This action sets the given X velocity to the game object.
Class: SetVelocityXActionScript
This action sets the given X velocity to the game object.
This action gets the game object from the given body. The body is passed to this action in the first argument, and this action passes, in the first argument, the associated game object to the children. You can combine this action with the On World Bounds Collide Event event.
This action tests the game object body.touching
state. If it is touching, it executes the actions of the Then actions node, else, it executes the actions of the Else actions node.
This action provides the Left, Right, Top, and Bottom boolean parameters. If any of these parameters is true
and the body touching state of the same side is true
, then we say the object is touching and then execute the Then actions.
This action allows the Action Target component.
This action creates a collider with the game object and the given Collide With object. If you check the Overlap Only parameter, then it uses an overlap instead of a collide method.
When there is a collision, this action executes the children nodes and passes as argument the collision event arguments.
This action allows the Action Target component.
This action updates the body's enable state with the Enable parameter's value.
This action allows the Action Target component.
This action starts monitoring the game object velocity vector and change the flip state of the game object.
If the Flip Horizontal is on, then it changes the flipX
property of the object. If the Flip Vertical is on, then it changes the flipY
property of the object.
By default, it assumes the object is facing left and top in its initial position. You can change it with the Facing Left and Facing Right parameters.
This action allows the Action Target component.
This action starts monitoring the pointer and moves the game object towards the pointer's position.
This action allows the Action Target component.
FAQs
Phaser Editor audio scripts.
We found that @phaserjs/editor-scripts-arcade demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.