made using Flash tools, while more complex and delicate animations can be rendered frame by frame using 3D modeling software or completely manually drawn. Because the final output file package of the animation contains the image content of each frame, the size is relatively large, which puts a lot of pressure on memory and video memory. Considering the production cost and playback cost, if not necessary, we generally do not use a large scale of animation in the game.The
start the game master screen preparation:
3.1 obtain the main window object (handle) and save it by window.
3.2 bind "director" of the Cocos2d-iphone
3.3 set basic attributes of the "director" Object
3.4 scenario created by directors
3.5 Add the Object layer to the current scenario
3.6 start and run the scenario by the Director object
2. How to install the cocos2d-iphone engine into xcode?
A: Start the terminal, locate the directory where the cocos2d-iphone is located, and then run the command
); // The entity added to this scenario will be drawn and updated only after being added to the scenario.
// Blue rectangle
Rectangle rectangle2 = new rectangle (300,220,100,100,
Getvertexbufferobjectmanager (); // draw a rectangle. The position is x300, the position is y220, the width is 100, and the height is 100.
Rectangle2.setcolor (0, 0, 1); // set it to blue: 1
This. attachchild (rectangle2); // The entity added to this scenario will be drawn and updated only after being added to the scena
The traffic genie was probably a software that was released last year to increase the Website access volume. As the software was excellent, I immediately followed the software. Now, one year later, with the low-profile development of the traffic genie, the version was also updated to 2.1.7.
In the past, I wrote a test article about the traffic genie, and I feel t
based on the corresponding file name in plist. For more information, see the following chapters.
Ccspritebatchnode and ccspriteframecache
Make sure that ccspriteframecache and ccspritebatchnode load the same texture map.
[CPP]Ccspriteframecache: sharedspriteframecache ()-> addspriteframeswithfile ("animations/ghosts. plist", "animations/ghosts.png ");Ccspritebatchnode * aparent = ccspritebatchnode: batchnodewithfile ("animations/ghosts.png ");Addchild (aparent, 0, ktagsprite1 );Ccsprite * pfath
After learning so long Cocos2d-X, today finally can make a simple game, the game is very simple, control the genie movement through the menu item
Learn a new concept before playing games
Sched ):
The Cocos2d-x scheduler provides scheduled events and scheduled calls for games. All node objects know how to schedule and cancel scheduling events. Using the scheduler has several advantages:
The scheduler stops whenever the node is no longer visible or re
Scenario (ccscene)-mainly used as a container object
Display scenario: simply output text on the image to play a video, enabling the game's opening introduction, victory, failure prompt, and help introduction.Options: Main Menu, game parameters, etc.Game scenario: return is the main content of the game. In addition to return scenarios, other types of scenarios are basically implemented in a general architecture.
In each scenario, different functions are implemented through the superposition
Configure the network when you build VMware virtual machinesYou can see that there are 3 main types1. Bridging mode (bridge)The IP of the virtual system can be set to the same network segment as the native system, and the virtual system is equivalent to one within the network. Separate machines, which are plugged into a hub together with the machine.For example, I use this machine is the network A6210 Wireless card, then the bridge mode, also used thi
Summarize the various operations of the genie for future review.
Brief description:
1. initialize 2. Create a paintless Paster. 3. Set the paintsize. 4. Add the paintless Paster to the layer.
5. Scale the genie 6. Scale the genie or height 7. Rotate the genie
8. Set the sprite transparency 9. Reverse the sprite image 1
I recently bought Android, which is boring on the tram. I made a small game for Android and made a flash version by the way.
The game screen is as follows:
The game test URL is as follows:
Http://fsanguo.comoj.com/flash/jump/index.php
This game is easy to implement and has few code. First, we need several broken diagrams:
Because the game is simple, it is faster to directly make the corresponding graph into MC.
A total of the following MC
Game Genie
Basic training 2 and unity3dpuppet2d of the Unity3d 2D bone animation plug-in Puppet2D
Hello everyone, I am Sun Guangdong. Reprinted please indicate the source: http://blog.csdn.net/u010019717
More comprehensive content please see my game pretty cool address: http://www.unitymanual.com/space-uid-18602.html
6. MESH CREATION
Skinning allows a single object to be affected by more than one bone. To do this, the genie needs to be converted to a grid.
Sele
3 ways to create an animation in Cocos2d-x3.3beta0, cocos2d Animation1. Independently load the genie object
This method is not recommended because rendering efficiency is low and resources are wasted. The Code is as follows: Note: you only need to paste the code to HelloWorldScene. cpp.
// First, rendering each sprite frame auto Sprite = sprite: create ("grossini_dance_01.png"); sprite-> setPosition (Vec2 (visibleSize. width/2, visibleSize. height
much here. The Code has detailed comments, and there is no particular difficulty. In the function of pig following the airplane, the aircraft Singleton class is used to obtain the location information of the aircraft. The aircraft Singleton class is implemented below.
The Singleton plane class inherits the Layer. In this Layer, the PigSprite that follows will be added. Let's look at the implementation of PlaneLayer. h:
# Include "cocos2d. h "# include" PigSprite. h "USING_NS_CC; enum Enum_Plan
contains! A joint can only be used for one physical body. This means that the body genie is either static or dynamic. Although we can create a joint between the tree and the monkey, we will use different methods here. The block here will be invisible, so it will not make our tree ugly. We will explain the reasons for our practice in this article.
The following screen shows how to create a joint between the block and the monkey. Make sure that joint i
engine.OpenGLThe time required to draw each graph. The parameter indicatesTime/number of images. Here we do not modify
director->setDisplayStats(true);This line of code is used to display Game Information in the lower left corner of your game, such as the number of frames, drawing, and other data. During debugging, the parameter is settrueBut is usually setfalse,
Game start background:
Open the HelloWorldScene. cpp file.
In the init method, we can see that
// add "HelloWorld" splash screen"au
Cocos2d-x 3.0 Action, cocos2d-xaction
* *********************************** Please specify the source: bytes ********************************************
Digress:
Long time, long time, wood has been updated
In February August, I traveled to South Korea for nine days. When I came back, I went directly to Jinggangshan to participate in practical activities (the subject is to build an Android Application)
Well, now we are working at the Jinggangshan practice base. We can only go back on the 19th
Cocos2d-x learning exchange group: 140326755
The main logic and structure of Game Development in Cocos2d-x is: first create a scene, add one or more layers on the scene, then you can add genie, menu, text on the specified layer, etc, you can perform an action (or move) for the genie or text to detect player touch-screen events, enable task scheduling to execute Collision Detection and update data, and mana
/** ---------------------------- Game scenario setup ---------------------------------- 1 first create a surfaceview, which can update the UI (global) in the Child thread) 2. instantiate the surfaceview in the oncreate method. 3. Use the setcontentview method to set the surfaceview object to the interface. 4. Get a director. 5. Tell the director to display the screen to surfaceview. the relationship between cocos2d and surfaceview objects is associated. 6. Set the display frame rate. 7. Set the
artist to the program, allows users to see program intent more intuitively. I don't want to talk much about it. Here we will talk about how to display images in HGE. I believe that, like me, most of my friends are most concerned about this part when they first came into contact with an image engine. OK. Let's take a look.
Htexture:This is a data type defined in HGE to save the loaded image. Texture means "texture". To put it bluntly, it is an image. Of course, when your program becomes more and
looks like a genie on the surface, we don't directly let it inherit the genie class. We use a combination to do this. The genie class is just a player attribute. Let the player inherit the entity class (create player. h and player. cpp in the object folder ):
// Player. hfile # ifndef _ player_h __# DEFINE _ player_h __# include "entity. H "class player: public
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.