Skip to content

Fran6nd/EngineJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EngineJS

Introduction

EngineJS is a work-in-progress 2D game engine using canvas. It aims to support a lot of game types, including those multiplayer... It was first one ofmy pyhton projects, improved and rewritten here.

How is it designed

This section is WORK-IN-PROGRESS!

As said before, it's based on canvas. The base class using canvas is scene.js that should be extended. Any object to draw, updateand move has to extend GameObject class from gameObject.js. Then you can override following methods: draw(ctx), update(dt)... About collisions: Each GameObject has a Colliders instance that contains some Collider instances that are list of triangles... If after moving, one of the triangle's points is inside any other from other GameObject triangle, we undo the movement.
Here is a basic treeview of the project:

+-EngineJS
|--build.py
|--buildTankDemo.py
|--index.htm
|--README.md
|--LICENCE
|-+-EngineJS
| |--scene.js
| |--drawing.js
| |--vector2d.js
| |--triangle.js
| |--collider.js
| |--colliders.js
| |--transform.js
| |--gameObject.js
| |--key.js
| |--inputManager.js
| |-+-colliders
| | |--quadCollider.js
| | |--triangleCollider.js
|-+-example
| |-+-tank
| | |--crate.js
| | |--tank.js
| | |--Tank.png

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published