文章分类 -  XNA

【转】UI前沿技术:XNA颜色滚动程序
摘要:导读:在2011年1月的MSDN杂志中,MSDN长期特约编辑Charles Petzold发表了一篇有关“XNA颜色滚动程序”的文章全文如下我最早编写并发布的 Windows 程序之一名为 COLORSCR(“颜色滚动程序”),发表在本杂志的前身Microsoft Systems Journal的 1987 年 5 月号中。很多年过去了,我时常发现针对其他 API 和框架重写此程序很有意义。尽管这个程序很简单(操控红、绿、蓝三种颜色值对应的滚动条或滑块来创建自定义的颜色),但它涉及很多重要的任务,例如布局和事件处理。而且从功能角度而言,该程序也不是简单的、无意义的演示程序。如果您要创建一个用来 阅读全文

posted @ 2011-04-12 15:08 Osiris4Net 阅读(265) 评论(0) 推荐(0)

XNA4.0学习指南第五章代码中文注释(AI精灵子类)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using Microsoft.Xna.Framework; 6 using Microsoft.Xna.Framework.Graphics; 7 8 namespace AnimatedSprites 9 {10 class AutomatedSprite : Sprite11 {12 13 #region ■属性声明_________________________________________. 阅读全文

posted @ 2011-04-12 12:46 Osiris4Net 阅读(251) 评论(0) 推荐(0)

XNA4.0学习指南第五章代码中文注释(用户精灵子类)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using Microsoft.Xna.Framework; 6 using Microsoft.Xna.Framework.Graphics; 7 using Microsoft.Xna.Framework.Input; 8 9 namespace AnimatedSprites 10 { 11 /// <summary> 12 /// 用户控制的精灵类 13 /// </summar 阅读全文

posted @ 2011-04-12 12:44 Osiris4Net 阅读(263) 评论(0) 推荐(0)

XNA4.0学习指南第五章代码中文注释(Sprite精灵基类)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using Microsoft.Xna.Framework; 6 using Microsoft.Xna.Framework.Graphics; 7 8 namespace AnimatedSprites 9 { 10 /// <summary> 11 /// 抽象的精灵基类 12 /// </summary> 13 abstract class Sprite 14 { 15 #r 阅读全文

posted @ 2011-04-12 12:42 Osiris4Net 阅读(244) 评论(0) 推荐(0)

XNA4.0学习指南第五章代码中文注释(Game1类)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using Microsoft.Xna.Framework; 5 using Microsoft.Xna.Framework.Audio; 6 using Microsoft.Xna.Framework.Content; 7 using Microsoft.Xna.Framework.GamerServices; 8 using Microsoft.Xna.Framework.Graphics; 9 using Microsoft.Xna.Fr. 阅读全文

posted @ 2011-04-12 12:37 Osiris4Net 阅读(331) 评论(0) 推荐(0)

导航