Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
craters.js
Advanced tools
craters.js is a simple to use micro game engine both lightweight and portable so minimal that it's just 1.5kb in size! zipped and minified. in it, it includes all basics you need to get a game up and running in a few lines of code leaving enough room for the game logic. suitable for js13kgames competition
Sound.js sound system loads sounds methods
Sprite.js a sprite system
Loader.js file loading utility
Entity.js Entity base class
Game.js Game base class
game is a method which creates an instance of a game world the game and entities both have methods update and render the games instance can have entities and entities can also have their own entities as long as they inherit the craters.entity class
note the example game is included in the dist folder alternatively you can build it on your own
bash sudo git clone https://github.com/swashvirus/craters.js.git
bash cd ./craters.js && webpack
"use strict";
// load craters.js script tag works too
require('./craters/craters.js');
class mygame extends craters.game {
intitiate () {
super.intitiate();
// now intitiate my game
}
render () {
super.render(this);
this.context.font = '2em Arial';
this.context.fillText('It\'s working.️', 65, (this.constants.height / 2), (this.constants.width));
}
}
window.game = new mygame('#container', window.innerWidth, window.innerHeight, 60, true);
Let's make craters a reality contribute even a missing colon
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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.