项目作者: nielsdelestinne

项目描述 :
A Dungeon Crawler game
高级语言: TypeScript
项目地址: git://github.com/nielsdelestinne/subground.git
创建时间: 2018-02-10T18:23:41Z
项目社区:https://github.com/nielsdelestinne/subground

开源协议:

下载


Subground

A Dungeon Crawler game.

Subground - WIP

Very much a work in progress :)

Install

  1. Run yarn install or simply yarn from inside the project’s root to install the required dependencies

Run as Developer

  1. Run yarn run dev to start an hot-reload server on port 7331 (localhost:7331)

Build for PRD

  1. Run yarn run build to compile the code and create an archive ready for PRD (bundled bundle.js file in the dist folder)

Technicalities

  1. Typescript
    • It is compiled back into ES5
  2. Yarn is used to manage the external dependencies
  3. Webpack is used to bundle the modules (into a single minified file)
    • In essence it handles the internal dependencies among all the files

Todo’s

  • Technical setup
  • Include .css files in the archive (see: html-webpack plugin, “templates”)
  • Generate rooms out of a simplistic notation:
    1. xxxoxxx
    2. xooooox
    3. ooooooo
    4. xooooox
    5. xxxxxxx
    • should result in a room being built that has a passage in the North, East and West
  • Regenerate GUI when dimensions change
  • Revert the changes in commit 9abb04337c40dea54c949ae92bd28bdc2541e5a8 and implement a proper solution that does not break the open/closed principle.
  • [ ] Provide an object of options to configure the draw-engine:

    1. DrawEngine.initialize({
    2. // Sets the room width
    3. roomWidthInPixels: 850,
    4. // Tile color
    5. tileColor: '#fff',
    6. // Set game loop interval (seconds)
    7. gameLoopInterval: 5,
    8. // Enable Debug
    9. enableDebug: false,
    10. // ...
    11. });
  • Player interaction
  • NPC’s
  • Items