Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
phaser-input
Advanced tools
Adds input boxes to Phaser like CanvasInput, but also works for WebGL and Mobile, made for Phaser only.
Some description here about how awesome this Phaser Input library is, because it works on Canvas AND WebGL. Oh did I mention mobile to? no? Well it supports mobile..
First you want to get a fresh copy of the plugin. You can get it from this repo or from npm, ain't that handy.
npm install phaser-input --save-dev
Next up you'd want to add it to your list of js sources you load into your game
<script src="node_modules/phaser-input/build/phaser-input.js"></script>
After adding the script to the page you can activate it by enabling the plugin:
game.add.plugin(Fabrique.Plugins.Input);
The simpelest way of adding a input field is:
var input = game.add.inputField(10, 90);
Ofcourse there are options available that can be used to style the input. They can be passes as an object as the third parameter.
var password = game.add.inputField(10, 90, {
font: '18px Arial',
fill: '#212121',
fontWeight: 'bold',
width: 150,
padding: 8,
borderWidth: 1,
borderColor: '#000',
borderRadius: 6,
placeHolder: 'Password',
type: Fabrique.InputType.password
});
Tested on:
We at OrangeGames just love playing and creating awesome games. We aren't affiliated with Phaser.io. We just needed some awesome input boxes in our awesome HTML5 games. Feel free to use it for enhancing your own awesome games!
Released under the MIT license
FAQs
Adds input boxes to Phaser like CanvasInput, but also works for WebGL and Mobile, made for Phaser only.
We found that phaser-input 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.