
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
craters.js
Advanced tools
A Compact html5 Game Engine that helps you build fast, modern HTML5 Games
QuadTrees Spatial Subdivision
Separating Axis Theorem
Assets module
Input module
Sound module
git clone https://github.com/swashvirus/craters.js.git
npm install craters.js
example games are included in the examples and test directory
import {Game, Vector} from '../../craters/craters'
class mygame extends Game {
constructor() {
super({
fps: 60,
container: '#container',
size: new Vector(1024, 512)
});
}
render() {
super.render();
// draw some text on the screen
this.context.fillStyle = "#fff";
this.context.font = '2em Arial'
this.context.fillText('It\'s working.️', 65, (this.state.size.y / 2), (this.state.size.x))
}
}
let game = new mygame();
Submit Issues, fixes and Contributions.
FAQs
A Compact Game Engine that helps you build fast, modern HTML5 Games
The npm package craters.js receives a total of 4 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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.