game-dev-js is a custom build javascript library that is designed to make game development easy in the browser using the DOM API. For the library to work it is important to have access the the document object provided by the browser or an .html file.
You can import the main modules using the jsdelivr CDN. Alternativly you can fork the original repository.
jsdelivr - import { Game } from "https://cdn.jsdelivr.net/gh/Heini766/game-dev-js@main/index.js";
GitHub repository - game-dev-js
const game = new Game()
Methods
game.newDisplay()game.start()game.createEntity()game.new()
.createEntity()
Parameters - (name, config)