JAVA Tetris (source code for communication)

Source: Internet
Author: User

Java write a Tetris, the interface feel can also, the interface spent more time, mainly used to learn the MVC pattern design in the design of view

Source code: http://download.csdn.net/detail/u014494705/8219333

Steering wheel Control, button pause, start

The design pattern of the software MVC:

M:model model

V:view view (user interface)

C:control Controller


Small Game notes:

(1) Package name: cn.com. Name of the company. Name of the project. Functional classification

(2) Package classification:

UI Presentation Layer

Service User Logic layer (this time is useless)

DAO data Access (this time only for learning graphical interface, so the user logic is written in the data access layer)

Entity entities (including blocks, etc.)

DTO data carrier (including blocks, etc.)

Main start

Util tools or other people tools (this time no use)

Config configuration (this time is useless)

JAVA Tetris (source code for communication)

Related Article

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.