1 post tagged with "smallproject"

View All Tags

smallProject

Adrian Yang

Adrian Yang

Front End Engineer @ Facebook

贪吃蛇

案例目标

游戏的目的是用来体会JavaScript高级语法的使用 不需要具备抽象对象的能力,使用面向对象的方式分析问题,需要一个漫长的过程。

功能实现

搭建页面

放一个容器盛放游戏场景 div#map,设置样式

#map {
width: 800px;
height: 600px;
background-color: #ccc;
position: relative;
}