创办一家公司,毁灭整个世界
npm install -d
npm startnpm run buildnpm testDog 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:
assets/company/confirm.pngassets/company/mail.pngassets/company/news.pngassets/company/time.pngassets/company/market.pngassets/company/completed.pngFor 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 player or 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
game contains only the core logic defining the game's systems (it does not deal with their presentation, i.e. views)market contains only the logic for the Market, including its board (the hexworld)office contains only the logic for rendering the in-game officeviews deal with all DOM elements; they just render datastates ties together these different componentsthree important objects are:
game, which is the Phaser game objectplayer, which contains all data that must be persisted/loaded for a save game; that is, all the data that uniquely represents an active gamemanager, which coordinates between the Phaser game object, the Player object, and handles functionality like saving/loading, new game creation, etcCopyright 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.
暂无开放 Issues,或尚未同步最近议题。