Code Monkey home page Code Monkey logo

canvasshotgame's Introduction

Canvas 射击小游戏

本项目是为了巩固学习到的canvas知识和面向对象**而制作的一个小游戏。从游戏入手是学习面向对象的好方法。

项目说明

  • 概述:Canvas 射击小游戏要求玩家控制飞机发射子弹,消灭会移动的怪兽,如果全部消灭了则游戏成功,如果怪兽移动到底部则游戏失败。
  • 操作: 方向键左、右移动飞机,空格键发射子弹。

项目结构

  • index.html: 游戏页面
  • style.css: 页面样式
  • js: 页面涉及的所有 js 代码
    • app.js: 页面逻辑入口 js
  • img: 存放游戏的图片素材
  • 视觉稿: 存放游戏的视觉稿
  • readme.md: 项目说明文档

项目演示地址

演示地址

项目ToDo

  • 增加背景音乐
  • 在第六关增加一个BOSS怪物

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.