Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
craters.js
Advanced tools
A Compact html5 Game Engine that helps you build fast, modern HTML5 Games
The Changelog outlines more features Read changelog
ES modules
Sound
Sprite
Loader
Entity
Game
Input
game is a method used to create an instance of game world the game and entities both have methods update and render
more example games included in the examples and test folder alternatively you can build the games on your own using webpack
git clone https://github.com/swashvirus/craters.js.git
# import app/craters/craters.js
npm install craters.js
Craters is the global Object used in the iife build
'use strict';
import { Game, Canvas, Loop } from './craters/craters.js'
class mygame extends Game {
constructor (container, width, height){
super ();
this.state.size = {x: width, y: height}
this.viewport = new Canvas(this.state.size.x, this.state.size.y, container);
this.context = this.viewport.context
this.loop = new Loop(this, 60)
}
render () {
this.viewport.clear()
super.render()
this.context.font = '2em Arial'
this.context.fillText('It\'s working.️', 65, (this.state.size.y / 2), (this.state.size.x))
}
}
window.game = new mygame('#container', window.innerWidth, window.innerHeight, 60, true)
Submit Issues, fixes and Contributions PR
FAQs
A Compact Game Engine that helps you build fast, modern HTML5 Games
The npm package craters.js receives a total of 1 weekly downloads. As such, craters.js popularity was classified as not popular.
We found that craters.js 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.