Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@ion-phaser-ce/react
Advanced tools
Readme
React specific wrapper for ion-phaser-ce component.
Most people who use React don’t use Web Components and there're some limitations handling data with Custom Components from React. Thus, this React component was created not to need to reference their Custom Elements using a ref and manually attach the game, this makes working with IonPhaser CE not cumbersome 👍🏻
window.PIXI = require('phaser-ce/build/custom/pixi');
window.p2 = require('phaser-ce/build/custom/p2');
window.Phaser = require('phaser-ce/build/custom/phaser-split');
import React, { useState } from 'react'
import Phaser from 'phaser-ce'
import { IonPhaserCe } from '@ion-phaser-ce/react'
const game = {
width: "100%",
height: "100%",
renderer: Phaser.AUTO,
state: {
init: function() {
this.stage.backgroundColor = '#24252A';
},
create: function() {
this.helloWorld = this.add.text(
this.game.world.centerX,
this.game.world.centerY,
"Hello World", {
font: "40px Arial",
fill: "#ffffff"
}
);
this.helloWorld.anchor.set(0.5);
},
update: function() {
this.helloWorld.angle += 1;
}
}
}
export default function App () {
// Call `setInitialize` when you want to initialize your game as a component! :)
const [initialize, setInitialize] = useState(false);
return (
<IonPhaserCe game={game} initialize={initialize} />
)
}
I believe in Unicorns 🦄 Support me, if you do too. Professionally supported @ion-phaser-ce/react is coming soon
Made with ❤️
FAQs
React specific wrapper for @ion-phaser-ce/core
The npm package @ion-phaser-ce/react receives a total of 6 weekly downloads. As such, @ion-phaser-ce/react popularity was classified as not popular.
We found that @ion-phaser-ce/react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.