npm install -d npm start
npm run build
Dog models are derived from PigArt's Low Poly Wolf model.
The license that came with the model has it under a different (non-existent) user: nabagielis. It is released under CC BY 3.0.
The following icons are from paomedia, released in the Public Domain:
For easier serialization, all data that needs to be un/serialized (i.e. loaded/saved) should be kept at the top-level of the
player (which keeps track of the more general game world state) or
company. No objects should save a reference to the
company except for the
Manager - references to either of these should be passed in as needed. This is to avoid circular references.
notes on the project structure
gamecontains only the core logic defining the game's systems (it does not deal with their presentation, i.e. views)
marketcontains only the logic for the Market, including its board (the hexworld)
officecontains only the logic for rendering the in-game office
viewsdeal with all DOM elements; they just render data
statesties together these different components
three important objects are:
game, which is the Phaser game object
player, which contains all data that must be persisted/loaded for a save game; that is, all the data that uniquely represents an active game
manager, which coordinates between the Phaser game object, the Player object, and handles functionality like saving/loading, new game creation, etc
Copyright 2016-2017 Francis Tseng
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.