MGame is a basic javascript game engine that I have created as a practice. it is based on THREE.js (3D graphic library) and CANNON.js (physic library).
This repo is compiled by Makan Edrisi
- Make simple html file. Load your js file as a module.
<script type = "module" src = "example.js"></script>
- Import MGame and declear your game object in your js file.
import { MGame } from '../js/mg.js';
const myGame = MGame();