Plan for requirements:
- Playing field / terrain: Water with waves
- Main player: The player is on a ship with a canon
- Add objects and interaction with main player: Other ships, clouds
- Non-player character: Another ship with canon firing back
- Change of view: Player’s view and Top view
Requires a static http server, eg python3 -m http.server
, then simply open localhost:8000
If you want to change code (particularity the typescript code) you'll need npm
installed then execute in the project root:
npm install
npm run build
- Using Standard JS (via ESLint)
- Using ts-check and typings (slowly adding in bits of typescript)
- Using this config for typescript and javascript linting using standardjs: https://github.com/standard/eslint-config-standard-with-typescript#readme
The parser is very picky, try using blender to fix it and fix scaling / off center models at the same time! =D
Skip 2 and 3 if the model shows up at the right size in the right location already
- Import the model into blender (File->Import .obj)
- Scale it down (select the object, scaling options will appear on the right hand side)
- Center the model's geometry around the origin (top left beside View, Select, Add) click Object->Set Origin->Geometry to origin
- File->Export the selected object as .obj
Thanks to Zach Shaw for letting us use his framework (http://constructionyard.ca/#/refinery)