So, the Beta is out!
XNa 4.0 has been significantly updated, most of the changes are good, but there have been two points that make me very uncomfortable: 1. the render target must be bound to a depth buffer; 2. there are no underlying functions such as setxxshader and setshaderconstant. The former is very unfriendly to deffered shading, and the latter makes the entire material system I wrote unusable. In contrast, the latter makes me more worried,
Recently saw a lot of information about cocos2d online, looked at cocos2d also supports WP7, download a Cocos2d-XNA installation package, write a small example to play, familiar with cocos2d
The program is very simple. It is an entry-level mini-game. After writing it, you can run it on your mobile phone.
Development Environment: vs2010 and Windows Phone SDK 7.1
The implementation method is as follows:
1. Create a cclayer subclass.
2. Rewrite the onent
I. Key classes in xNaGraphicsdevicemanager class: Provides developers with a way to access graphics devices on PCs, Xbox 360, or Windows Phone 7. The graphicdevice attribute of graphicsdevicemanager represents the actual graph device on the machine. Graphics Device objects play an intermediary role between xNa games and graphics cards (or, more accurately, GPUs on graphics cards, everything xNa games do on
Php + mysql open-source XNA aggregation program released and downloaded. PHP + MYSQL (php5 + mysql4.1) is a simple open-source XNA aggregation program. The effect is as follows: xna.spvrk.com. use phpmyadmin to import cms_xna. SQL and modify config. inc. p PHP + MYSQL (php5 + mysql 4.1) is a simple open-source XNA aggregation. The effect is as follows:
Http://
Do you still remember those years when you were playing "Mushrooms" in front of a TV with your neighbors? Do you still remember that the last two ducks at the 3-1 level could step on infinite life? I think most people in the Post-80s have had these memories. I also believe that I am reading this article.ArticleYou, like me, have you ever taken the programming path from your love for games? But now, but I am working on the xx management system (I wanted to pull another 500 words, so I don't need
Chinese Input in XNA (3)
For personal use only, do not reprint, do not use for any commercial purposes.
The first two parts of the Code are transplanted to XNA Game. The biggest problem is that the underlying WinForm window cannot be accessed and window messages cannot be obtained. Some methods on the Internet Use window handle to create an NativeWindow, and then overload NativeWindow WndProc to obtain the
Silverlight 5Integrated with xNa, Windows Phone 7.1 also has the SL. xNa model. moonlight, a mono-based open-source product, can be deployed on multiple platforms. It can be seen that Silverlight is approaching the ultimate goal of cross-platform deployment.
In order to move towards a great dream, we may wish to start in-depth exploration from the two-way migration between Silverlight and Windows Phone 2D
O'relly's learning xNa 3.0 is the first book I have read about xNa 3.0. The author organizes the content of this book based on his many years of teaching experience and teaching style, I personally think it is a good book to help readers easily master xNa 3.0 game development.
For work reasons, I have been using C # for development, and I am quite interested in
After reading the xNa practical keyboard article-moving an image based on the arrow key (3), do you still feel a bit confused? Let's see how xNa handles mouse events, save the previous experiments. Let's create a new project named "mysecondgame". This time we will not give allCodeI have read the previousArticleIt is clear.
Define the "global variables" in the class ":
/// /// Image Position/// Privat
. replaceScene is simple, it is used to replace SceneGame with SceneOver at the end of the game.
The added code is as follows:
SceneStart:
private void click_start(CCObject sender){ CCDirector.sharedDirector().pushScene(GameRoot.pSceneSelect);}
SceneSelect:
private void click_back(CCObject s){ CCDirector.sharedDirector().popScene();}private void click_level(CCObject sender){ CCDirector.sharedDirector().pushScene(GameRoot.pSceneGame);}
SceneGame:
private void click_attack(CCObject sender
Sprite Texture Font
For XNA fonts, apart from the previous SpriteFont, there is also a SpriteTextureFont, which is actually a generated bitmap image, that is, the bitmap font can be used as the XNA font set, in this way, the font library is expanded, so that the font library not in the mobile phone can also be used. The method of use is the same as that of SpriteFont, all of which are loaded with SpriteFon
XNA compiles the image. xnb format, which can only be read by xna. The main part is jpg, png, and tag format. Generally, I will use Paint.net to create a graph. The problem is that the xnb format is too large, the following uses a large white image (1440X900) to generate an XNB file.
Format
Original size
XNB size
Zip size after compression
. Jpg
21.7 K
5063 K
Problem
To make your 3D game more real, you want to place every sound somewhere in the 3D space. In this way, the explosion on the right side of the camera will be played mainly through the right channel, so that the user will feel that the explosion actually occurred on the right side of the camera. Even if the explosion is not in the camera's view, the player can know what is happening on his right side.
Note:Zune does not support xact and the following apply3d () methods. It only supports
In the development of graphicsProgramIn order to ensure good compatibility in various hardware environments, we often need to make some adjustments based on the specific hardware, including the most common task of allowing users to modify the resolution. first, you must know the features supported by the hardware. in the original MDX example, we re-wrote it with xNa today, which is very simple, with 100 rowsCodeLeft and right :)
Two classes ar
After loading the xNa texture, we found that the alpha channel was very strange.
Even if I use the shader, I feel that the color value has been multiplied by Alpha, while the natural texture2d. loadfromstream only supports PNG GIF. jpg.
The PNG channel information is incomplete, and the other two do not.
However, the text cache I created seems to show normal and easy-to-understand alpha behavior.
Does the loading of texture also need to be process
Php+mysql (php5 +mysql 4.1) is a simple open source XNA aggregation with the effects such as:
http://xna.spvrk.com
A simple aggregation program, with phpMyAdmin import cms_xna.sql, modify config.inc.php in the database address can use, background for/admin, because of the time relationship, temporarily did not write user name and password authentication, we can use this program for free, can also be developed on the basis of this procedure two tim
screen point (actual point) to the point on the World (system), followed by a positive and negative. We also have projection and view attributes of the matrix type, which are used to represent the projection and view of the current camera respectively. This class also contains the Update function called by the Update method of the xna Game class. We need to remember the knowledge about the Camera2D class above.
-Now let's start with some simple imple
Sprite Texture Font
For XNA fonts, in addition to the previous Spritefont there is a spritetexturefont, in fact, is the generated font bitmap picture, that is, you can use the bitmap type of fonts as a XNA font set, this is tantamount to expanding the font library, The font library that is not in the phone can also be used. Its use is the same as the Spritefont, are loaded with Spritefont, and then painted
Render state management in xNa
For personal use only, do not reprint, do not use for any commercial purposes.
the problem: A poor design in xNa is to define various render States as members of the renderstate class, rather than enumeration. In dx/MDX, if you need to set a series of render states, you only need to foreach state in renderstates gfxdevice. setrenderstate (statename, statevalue)
Just a friend asked me how to implement the jump. In fact, I don't know about xna either. In Zzk, there is no matching record for searching "XNA jump". I was a little impulsive when I was surprised. Do I have to do it myself? But xna really doesn't understand it. I found two or three source codes, and I was really stupid. I was so sorry to understand its algorith
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.