Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richpeck/engine_demo
Test/demo JS engine.
https://github.com/richpeck/engine_demo
Last synced: 22 days ago
JSON representation
Test/demo JS engine.
- Host: GitHub
- URL: https://github.com/richpeck/engine_demo
- Owner: richpeck
- Created: 2022-11-03T07:20:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-29T15:02:12.000Z (11 months ago)
- Last Synced: 2024-10-10T06:09:38.017Z (about 1 month ago)
- Language: CSS
- Homepage: https://richpeck.github.io/engine_demo/
- Size: 139 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Demo code to make a simple 3D engine with JS
Works by taking a standard webpage and implementing a number of elements which are used to update the UI etc# Structure
```
Engine (main app)
├── Canvas (viewport)
├── World (top level worldview - basically includes mapping info)
├── HUD (heads up display shown at the bottom of viewport)
├── Player (player object)
├── other stuff
```Each object is invoked within the context of the Engine --> IE "$engine = Engine.new; $player = $engine.player.new".
The point is to initialize the engine and within that instance, create a new instance of a player, world etc.
--
# Engine
The main ingress point into the app is the `Engine` class.
This is invoked in the HTML page and is designed to handle user inputs.