H tml5 (6) rain effect

Source: Internet
Author: User

After studying HTML5, I came up with some ideas and thought that the game is actually in four steps.

1. Create an object you need and assign attributes (attributes that affect methods) and methods (motion, called ....)

2. instantiate this object to make it one or more individuals

3. Draw the shape of the object you need to draw.

4. Call the drawing method to pass in the instantiated object. The shape of an object after instantiation is displayed. The rest is to think about how to properly display this shape,

The basic idea of the game is achieved,

<! Doctype HTML> 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.