4worldpeace

博客园 首页 新随笔 联系 订阅 管理

2014年7月25日 #

摘要: In Unity scripting, there are a number of event functions that get executed in a predetermined order as a script executes. This execution order is des... 阅读全文
posted @ 2014-07-25 15:31 4worldpeace 阅读(163) 评论(0) 推荐(0) 编辑

摘要: IntroductionThe central component of any game, from a programming standpoint, is thegame loop.It allows the game to run smoothly regardless of a user'... 阅读全文
posted @ 2014-07-25 15:07 4worldpeace 阅读(388) 评论(0) 推荐(0) 编辑

2014年4月10日 #

摘要: awk ‘{ print $NF }’ 阅读全文
posted @ 2014-04-10 13:25 4worldpeace 阅读(281) 评论(0) 推荐(0) 编辑

2014年2月21日 #

摘要: /**************************************************************************** * program: proxyd * module: proxyd.c * summary: provides proxy tcp service for a host on an isolated network. * * programmer: Carl Harris (ceharris@vt.edu) * date: 22 Feb 94 * * description: * This code implements a daemon 阅读全文
posted @ 2014-02-21 14:58 4worldpeace 阅读(243) 评论(0) 推荐(0) 编辑

2013年11月4日 #

摘要: Texture atlas [1][2] is a technique to group smaller textures into a larger texture. This decreases the number of state switches [3]a renderer needs to do and therefore often increases performance. Texture atlases have been used for a long time in the video game industry for sprite animations. When 阅读全文
posted @ 2013-11-04 09:18 4worldpeace 阅读(455) 评论(0) 推荐(0) 编辑

摘要: // 基于扩展NVX_gpu_memory_info extension UINT QueryNVidiaCardMemory() { __try { int iVal = 0; glGetIntegerv( GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX, &iVal ); return (UINT)iVal/1024; } __except(1) { } return 0; } // 基于扩展WGL_AMD_gpu_assoc... 阅读全文
posted @ 2013-11-04 09:14 4worldpeace 阅读(1085) 评论(1) 推荐(0) 编辑

摘要: 下面说明一下,在Unity 里是怎么样加载声音文件的。Unity同时支持单声道和立体声音频资产。Unity支持导入以下音频文件格式:.aif, .wav, .mp3, 和 .ogg,和以下音轨模块:.xm, .mod, .it,和.s3m这里可以按类型搜索。一般背景音乐我们选择立体声音,音效选择单声道声音。在搜索栏中输入t:AudioClip选中声音文件 检视面板中可以看到文件属性,后面再详细介绍。这里可以点击播放按钮,试听一下效果。把声音文件拖到到场景中某个游戏物体上,这里我们新建一个空的物体。并把声音文件拖到上面。选择之后检视面板。Play On Awake:打勾就意味着在预制对象调用之初 阅读全文
posted @ 2013-11-04 08:50 4worldpeace 阅读(2118) 评论(0) 推荐(0) 编辑

2013年10月30日 #

摘要: 一、首先安装 java jdk , 度娘 “JDK” 进入官网下载即可,链接如下:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html同意协议之后方可下载,版本建议使用最新版。下载完之后,是这样的,我下的是java 7的版本,其实其他版本也可以的。接下来需要安装它,建议装到C盘,然后为其配置环境变量。环境变量如下:新建 系统变量 JAVA_HOME 和 CLASSPATH ,还有Path.变量名:JAVA_HOME 变量值:C:\Program Files\Java\jdk1... 阅读全文
posted @ 2013-10-30 08:19 4worldpeace 阅读(587) 评论(0) 推荐(0) 编辑

2013年10月28日 #

摘要: 本文由社区会员umyueyue分享以下是会员umyueue总结的iOS开发流程以及学习中的资料分享。流程:注册、开发、真机测试、发布以及上线。iPhone iOS 4从注册到app上线开发流程http://blog.csdn.net/linzhiji/article/details/6732868一、关于注册账号IDP和Apple ID:1、注册App ID(无论是iOS使用者还是开发者都需要*****ID,只是后者还需要付99$注册成为开发者。)网址:http://developer.apple.com由于上边的网址没有注册按钮,所以去iTunes注册,方法参照(这里注册的是免费的,您需要注 阅读全文
posted @ 2013-10-28 15:16 4worldpeace 阅读(352) 评论(0) 推荐(0) 编辑

摘要: 在做APP的iPad版本设计时,我们常常需要考虑:如何在延续iPhone版本设计特色和优点同时,充分利用iPad的特性更好地进行设计。本文从iPad和iPhone的差异性入手,试图总结这一设计过程中需要注意的问题。一、视图之变屏幕尺寸的差异直接影响到用户可见的视图范围和应用的信息布局。iPhone5: 屏幕4.0英寸 分辨率1136×640; New iPad:屏幕9.7英寸, 分辨率 2048×15361.1全屏切换与视觉稳定性由于屏幕空间限制,iPhone上不同内容之间的切换通常通过全屏切换(full-screen transitions)来实现,但全屏切换会带来视觉稳 阅读全文
posted @ 2013-10-28 15:14 4worldpeace 阅读(234) 评论(0) 推荐(0) 编辑