zjanhoo / laya-snakes

snake game,仿贪吃蛇大作战游戏,AI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

laya-snakes

仿照 贪吃蛇大作战 的练手项目,前端时间接触了一下layabox,发现其性能表现确实很强劲,就做了这个贪吃蛇小作战学习使用一下。如果你觉得不错或对你有帮助,帮我点一下星吧。

layabox性能还不错,示例在手机上通过运行器或打包之后,基本维持在59~60帧(Nexus5, Android 4.4.2)

introduce

laya-snakes demo

A snake game played on mobile phone or pc, use the "Space" key to speed up the snake which you controlled.

the demo online click here

If you need the Android apk file, please download here

Develop base on layabox by TypeScript


贪吃蛇小作战,pc端使用空格键加速,在线演示请点击这里

如需Android端apk示例文件,请点这里

基于layabox开发,开发语言是TypeScript

Made by lanbomo

todo

  • 开始界面
  • 控制界面
  • 游戏信息更新
  • 地图
  • 小地图
  • 豆子
  • 蛇类
  • 蛇AI
  • 碰撞
  • 结束界面
  • 优化

About

snake game,仿贪吃蛇大作战游戏,AI


Languages

Language:JavaScript 99.4%Language:TypeScript 0.5%Language:HTML 0.1%