Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 760 Bytes

README.md

File metadata and controls

38 lines (23 loc) · 760 Bytes

HTML Canvas 3D Engine

Installation

  1. download the repo
  2. open terminal in the folder of the project
  3. run npm i

Development

  1. run npm run dev
  2. open http://localhost:5173
  3. start developing :) page uses hot reload, so after any changes the page reloads automatically

Keyboard

  1. WASD to move camera
  2. Shift + WASD to rotate camera in correspoding direction
  3. Z - move down, X - move up

TO-DO

Bugs:

  1. We need more advanced ZSort. Some times polygons are drawed in the wrong order.

Functionality:

  1. Translation of object relative to its rotation

Refactoring:

  1. we should recognize if vertex is on the screen before projecting it (+optimization)

Bonus functionality:

  1. physics
  2. multiplayer