Silverlight music game expert game development (I) idea generation

Source: Internet
Author: User

The content produced in this article is in concept! Game completion level: 20%! (There are no visual effects or styles added to the game later)

I believe players who have played PSP should know that there is a music game called Taigu Daren (in order not to conflict with the names of Taigu Daren, a Chinese name is changed)

I recently decided to try a music game to learn more about Silverlight!

Main functions:

1. Load your own songs based on the default configuration file, provided that the music beats and time are saved to the file.

2. Ability to self-record music beats and save them as readable file formats. (The current idea is clear and I don't know if I will forget it later)

3. Implement the basic functions of Taigu Daren. (Of course, music combo is required)

4. automatically generate and read the corresponding beat File Based on the selected MP3 format file. (This may be difficult)

5. Add special effects to the beauty.

This decision does not use the animation Panel (storyboard) to control the business logic, and the special effect will not give up powerful it.

First, it has been completed.

It looks good. I originally wanted to use a queue to complete the beat signal, and found that it is not conducive to the optimization algorithm.

I

II

 

Currently, the CPU usage for this effect is about 3-5%. It is estimated that the number of completed games will reach about 30-40!

Frames: more than 60

The above is my idea.

Basic overall thinking:

Timer + background thread + Data Maintenance array + Message notification to complete the game. (The dispatchertime currently selected by the timer, [it seems that the spelling of the wrong word is incorrect, vs the sequenence of Intelligent Sensing])

Music Implementation ideas:

The default music is a music format file, which is followed by an XML statement.

It is defined as follows:

1 <? XML version = "1.0" encoding = "UTF-8"?>
2 <! --
3. Key Frames are used to describe the drums respectively.
4 Ls left-side hitting
5 lf left positive strike
6 RF right positive strike
7. Right-side tapping of RS
8 SA together on the left and right
9 fa starts from around
10 -->
11 <musics>
12
13 <music name = "Volunteer march" length = "56000" Data = "FA-300, LS-500, LF-1200, FA-300, LS-500, LF-1200, FA-300, LS-500, LF-1200, SA-1000, LS-1000, LF-1200, RF-2500, RS-1000, SA-1000, LS-1000, LF-1200, RF-2500, RS-1000, SA-1000, LS-1000, LF-1200, RF-2500, RS-1000, SA-1000, LS-1000, LF-1200, RF-2500, SA-1000 "/>
14 <music name = "only good mother in the world" length = "256000" Data = "LS-3000, LF-1200, RF-2500, RS-5000, LF-1200, RF-2500, RS-5000, LF-1200, RF-2500, RS-5000, LF-1200, RF-2500, RS-5000 "/>
15 <music name = "happy birthday" length = "156000" Data = "FA-3000, LS-1000, LF-500, RF-1000, RS-1000, SA-1000, FA-1000, LF-1200, RF-2500, RS-5000, LF-1200, RF-2500, RS-5000 "/>
16 <music name = "quiet" length = "56000" Data = "LS-3000, LF-1200, RF-2500, RS-5000, LF-1200, RF-2500, RS-5000, LF-1200, RF-2500, RS-5000, LF-1200, RF-2500, RS-5000 "/>
17 <music name = "Super Mary" length = "256000" Data = "LS-3000, LF-1200, RF-2500, RS-5000, LF-1200, RF-2500, RS-5000, LF-1200, RF-2500, RS-5000, LF-1200, RS-5000 "/>
18 <music name = "unknown after" length = "156000" Data = "LS-3000, LF-1200, RF-2500, RS-5000, LF-1200, RF-2500, RS-5000, LF-1200, RF-2500, RS-5000, LF-1200, RF-2500, RS-5000 "/>
19 </musics>

 

I hope there will be talented people/experts who have worked on music games to guide how music games really work!

 

The most supported! In this way, you can see this article! After I finish this game! I will write a music game tutorial! Then, publish the relevant source code in the tutorial! No more than 20% at present! Greetings! *_*

 

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.