Random
Animation effect:
Click here to download the source file
Of course, the program can be perfected, but the main as and architecture have been completed. You can try to finish it yourself.Add that, because the animation in the graphics more, so the operation may be slower, you can reduce the flash to play, it will not slow. (Of course this can be optimized, I do not have time to do this)Let me explain briefly the purpose of AS
First frameDECLARE
Game effect
Create a new FLA and add code to the first frame F9.
The code is as follows
Copy Code
var arr:array = new Array ();var time:uint=0;var angle:number=0;var Zfun;[SWF (width=800, HEIGHT=465,BACKGROUNDCOLOR=0XFFFFFF, framerate=24)]This.addeventlistener (Event.enter_frame,function (Event) {time++;angle+=0.1;if (time>=13) {var Tf:textfield = addChild (New TextField ()) as TextField;Zfun = function () {time = 0,tf.ht
Demo Effect:
Click here to download the source file
Shooting game The main application of the code1. Mouse follow StartDrag (this, true); used to make a standard device.2. Layer-level control swapdepths ();3. Collision Detection HitTest (_root.gun.hit)4. Dynamic loading of the enemy: _root.attachmovie ();5. Dynamic text box to make a display scoreProduction process:1. Prepare a sight MC, containing the animation of firing2. The enemy MC One, contains
The beginning of this year to learn Android, but do modify the source, their own in the bedroom to learn the next to do the app, because it is just beginning to learn, this game only focus on the implementation of the game, the realization of the general function, but also did not realize the details of the game, such as the display of fractional pictures, there
The village looked at 2.1
Beauty, undress.
The temptation of a beautiful woman
I need to pee.
Magic Tower
The girl who changed clothes
Can you walk out of this room?
Armored War Police
Looking for the big girl
Super Marie
Changeable Girl
Beauty Puzzle
Digging gold
Beautiful Russian Squares
The girl of color beauty
Lap Dance Club
It's good to be a woman.
Sparrows watching
Miss Salon
"Tutorial on the method of iOS7.1.1 after Jailbreak"
1, after the jailbreak software will have a Cydia icon, we click it into the "software source" to enter after we click on the right to "edit" to enter and then click the "Add" button.
2, then we click "Input cydia/apt Address" fill in: http://repo.feng.com After we click "Add Source" plus we click "Back to Cydia" as shown in the picture.
3, Cydia software source we will see a "Granville-Feng Boutique source"-Enter after we find "patc
1. Flash player10.1 introduces two features to reduce CPU processing. One is sleep mode, and the other is that SWF Content is located outside the screen to pause and resume the content.
2. in sleep mode, the rendering is paused and the stage. framerate is set to 4fps. Instead of 0, all connections are kept open (netstream, socketAnd netconnection ). 4 is because many phone manufacturers use this frame rate as the refresh rate
3. Pause and resume. When
I made a micro-project by myself and two other friends at the beginning of last semester.
45
Strabismus
RPG
Game, named "instant"
VC ++. NET 2003 + DirectX 9 SDK
Finished. The game mainly uses DirectDraw. I am mainly responsible for learning DirectDraw through this game.Program.The technical content is relatively low, but after all, it is a small achievement of myself and my friends. I am very int
Learn flash, do not learn ActionScript, the things you do is limited. But many friends are complaining that as is too difficult to learn. I want to tell you, in fact, as it is not difficult to learn. Now, I'm going to teach you to make a tank that can be started at will and rotate its fort (it feels like playing a remote car, very interesting). In this article, we will learn some basic statements, properties, objects, and methods in as.
OK, let's go
The articles on this site are originally written by Li huaming himi. The reprinted documents must be clearly indicated:Reproduced from [Black Rice gamedev block] original link: http://www.himigame.com/game-detail/1035.html☞Click to subscribe☜The latest developments in this blog! Notify you of the latest blog in time!
Note the following problems that may occur to children's shoes:
1. About cocos2dx v1.x running on the iPhone and Android platforms, th
draw a circle in the constructor. we can listen to the mouse and drag the circle.
Here we mainly use
Import flash. display. Sprite;
Import flash. Events .*;
Import flash. Geom. Point;
Import flash. display. shape;
Four packages. Have you noticed import flash. Geom. P
Reflection is a feature available in many object-oriented languages. However, I often see on forums that some people do not understand the purpose of reflection, or even some people say reflection is useless. Today, I will not talk about how many aspects of reflection can be mined. We will focus on the content of our games, the practical application of reflection, and many things that you don't need to know.Me
They come to garden games. Garden games have a lot of flowers and a lot of flowers. It
Array
Demo Effect: (explain the article after the article is covered by all the source code package download)
The second is the following source analysis:
August 28 5:45 Update, there is a game map, speed selection:
First frame: as:stage.showmenu=false;//does not display menus
Stop ();
---------------Start frame as-------------------
var s_total = Total number of 500;//snakes
var w_col = 30;//line, Width
var w_row = 30;
var w_w = 15;//per squar
++;}}}//************************************** ****// =======Determine which video clip to fill after clicking on the image ======Mc. onRelease = function (){Var flag: Boolean = true;// Add a flag to avoid coloring multiple videos at a time.For (var k in mc ){If (mc [k]. hitTest (_ xmouse, _ ymouse, true) flag ){New Color (mc [k]). setRGB (TheCol );Flag = false;}}};// ================================================ ======// ************* Read and save all fill colors in mc *************Save_b
I have been trying to read some physical materials over the past few days. However, as3.0 is always wrong When simulating a jump. This is the code of a certain game below. I have changed it to a lot of code, it's the simplest jumping experiment. If you are interested, try it, but as3.0 is really not familiar with it? I feel familiar with 2.0,
Let's take a look at the formula of physical oblique throwing and throwing, and try to continue learning more
processed. The Code is as follows: public function addobject (OBJ: baseobject): void {var removeindex: int; If (OBJ) {removeindex = objectstoremove. indexof (OBJ); If (removeindex! =-1) {objectstoremove. splice (removeindex, 1);} else if (objectstoadd. indexof (OBJ) =-1 baseobjects. indexof (OBJ) =-1) {objectstoadd. push (OBJ); If (obj. parent! = NULL obj. parent is baseobject) {baseobject (obj. Parent). removeobject (OBJ) ;}} return ;} move
The same is true if the code is output. In this way
The first time I wrote a game with C. Writing algorithms on C # is indeed a challenge. If the time is too complex, the consequences will be much more obvious than C ++, so we always try to make things into O (N) or O (nlogn ). This time we implemented a path-finding algorithm.
The path search algorithm is like this: there is a square on 16 × 16.SomeThe end point. Things can only move up or down on the grid. Each grid needs to be recordedOne of the en
1, direct Baidu download Google framework, and then after the computer decompression and then copied to the phone SD and then in the phone SD card to find Google frame installation files can be installed, the relevant settings according to the wizard.
2, after the successful installation of Google Framework I now found in the phone "system settings"-"All settings"-"Add Account" as shown in the following figure
3, then we enter the "add account" according to the relevant information to ente
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.