大二上学期多媒体课的大作业,一个canvas 小游戏 类似于让子弹飞 因为那时刚学,有些代码很“青涩”~~~ 其实就是canvas 动画 + 各种事件处理。 其中每个关卡都是用了一个模板,只需要传入怪兽的位置 二维坐标即可,具体可以参考代码。
Final project for the first semester of sophomore year: a canvas game for the multimedia course, similar to "Let the Bullets Fly." Since I had just started learning, some of the code might be a bit "inexperienced"~~~ Essentially, it involves canvas animation and various event handling. Each level utilizes a template, requiring only the input of the monster's position in two-dimensional coordinates. For more details, please refer to the code.