/MGame

Basic javascript game engine

Primary LanguageJavaScriptMIT LicenseMIT

MGame

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).

Credits

This repo is compiled by Makan Edrisi

How to use

  1. Make simple html file. Load your js file as a module.
<script type = "module" src = "example.js"></script>
  1. Import MGame and declear your game object in your js file.
import { MGame } from '../js/mg.js';
const myGame = MGame();