| George 的个人资料George's XNA Programming日志列表网络 | 帮助 |
|
|
3月15日 XNA Game Studio Express UpdateAccording to the XNA team at Microsoft, we will see an update of XNA Game Studio Express somewhere in April of this year. Looks like the members of the XNA team have seriously taken into consideration the feedback coming from XNA Game Studio Express users. I assume that there are quite many improvements. From the most important improvements (at least from my perspective), I would mention the following: 1. Full support for Windows Vista. (Cool, I can now upgrade to Vista as I was reluctant to do so because of XNA Game Studio Express). 2. Bitmap font support (at the moment, as you might be aware XNA does not support bitmap fonts, so we have to resort to our own implementation or third party solutions like Nuclex fonts). 3. Math API improvements. No specifics on what is improved but... 4. BasicEffect will support per-pixel lighting, which is fantastic. 5. Support for volume textures (Texture3D). 6. Ability to read Vertex and Index buffers from Model types. 7. Sharing games with other developers will be extremely easy. It will be possible to package games in a single file (which can be downloaded or sent via e-mail). Well, this list is not complete. You may wish to check out the post at the XNA Team Blog for a more detailed list, though I believe even that list does not fully describe all the updates that we will see shortly. 3月5日 XNA Slots - Part 2Here comes an updated version of XNASlots. As you can see from the screen-shot, the game now displays stake, winning and balance information. It is now possible to specify stake and selected lines and when the slot is spun, correct amount is deducted from the user balance. You can hit 1, 3, 5, 7, 9 keys on the keyboard to select lines and the Spacebar is used to increase bet. Maximum bet is $10. This is defined in a new constant named MAX_STAKE. I use Nuclex fonts to display texts in the game. You can find more information about Nuclex fonts in one of my previous posts. There are a couple of cosmetic changes to the code. For example, the keyboard input is moved to a new method UpdateInput. We now deduct user balance after each spin and the Spin method has been amended to reflect this as well. SelectLines and IncreaseStake are two new functions. As you may guess from the names, the former method select lines and the later increases user stake. The Draw method has been updated to draw texts on the screen. The LoadGraphicsContent has been changed to load a font. The background image has been changed as well. I decided to put the stake, winning, balance panel on the main background. In the next part, we will add the winning table and more cool stuff. 3月3日 XNA Slots - Part 1While looking at my blog's statistics, I noticed that I get many visitors searching for slot game implemented in XNA. I decided to dedicate a number of posts to building a simple slot game in Microsoft XNA. I will start from a very simple demo game and ultimately grow the project to a full-featured slot game. We will be developing a multi-line video slots game. More specifically, our slot game will have 5 columns and 3 visible lines as shown on the game screen-shot. In this type of slots, there are 9 playing lines and a user can choose which lines he/she wants to play. The heart of the game is a class, which I have named Reel. This class is in charge of rendering and animating the slot symbols on the screen.
Our reel will be using a virtual stop table. I will be describing the virtual table in an upcoming part but for now let's concentrate on the visual side of the game. Each symbol corresponds to a stop on the reel. Let's agree that we call Stop 1 such a position of the reel when the lowest symbol on a column is located at the bottom line.
You can download the source code and play with it. I have also put a compiled version for you to test. Run the application and hit the S key on the keyboard to spin. Our Reel class is extremely flexible. If you wanted to make a single line slots game, all you had to do is to change the REEL_LINES constant value from 3 to 1. In the next part we will add some labels on the screen so that we display different information (lines selected, balance, winnings) to the user. |
|
|