rex
rexrainbow / phaser4-rex-plugins Goto Github PK
View Code? Open in Web Editor NEWNotes/plugins of Phaser4 engine
License: MIT License
Notes/plugins of Phaser4 engine
License: MIT License
Hi Rex,
We are starting development of a new game , and would love to adopt Phaser 4 and RexPlugins Since development. Would love to contribute back in the process.
Can you start pushing Phaser4-Rex-plugings to NPM , so that we can start consuming those ?
Additionally is there an alternative to consume the packages if you are not planning to release those in Alpha / Beta
Hi, first of all thanks for all these amazing plugins and for all the time spent on them, I really appreciate that.
I've a just a simple question about VirtualJoystick plugin:
Using Phaser3, I was trying to implement a virtualjoystick plugin (player move), and a simple fire button.
They actually work like a charm, but only if I press one of them individually. When playing on a mobile device, if I keep the joystick pressed (because of moving), the fire button doesn't work. I've to release the thumb on virtualjoystick before, either the joystick or the button I mean. Trying to debug using devtools on Chrome, it seems that the click
event on the button, doesn't fire at all if you are moving the joystick.
This is my code:
import Button from 'phaser3-rex-plugins/plugins/button.js';
import VirtualJoystick from 'phaser3-rex-plugins/plugins/virtualjoystick.js';
export class Player extends Phaser.Physics.Arcade.Image {
...
createJoyStick() {
this.joystick = new VirtualJoystick(this.scene, {
x: 100,
y: 500,
radius: 50,
});
}
...
createFireButton() {
const button = this.scene.add.circle(700, 500, 30).setStrokeStyle(2, 0x1a65ac)
this.fireButton = new Button(button);
this.fireButton.on('click', () => {
//... fire!
});
}
and from my package.json
...
"phaser": "^3.55.2",
"phaser3-rex-plugins": "^1.1.69",
...
I can understand if you won't help me, don't worry, but thank you anyway.
Title says it all.
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.