Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. Title: OGS Mahjong 2: Demo 2
  2. Date: 2018-10-02 00:00
  3. Category: News
  4. Slug: mahjong-demo2
  5. Lang: en
  6. ![Screenshot][screenshot]
  7. We are glad to announce the release of the second demonstration of OGS Mahjong 2.
  8. The purposes of this release were to refine our development techniques and
  9. build a solid cross-platform foundation.
  10. **Release**
  11. Run the latest version of OGS Mahjong 2 in your web browser:
  12. [http://ogstudio.github.io/ogs-mahjong](http://ogstudio.github.io/ogs-mahjong)
  13. You are encouraged to run the game with `seed` parameter like this:
  14. [http://ogstudio.github.io/ogs-mahjong?seed=0](http://ogstudio.github.io/ogs-mahjong?seed=0)
  15. This allows you to play the same layout each time you launch the game.
  16. Each seed uniquely identifies the placement of tiles. Thus, different seeds
  17. give you a different experience.
  18. **Development techniques and foundation**
  19. During the second demonstration development, we switched from standard
  20. development to [example-driven one][article-2018-june]. This resulted in the
  21. creation of three distinct repositories to back the development of OGS Mahjong 2:
  22. * [OpenSceneGraph cross-platform examples][osgcpe] repository provides cross-platform foundation like resource handling, render window setup, etc.
  23. * [OGS Mahjong components][omc] repository provides Mahjong specific functionality like parsing layout, matching tiles, etc.
  24. * [OGS Mahjong][ogs-mahjong] repository contains snapshots of `OGS Mahjong components` features that comprise specific game version. E.g., `Demo 2` version is almost identical to [05.ColorfulStatus][omc-05] example of `OGS Mahjong components`.
  25. **Beyond Mahjong solitaire**
  26. In addition to `seed` parameter, you can let the game use remote layout hosted at GitHub:
  27. [http://ogstudio.github.io/ogs-mahjong?seed=0&layout=github://OGStudio/ogs-mahjong-components/data/cat.layout](http://ogstudio.github.io/ogs-mahjong?seed=0&layout=github://OGStudio/ogs-mahjong-components/data/cat.layout)
  28. Utilizing remote resources is an extremely powerful approach allowing anyone
  29. to create a layout of his/her choice and see the layout in action instantly.
  30. Our next step is to turn game logic into a resource, too.
  31. [screenshot]: {attach}/images/2018-10-02-mahjong-demo2.png
  32. [article-2018-june]: {filename}/articles/2018-06-27-example-driven-development.md
  33. [osgcpe]: https://github.com/OGStudio/openscenegraph-cross-platform-examples
  34. [omc]: https://github.com/OGStudio/ogs-mahjong-components
  35. [ogs-mahjong]: https://bitbucket.org/ogstudio-games/ogs-mahjong
  36. [omc-05]: https://github.com/OGStudio/ogs-mahjong-components/tree/master/05.ColorfulStatus