
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy 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
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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.