XNA 4.0 VideoPlayer

lyhylex 2012-11-13 05:51:52
在用XNA 4.0做个简单的播放器,
用到VideoPlayer,
但是成功加载完Video后交给VideoPlayer播放却失败了,
没有任何提示,
无论对player调用Play,Pause等等,
他的State属性总是为Stopped,
但是我自己的电脑没为题,是公司的电脑播放不了
...全文
67 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
Book Description XNA Game Studio enables hobbyists and independent game developers to easily create video games. It gives you the power to bring your creations to life on Windows, the Xbox 360, the Zune, and the Windows Phone platforms. But before you give life to your creativity with XNA, you need to gain a solid understanding of some game development concepts. This book covers both the concepts and the implementations necessary to get you started on bringing your own creations to life with XNA. It details the creation of four games, all in different styles, from start to finish using the Microsoft XNA Framework, including a puzzler, space shooter, multi-axis shoot-’em-up, and a jump-and-run platform game. Each game introduces new concepts and techniques to build a solid foundation for your own ideas and creativity. Beginning with the basics of drawing images to the screen, the book then incrementally introduces sprite animation, particles, sound effects, tile-based maps, and path finding. It then explores combining XNA with Windows Forms to build an interactive map editor, and builds a platform-style game using the editor-generated maps. Finally, the book covers the considerations necessary for deploying your games to the Xbox 360 platform. By the end of the book, you will have a solid foundation of game development concepts and techniques as well as working sample games to extend and innovate upon. You will have the knowledge necessary to create games that you can complete without an army of fellow game developers at your back. A step-by-step tutorial to using Microsoft XNA by creating four different styles of video games. Create your own exciting games with Microsoft XNA 4.0 Dive headfirst into game creation with XNA Four different styles of games comprising a puzzler, a space shooter, a multi-axis shoot ‘em up, and a jump-and-run platformer Games that gradually increase in complexity to cover a wide variety of game development techniques Focuses entirely on developing games with the free version of XNA Packed with many suggestions for expanding your finished game that will make you think critically, technically, and creatively Fresh writing filled with many fun examples that introduce you to game programming concepts and implementation with XNA 4.0 A practical beginner’s guide with a fast-paced but friendly and engaging approach towards game development What you will learn from this book Install the Microsoft XNA Framework and its required tools Build XNA Game projects and associated XNA Content projects Create a puzzle-style game exploring the concepts of game states, recursion, and 2D animation Add sound effects to your game with a “fire-and-forget” sound effects manager Create a particle system to generate random explosions Implement sound effects, collisions, and particle-based explosions by building a space shooter inside a chaotic asteroid field. Implement the A* path-finding algorithm to allow enemies to track down the player Generate tile-based maps and path-finding enemy tanks amidst a storm of bullets in a multi-axis shooter Combine XNA and Windows Forms to create a map editor for a multi-layered tile map engine Run, jump, and squash enemies in a side-scrolling platform using the maps from your editor Modify your creations for the Xbox 360 platform and deploy your games to the console Approach This book is a step-by-step tutorial that includes complete source code for all of the games covered. It adopts an engaging style to teach all the game development concepts. Each block of code is explained, and game development concepts are diagrammed and covered in detail. Each game begins with a concept description and concludes with suggestions for expanding on the finished game. Who this book is written for If you are an aspiring game developer who wants to take a shot at creating games for the Microsoft Windows platform with the XNA Framework, then this book is for you. Using this book, you can get started with creating games without any game development experience. A basic knowledge of C# would be helpful to kick-start your game development, but it’s not essential.
Get Started Fast with XNA Game Studio 4.0–and Build Great Games for Both Windows® Phone 7 and Xbox 360® This is the industry’s best reference and tutorial for all aspects of XNA Game Studio 4.0 programming on all supported platforms, from Xbox 360 to Windows Phone 7 and Windows PCs. The only game development book authored by Microsoft XNA development team members, it offers deep insider insights you won’t get anywhere else–including thorough coverage of new Windows Phone APIs for mobile game development. You’ll quickly build simple games and get comfortable with Microsoft’s powerful XNA Game Studio 4.0 toolset. Next, you’ll drill down into every area of XNA, including graphics, input, audio, video, storage, GamerServices, and networking. Miller and Johnson present especially thorough coverage of 3D graphics, from Reach and HiDef to textures, effects, and avatars. Throughout, they introduce new concepts with downloadable code examples designed to help you jumpstart your own projects. Coverage includes Downloading, installing, and getting started with XNA Game Studio 4 Building on capabilities provided in the default game template Using 2D sprites, textures, sprite operations, blending, and SpriteFonts Creating high-performance 3D graphics with XNA’s newly simplified APIs Loading, generating, recording, and playing audio Supporting keyboards, mice, Xbox 360 controllers, Touch, accelerometer, and GPS inputs Managing all types of XNA storage Using avatars as characters in your games Utilizing gamer types, player profiles, presence information, and other GamerServices Supporting Xbox LIVE and networked games Creating higher-level input systems that seamlessly manage cross-platform issues From Windows Phone 7 mobile gaming to Xbox 360, XNA Game Studio 4.0 creates huge new opportunities for experienced Microsoft developers. This book helps you build on skills you already have, to create the compelling games millions of users are searching for.

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧