2d手游引擎,至少要提供5个解决方案:1UI2角色怪物动画3场景4粒子5音频视频语言选择使用c++,脚本使用lua,c++需要提供的核心API包括1图片加载接口_Image.new2图片文字渲染接口_Image:draw()3音频视频接口soundgroup:play4事件接口_app:onIdle...
分类:
其他好文 时间:
2014-06-18 12:32:24
阅读次数:
386
A monolithic kernel is a kernel where all services (file system, VFS, device drivers, etc) as well as core functionality (scheduling, memory allocatio...
分类:
其他好文 时间:
2014-06-18 12:45:23
阅读次数:
361
Delphi Cxgrid获取选中行列,排序规则,当前正在编辑的单元格内的值cxGrid1DBTableView1.Controller.FocusedRowIndex 当前行号cxGrid1DBTableView1.Controller.FocusedRow 当前行cxGrid1DBTableVi...
分类:
其他好文 时间:
2014-06-18 12:46:36
阅读次数:
225
1 算法原理元素依次两两比较,大的数往后浮出,那么第一趟当n-2与n-1比较后,最大的数即浮到最后一个位置。第二趟,当n-3与n-2比较时,第二大的数即浮到倒数第二个位置。最后一趟,当0与1向比较的时候,最小的和第二小的数确定。冒泡排序时间复杂度为O(n^2),速度比较慢。当数组长度为10万时,就耗...
分类:
其他好文 时间:
2014-06-18 12:47:17
阅读次数:
172
UIImage这个对象是swift中的图像类,可以使用UIImageView加载显示到View上。以下是UIImage的构造函数: init(named name: String!) -> UIImage // load from main bundle init(named name:...
分类:
其他好文 时间:
2014-06-18 12:49:16
阅读次数:
244
RPM是RedHat Package Manager(RedHat软件包管理工具)类似Windows里面的“添加/删除程序”rpm 执行安装包二进制包(Binary)以及源代码包(Source)两种。二进制包可以直接安装在计算机中,而源代码包将会由RPM自动编译、安装。源代码包经常以src.rpm作...
分类:
其他好文 时间:
2014-06-18 12:49:53
阅读次数:
238
什么是Unity?Unity是一个轻量级的可扩展的依赖注入容器,支持构造函数,属性和方法调用注入。Unity可以处理那些从事基于组件的软件工程的开发人员所面对的问题。构建一个成功应用程序的关键是实现非常松散的耦合设计。松散耦合的应用程序更灵活,更易于维护。这样的程序也更容易在开发期间进行测试。你可以...
分类:
其他好文 时间:
2014-06-18 12:50:31
阅读次数:
376
在window身份验证登陆后,新建查询,输入以下代码就可以修改sa密码了:use mastergoexec sp_password null,'123456','sa' go
分类:
其他好文 时间:
2014-06-18 12:51:09
阅读次数:
181
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-06-18 12:51:52
阅读次数:
205
《写给女人》--[美]桃乐丝·卡耐基
分类:
其他好文 时间:
2014-06-18 12:53:09
阅读次数:
208
/* 啥也不说了,直接套模板。。。 */ 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define N 500000 7 using namespace std; 8 9 class A...
分类:
其他好文 时间:
2014-06-18 12:53:46
阅读次数:
152
**(2)$0 - $4 **控制台保存了最近5个在Elements面板选中的DOM元素,$0代表倒数第一个,$1代表倒数第二个,以此类推直到$4。按f12,就会出现开发者工具,然后在左上角有个放大镜的按钮,点下去,然后在网页上点一下某个元素(比如按钮,超链接),之后,在Console 里输入$0(...
分类:
其他好文 时间:
2014-06-18 12:55:38
阅读次数:
184
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2014-06-18 12:56:59
阅读次数:
155
ArrayList是实现了List接口的动态数组.与java中的数组相比,它的容量能动态增长.ArrayList的三大特点: ① 底层采用数组结构 ② 有序 ③ 非同步下面我们从ArrayList的增加元素、获取元素、删除元素三个方面来学习ArrayList。ArrayList添加元素因为Ar...
分类:
其他好文 时间:
2014-06-18 12:59:01
阅读次数:
264
查看当前系统分区 命令:fdisk –l 运行虚拟机时添加了磁盘,系统不能识别到新的磁盘即sdb,需要重启虚拟机:shutdown -r now 新磁盘进行分区并格式化 命令:fdisk /dev/sdb 根据提示依次输入m、1,输入w保存 再次使用 "fdisk -l "这个命令来查看会发现出现了...
分类:
其他好文 时间:
2014-06-18 13:00:13
阅读次数:
224
create procedure pro_aaa( @canshu1nvarchar(200), @canshu2nvarchar(200)) as begin declare @strsql nvarchar(2000) set @strsql='select * from table1 wher...
分类:
其他好文 时间:
2014-06-18 12:59:40
阅读次数:
191
/* 合并排序 O(n*lgn) */ #include using namespace std; #define MAXN 100 int a[MAXN]; void Merge(int a[MAXN],int lef...
分类:
其他好文 时间:
2014-06-18 13:01:30
阅读次数:
229