分析Hextris游戏

By admin, 23 十二月, 2016

试玩: http://hextris.io/

源代码(带少量注释):https://github.com/hgneng/hextris

这个游戏的代码风格不算很好,作者在计算机编程上的基本功不算非常出色,但是游戏本身需要用的几何知识以及数据结构等运用是很出色的。

游戏是通过在Canvas上绘画图形实现。游戏里也涉及一些按钮使用SVG绘画,可以通过这个SVG教程了解一下。

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"